• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Calling one bean from another

 
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic