-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Arttu,
On 10/1/2011 6:04 PM, Arttu Tanner wrote:
> Ok, figured it out. I needed to use InitialContext.lookupLink()
> instead of InitialContext.lookup() what I was using before.
That should not be necessary. Here is the code I have been using for
year
Ok, figured it out.
I needed to use InitialContext.lookupLink() instead of
InitialContext.lookup() what I was using before.
Seems obvious now, but I didn't think there would be two similar methods.
I just thought I'll post my solution for further reference. It's
always annoying to find that somebod
Try:
* conf/Catalina/localhost/mywebapp.xml OR
* webapps/mywebapp/META-INF/context.xml OR
* If you put it in GlobalNamingResources then you have to add a
to . See the Configuration
documentation.
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html has a
OS: Linux / CentOS / 2.6.18-028stab092.1
Tomcat: 5.5.23
I have simple XML-RPC -WebApp, that uses MySQL database.
Currently I have defined the JDBC resource in server.xml inside the
-tags as follows:
In the WebApp the connection is formed like this:
DataSource ds =(DataSource)ctx.lookup(