File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes lookup of JNDI bean reference is not working! 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 "lookup of JNDI bean reference is not working! " Watch "lookup of JNDI bean reference is not working! " New topic
Author

lookup of JNDI bean reference is not working!

yuvaraj KumarAmudhan
Ranch Hand

Joined: Aug 22, 2009
Posts: 110
hello all!

I am little bit confused about the JNDI look up with JBOSS 6 as the Application server.

To get the bean's home stub, I write the code like,



jboss.xml has something like,



ejb-jar.xml contains,



If i print "objref ", it displays "null".

please let me know the problem in this!

Thank You!
yuvaraj KumarAmudhan
Ranch Hand

Joined: Aug 22, 2009
Posts: 110
please somebody reply this post!
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9947
    
161

Are you sure you are getting a NULL? I would have expected a NameNotFoundException if you are using the wrong JNDI name. Are you packaging any jar file(s) containing javax.naming.* or org.jnp.* classes in your application? Or maybe other JBoss specific jar files? If yes, then remove those from your application.

[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: lookup of JNDI bean reference is not working!
 
Similar Threads
Doubt in bean lookup!
purpose of InitialContext?
What is wrong with this code?
problem in the stand alone client
JNDI referencing to JBoss