Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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