geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Hawkins" <>
Subject RE: Full JNDI path to JCA
Date Wed, 07 Feb 2007 13:34:21 GMT

When I deploy my war file to Websphere I don't need to declare anything in my web.xml or in
my geronimo-web.xml equivelant. AND - I can just use the jndi name that I create the resource
with in my servlet with no pre-fixing.

So - 

In Geronimo it looks like I have to 
a) declare the resource references in my web.xml
b) declare the instances of those resource references in my geronimo-web.xml
c) I have to prefix the resource jndi lookup name with java:comp/env

This doesn't look to nice from where I sit? I hope I'm wrong and someone's going to tell me
that all I have to do is deploy my web.xml with NO refs pre-defined in it and no refs in the
geronimo-web.xml and that I can just get the resource using it's real name and not it java:comp/env
- Just like I do in Websphere.

Is Websphere being quirky here or is it Geronimo OR a combo?


-----Original Message-----
From: on behalf of Aaron Mulder
Sent: Wed 07/02/2007 12:46
Subject: Re: Full JNDI path to JCA
I think you need the resource ref.


On 2/7/07, John Hawkins <> wrote:
> Hi,
> I've managed to get my servlet to access a JCA when the JCA is deployed first then the
war file.
> However, in my web.xml file for the servlet I have to have a resource ref. I'd rather
not have this - I believe that I can get away without having this IF I know the exact name
of the JCA in JNDI - but all my combinations of java:comp/env/eis fail.
> Can anyone confirm that I can get away without the resource ref in my web.xml and, if
so, where is the jca deployed to in JNDI?
> many thankis,
> John.

View raw message