I'm implementing the Session Facade pattern. The client will connect to the Session Facade bean and then the session bean will connect to the Entity bean. My question is: Within the session bean, How do you code the call an Entity ?
Here is code snippet for calling the entity bean.
You get the entity bean home interface. you can play with it. Assume that calling entity bean is in the same deployed jar file.
InitialContext ic = new InitialContext();
HomeInterface hi = (HomeInterface)ic.lookup(vBeanName);
Thanks for the help. I'll give it a try.
It need not be in the same jar if u r using EJB 2.0
U can assign the CLASSPATH(pointing the concerned jar) variable in the manifest file.