Hello: can anybody help in that topic
I know that I have to narrow the home interface when I want to use acording to the specification laike this:
Context initialContext = new InitialContext();
CartHome cartHome = (CartHome)javax.rmi.PortableRemoteObject.narrow(
initialContext.lookup(“
java:comp/env/ejb/cart”
,
CartHome.class);
But what happend when in a session I invoke a method of a entity that return a collecion of bean? do I have to use portableremoteObject() or a simple cast?
And what happend whith the findByPrimeryKey that return the component interface remote. I never use portableremoteObject, do I should???
Thanks!! a lot