I have several complex data objects (value objects) what ever you want to
call them. Basically they contain the state of my Entity Bean. These objects
contain sub objects which inturn contain sub objects and as such creates a
complex object graph. At the moment all these objects implement
"java.io.Serializable" and so this means these objects need to be passed by
value. Which means they need to be serialized before they are sent over the
wire.
However I was thinking, object serialization can take time especially for my
complex objects. My objects happen to be immutable in the sense that they
have no set Methods. So would it be ok to pass them by reference. For
example implementing "java.rmi.remote" instead of "java.io.Serializable".
Will this work with all app servers.
comments....
P
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".