You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by vemula <ve...@gmail.com> on 2014/01/27 01:14:53 UTC
JNDI Lookup
Hi All,
I have a resource configured in tomee.xml, if have to look up that resource
using spring jndi config
<jee:jndi-lookup id="jmsConnectionFactory"
jndi-name="openejb:Resource/JMSConnectionFactory"/>
is there anyway to get around not using openejb:Resource/ prefix.
The application is we developed is test in different app servers wehsphere
and weblogic do not need any
prefix <jee:jndi-lookup id="jmsConnectionFactory"
jndi-name="JMSConnectionFactory"/> works fine.
Thanks
Regards,
Vinay Vemula
--
View this message in context: http://openejb.979440.n4.nabble.com/JNDI-Lookup-tp4667303.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: JNDI Lookup
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi
Normally you can define a global name (java:global/jmsstuff)
you can also define the injection in web.xml to give it the name you want
Le lundi 27 janvier 2014, vemula <ve...@gmail.com> a écrit :
> Hi All,
>
> I have a resource configured in tomee.xml, if have to look up that
resource
> using spring jndi config
>
> <jee:jndi-lookup id="jmsConnectionFactory"
> jndi-name="openejb:Resource/JMSConnectionFactory"/>
>
> is there anyway to get around not using openejb:Resource/ prefix.
>
> The application is we developed is test in different app servers wehsphere
> and weblogic do not need any
> prefix <jee:jndi-lookup id="jmsConnectionFactory"
> jndi-name="JMSConnectionFactory"/> works fine.
>
> Thanks
>
> Regards,
> Vinay Vemula
>
>
>
> --
> View this message in context:
http://openejb.979440.n4.nabble.com/JNDI-Lookup-tp4667303.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
--
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau
<http://fr.linkedin.com/in/rmannibucau>*
*Github: https://github.com/rmannibucau <https://github.com/rmannibucau>*