Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

lookup of JNDI bean reference is not working!

 
yuvaraj KumarAmudhan
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please somebody reply this post!
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic