File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to configure JNDI for a stateless Bean ?

 
Ramesh Sahu
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 544
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic