Parameters

Hi,I am new to EJB.Can anyone say me whether I can return ArrayList from my bean method ?That is, all my input and output parameters of my bean method must always be serializable objects ?Thanks in advance,
[234 byte] By [tmmeta] at [2007-11-27 9:04:51]
# 1

The restrictions for what types are allowed depend on which kind of interface you are exposing from

the EJB.If it's a Remote interface, then all parameters and return values must be either primitives,

serializable, or references to other Remote EJBs.Since ArrayList is serializable, it's ok to use it

as a parameter or return value as long as the objects you place inside are also serializable.

ksaksa at 2007-7-12 21:38:22 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...