• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to add JNDI Name to EJB?????

 
Adam Dear
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to get the Advice Guy EJB from hfejb to work. I have been working on this for quite a while. i was unable to use j2ee 1.3 because for some reason the installer wouldn't work on Win XP sp2, so I am using j2ee 1.4 with the Sun Application Server. Anyone know why the installer wouldn't work?

Anyway, The problem I am having is I can't figure out how to add the jndi name as indicated in the book with the deploytool. When I am using the tool from Sun Application Server 8, it never asks what the jndi name should be. Because of this, I am getting a javax.naming.NameNotFoundException when I try to run the AdviceClient.

Can anyone help me, I am about at my wits end, and I really want to learn this, but if I can't get this to work I won't be able too.

thanks
 
Balaji Anand
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
U can check what ur JNDI name is ..
In the deploy tool select the bean on the left pane... in the right pan bottom u will see a button "Sun Specified Settings" that will take u to the window with component name and JNDI name. U can change the JNDI name there...
If u select the Application on the left pane u can still see that button but the window will have two tabs(drop down) one for jndi name and another for role mappings
Hope this helps
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!