-
Session Facade Call To Entity Bean (3 messages)
- Posted by: Kevin Fox
- Posted on: April 10 2002 13:23 EDT
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 ?Threaded Messages (3)
- Session Facade Call To Entity Bean by venkataramana janapati on April 10 2002 21:18 EDT
- Session Facade Call To Entity Bean by Kevin Fox on April 11 2002 12:32 EDT
- Session Facade Call To Entity Bean by Neeraj Nargund on April 16 2002 11:16 EDT
-
Session Facade Call To Entity Bean[ Go to top ]
- Posted by: venkataramana janapati
- Posted on: April 10 2002 21:18 EDT
- in response to Kevin Fox
Hi Kevin,
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.
String vBeanName="java:comp/env/ejb/EntityBeanName";
InitialContext ic = new InitialContext();
HomeInterface hi = (HomeInterface)ic.lookup(vBeanName);
Good Luck. -
Session Facade Call To Entity Bean[ Go to top ]
- Posted by: Kevin Fox
- Posted on: April 11 2002 12:32 EDT
- in response to venkataramana janapati
Thanks for the help. I'll give it a try. -
Session Facade Call To Entity Bean[ Go to top ]
- Posted by: Neeraj Nargund
- Posted on: April 16 2002 11:16 EDT
- in response to venkataramana janapati
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.