It's not a secret anymore!*
The moose likes JBoss/WildFly and the fly likes jndi for ejb on jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "jndi for ejb on jboss " Watch "jndi for ejb on jboss " New topic
Author

jndi for ejb on jboss

Suma Rangaraj
Ranch Hand

Joined: Feb 02, 2005
Posts: 50
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

Joined: Feb 06, 2005
Posts: 7
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.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: jndi for ejb on jboss
 
Similar Threads
Problem in JNDI lookup
Getting NullPointerException while accessing Local EJB
problem in acessing session bean using jndi
EJB access issue
InitialContext.lookup and narrow malfunctioning