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? thanks, John. -----Original Message----- From: [EMAIL PROTECTED] on behalf of Aaron Mulder Sent: Wed 07/02/2007 12:46 To: [email protected] Subject: Re: Full JNDI path to JCA I think you need the resource ref. Thanks, Aaron On 2/7/07, John Hawkins <[EMAIL PROTECTED]> 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. >
<<winmail.dat>>
