Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EJB returning ArrayList

Status
Not open for further replies.

patnim17

Programmer
Jun 19, 2005
111
0
0
US
Hi,
Since ArrayList implements Serializabel class, can I return this from remote EJB calls. I have serializable objects inside this ArrayList also..?

pat
 
You can pass anything which is Serializable between client and server in EJB. When marshalling objects for transmitting between such layers, they are are serialized into the communication stream. Just ensure that the sending and receiving class definitions are identical (or have the same serialVersionUID), otherwise it will fail.

Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top