RE: Share Java resources between two (or more) servlets

2003-03-07 Thread Bill Lunnon
Andreas, Firstly, the servlet with db connections should be created and added to the ServletContext (hence not really a servlet). All other servlets can than access this object via getServletContext.getAttribute() etc. This servlet is defined as a servlet, loaded on initialisation. You must

RE: Share Java resources between two (or more) servlets

2003-03-07 Thread Reynir Hübner
Hi, See intermixed. -Original Message- From: Andreas Byström [mailto:[EMAIL PROTECTED] Sent: 7. mars 2003 10:20 To: Tomcat Users Subject: Share Java resources between two (or more) servlets Hi all! I'm writing an application that uses (for now) 4 different servlets. I

RE: Share Java resources between two (or more) servlets

2003-03-07 Thread Andreas Byström
mars 2003 11:54 To: Tomcat Users List Subject: RE: Share Java resources between two (or more) servlets Hi, See intermixed. -Original Message- From: Andreas Byström [mailto:[EMAIL PROTECTED] Sent: 7. mars 2003 10:20 To: Tomcat Users Subject: Share Java resources between two (or more

RE: Share Java resources between two (or more) servlets

2003-03-07 Thread Roberts, Eric
Java resources between two (or more) servlets Andreas, Firstly, the servlet with db connections should be created and added to the ServletContext (hence not really a servlet). All other servlets can than access this object via getServletContext.getAttribute() etc. This servlet is defined

RE: Share Java resources between two (or more) servlets

2003-03-07 Thread Andreas Byström
To: Tomcat Users List Subject: RE: Share Java resources between two (or more) servlets Andreas, Firstly, the servlet with db connections should be created and added to the ServletContext (hence not really a servlet). All other servlets can than access this object via

RE: Share Java resources between two (or more) servlets

2003-03-07 Thread Andreas Byström
resources between two (or more) servlets Hi, See intermixed. -Original Message- From: Andreas Byström [mailto:[EMAIL PROTECTED] Sent: 7. mars 2003 10:20 To: Tomcat Users Subject: Share Java resources between two (or more) servlets Hi all! I'm writing an application that uses