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
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