• Post Reply Bookmark Topic Watch Topic
  • New Topic

Calling one bean from another

 
Cherry Mathew
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Find a tutorial for this topic here: http://www.java.sun.com/j2ee/j2sdkee/techdocs/guides/ejb/html/Client6.html#11491
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!