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.