This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes How to configure JNDI for a stateless Bean ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to configure JNDI for a stateless Bean ?" Watch "How to configure JNDI for a stateless Bean ?" New topic
Author

How to configure JNDI for a stateless Bean ?

Ramesh Sahu
Ranch Hand

Joined: Jul 14, 2008
Posts: 32
Hi all,
I have installed J2EE 1.4 and learning EJB development using Head First EJB. The topics in it are discussed using J2EE 1.3 ,so there is small change
while deploying the application .
The problem is when we deploy the EJB on the default server that comes with J2EE bundle.
According to the book , in J2EE1.3 during the deployment process it will ask for JNDI name of the EJB component. But in 1.4 , it does not ask about the JNDI and completes.
My bean gets successfully deployed on the server .

Now when I go on to write the client code ,
we need to look up the JNDI .....as mentioned


Can some one tell me how to configure EJB with JNDI in J2EE & how can I test that my EJB is visible to client. OR what is different way to deploy EJB in J2EE 1.4. I am using default server available with J2EE 1.4 & has followed every step of Tutorial.

Thanks in advance
Ramesh Sahu
Ranch Hand

Joined: Jul 14, 2008
Posts: 32
Ramesh Sahu wrote:Hi all,
I have installed J2EE 1.4 and learning EJB development using Head First EJB. The topics in it are discussed using J2EE 1.3 ,so there is small change
while deploying the application .
The problem is when we deploy the EJB on the default server that comes with J2EE bundle.
According to the book , in J2EE1.3 during the deployment process it will ask for JNDI name of the EJB component. But in 1.4 , it does not ask about the JNDI and completes.
My bean gets successfully deployed on the server .

Now when I go on to write the client code ,
we need to look up the JNDI .....as mentioned


Can some one tell me how to configure EJB with JNDI in J2EE & how can I test that my EJB is visible to client. OR what is different way to deploy EJB in J2EE 1.4. I am using default server available with J2EE 1.4 & has followed every step of Tutorial.

Thanks in advance


Was hoping for some response ???
amit punekar
Ranch Hand

Joined: May 14, 2004
Posts: 515
Hello,
Access the admin console of your J2EE server and browse the JNDI tree. That should give you the name to look up with.
The JNDI names configuration differes for different application server being used. E.g. for weblogic I have used, we used to specify it in weblogic-ejb-jar.xml file.

Regds,
Amit
 
Don't get me started about those stupid light bulbs.
 
subject: How to configure JNDI for a stateless Bean ?