• 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
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

How to configure JNDI for a stateless Bean ?

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ???
 
Ranch Hand
Posts: 544
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic