>>What are examples of legal and illegal RMI IIOP types? I read in HFEJB >>they
>>should be one of the following:
>>- Primitives
>>- Serializable Objects
>>- Array or collections of primitives or serializable objects.
>>- A remote object
>>
>>Now what would be an illegal type? let me guess: Boolean, Integer wrapper >>types?
Illegal types are the objects that do not fit to any of the rules you enumerated
Strings, boolean, integer and all Wrapper types ARE serializable objects, because they implement the Serializable marker interface (check the J2SDK
doc for each class).
You define a serializable class when it implements the Serializable marker interface (yes, it's that simple), and its attributes must be serializable, too.
Some classes that are not serializable: java.net.Socket, java.sql.DriverManager. They're not either RMI-IIOP compliant objects.
That's my R$0.02.