Forums Register Login

Calling one bean from another

+Pie Number of slices to send: Send
Hi Friends,
Im new In EJB. I got some doubts While calling one bean from another. I used the EJB1.0 method context.getEnvironment() to pass the environment to the InitialContext() but i found that it is deprecated and i need to use java:home/comp/env. i dont know how to use it. I know it is the JNDI name of the enviroment but when i tried to get the Homeobeject using java:home/comp/env/ejb/BeanHomeName im getting JNDI name not found.Is this the corect way of doing this ? if not what is the correct way of doing it?
And one more question what all do we specify as the environment and please give me some examples of what all we give and the importance of environments.
Cherry
+Pie Number of slices to send: Send
"I know this defies the law of gravity... but I never studied law." -B. Bunny Defiant tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 599 times.
Similar Threads
Why client-->home-->remote in EJB
HFE Page 613 - EJB references (When a bean wants another bean)
regarding JNDI
weblogic server problem
weblogic-ejb-jar problem
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 04:13:37.