tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Александър Шопов <>
Subject Remapping datasources
Date Tue, 14 Jul 2009 21:09:30 GMT
Hi guys,
In my webap I am using a library that depends on datasources being
mapped to:
java:MyDS and not java:comp/env/jdbc/MyDS

When I define datasources in Tomcat, they end in java:comp/env.

What can I do to remap the datasources - make them available as

One of the strategies would be to have a servlet that initializes before
the rest of the system and do additional binding that would hopefully be
available to later loaded servlets.

Another one is to change the implementation of Context that new
InitialContext() returns, however I am not aware how and where to
implement this.

Can anyone suggest a solution?

Kind regards:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message