This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jndi for ejb on jboss

 
Suma Rangaraj
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Please let me know how to give a jndi name for jboss 4.0.1. I am trying to access teh ejb by its context name but it returns a null pointer exception. Thank you !
Below is the code -

 
Anuja Piplapure
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To access or look up any EJB, one would have to use the jndi-name mentioned in the jboss.xml file.



Use the jndi-name or local-jndi-name given in the jboss.xml file to look up ur bean.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic