I have a servlet that contains the following code in its init() method:
public void init(ServletConfig config) throws ServletException {
super.init(config);
try {
Context initCtx = new InitialContext();
Context envCtx = (Context)
: Jeffrey Barnett [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 2:04 PM
To: Tomcat Users List
Subject: Binding DataSources to Contexts in Tomcat 4.06/4.1
I have a servlet that contains the following code in its init() method:
public void init(ServletConfig config) throws
-Original Message-
From: Jeffrey Barnett [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 2:04 PM
To: Tomcat Users List
Subject: Binding DataSources to Contexts in Tomcat 4.06/4.1
I have a servlet that contains the following code in its init() method:
public void init(ServletConfig config
Hi,
In both servers the Resource declarations are in the DefaultContext
block. All DataSources are shared by all webapps.
You realize that by placing a Resource in DefaultContext you ensure that
a separate copy is created for each Context, right? That means if you
configure for 10 max
I'm sure your explanation as well as a (re) reading of the How To will
allow me to correct the problem. Thanks very much!
I'd like a little more explanation however about your advice on using
DefaultContext. In addition to the advantage of having a single place to
add, remove, and change
Hi,
passwords), I THOUGHT I was sharing a single copy of the resources. I
understand now that a separate copy is created for every application.
But what I don't understand is how putting every resource in every
actual context is better. If I have 5 applications, each of whose
actual context