Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNDI not bound for EJB

 
rajareddya reddy
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting JNDI not bound for EJB when I deployed in JBoss 5.








java code I am using for accesing EJB
---------------------------------------------

removing java:comp/env also tried,still I am getting Exception as follows




Please suggest solution?
 
everson santos
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i think the problem is here:
ctx.lookup("java:comp/env/ejb/mhbAdapterrel1_0/mhbAdapterApprel1_0/ProfileSLHome");



try to look when jboss is starting the right jndi name for your ejb.. you can looking for "ProfileSLHome"

I have as below with ejb3:
22:48:25,730 INFO [JBossASKernel] and supplies:
22:48:25,730 INFO [JBossASKernel] jndi:feijaoEAR/MeuFeijao/remote
22:48:25,730 INFO [JBossASKernel] jndi:feijaoEAR/MeuFeijao/local-br.feijao.ejb.MeuFeijaoLocal
22:48:25,730 INFO [JBossASKernel] jndi:feijaoEAR/MeuFeijao/local
22:48:25,730 INFO [JBossASKernel] Class:br.feijao.ejb.MeuFeijaoLocal
ctx.lookup("feijaoEAR/MeuFeijao/local")

 
Cainiao Zou
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
take a look at the jndi-viewer in jmx console. it's a very handy tool in jboss. just type http://localhost:8080 in browser and you can find it in menu.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic