Let me have a try. Whether handles can be derived from ejb home/component interfaces depends on whether it's local or remote. For local home/component interfaces, they cannot; for remote home/compoent interfaces, they can.
I think the reason is, for references to remote home/component interfaces, they are NOT guranteed serializable, so it need some machnism(handles)serializable in order to pass them through network; but for references of local home/component interfaces, they are NOT intended to be passed through network (actually, they are pass-by-reference only locally).
handle are obtained by EJBObject.getHandle()... ( I am sorry I dont think they are derived. )
I am confused with now. As per my know how Serialization is to do with marshelling and unmarshelling.
For SLSB -- no handle (remote + local ) -- makes sense as the client just runs the methods and dont care about the other things.
For SFSB -- we have handle for remote client. example Cart.
For the local cases why cant a
servlet like to keep the handle of localHomeSFSB and use it later when the client returns. ( Local only say its in same JVM but dont we any scenario where local handle's use would be required. ) May be handle we only need for PortableRemoteObject.narrow( I am not sure on this ).
Steve
SCJP1.4,SCWCD, SCBCD, SCEA part 1<br />"Its feels good to know the stuff in detail."