I have servicemix/FUSE deployed in JBOSS as a war file. I am getting an
javax.naming.NameNotFoundException: env not bound exception as the jndi
lookup for "java:comp/env/eis/XUConnectionFactory" fails in a call to third
party library that I am invoking from with a jsr-181SU.
I looked at the JBOSS JMX console JNDI view and it shows the following for
the web app
java:comp namespace of the servicemix-web-fuse-3.2.0.1.war application:

  +- UserTransaction[link -> UserTransaction] (class: javax.naming.LinkRef)
  +- env (class: org.jnp.interfaces.NamingContext)
  |   +- security (class: org.jnp.interfaces.NamingContext)
  |   |   +- realmMapping[link -> java:/jaas/other] (class:
javax.naming.LinkRef)
  |   |   +- subject[link -> java:/jaas/other/subject] (class:
javax.naming.LinkRef)
  |   |   +- securityMgr[link -> java:/jaas/other] (class:
javax.naming.LinkRef)
  |   |   +- security-domain[link -> java:/jaas/other] (class:
javax.naming.LinkRef)
  |   +- eis (class: org.jnp.interfaces.NamingContext)
  |   |   +- XUConnectionFactory[link -> java:/eis/XUConnectionFactory]
(class: javax.naming.LinkRef)

Based on this I think the JNDI lookup should work as
env/eis/XUConnectionFactory is present in the JNDI namespace for the webapp
If I change the lookup to "java:/eis/XUConnectionFactory" the JNDI lookup
works. But this is not a solution because the actual lookup is in a third
party app and I have no way to change it.
Even a lookup on "java:comp/env" fails. I can not figure out why . The same
JNDI lookup works fine from a test webapp deployed in JBOSS but fails when
invoked from with in servicemix.

Any ideas?

Thanks
Satish

-- 
View this message in context: 
http://www.nabble.com/JNDI-lookup-issue-tp14764217s12049p14764217.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to