Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 32538 invoked by uid 500); 12 Jul 2001 07:42:57 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 32493 invoked from network); 12 Jul 2001 07:42:51 -0000 Received: from ibcdns.ibc.co.in (202.54.91.66) by h31.sny.collab.net with SMTP; 12 Jul 2001 07:42:51 -0000 Received: from EJBT1X ([10.91.1.212]) by ibcdns.ibc.co.in with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id NJTATA4J; Thu, 12 Jul 2001 13:31:17 +0530 Message-ID: <001f01c0f896$7de61f30$d4015b0a@ejbt1x> From: "Ravishankar.S" To: References: <09F795E20140924D94598F92B5DA08EC46BE39@chexch01.silverline.com> Subject: Re: tomcat-apache?? why Jserv Module? Date: Tue, 19 Jun 2001 13:34:25 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_001C_01C0F8C4.8E50C3B0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N This is a multi-part message in MIME format. ------=_NextPart_000_001C_01C0F8C4.8E50C3B0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable tomcat-apache?? why Jserv Module?dear lax, pl bear with me.this is going to be a long one.as i = understand it u r having two databases( say oracle & sql-server) serving = two diff applications(i.e each has it's own jsp's and servlets).now one = way to do it is create two different contexts of tomcat and create = WEB-INF and examples/jsp folders for each context.then u can simply put = the respective applications in each context and happily run them and no = need for the ini file to have the dsn's .u can create the dsn's in ODBC = datasources wizard in administrative tools(win nt) and use = url=3D"jdbc:odbc:" .but this way ur performance is poor(as = there is only one jvm is being used by tomcat).what u can do is read the = file "tomcat user guide:a minimalistic approach" in docs dir.u can have = two context's using diff jvm's to serve ur contexts.it takes up sys = resources but ur speed improves.the baseline is instead of one = server.xml file u need to have two server.xml files.in one xml file u = load one context and in the other u load the other context.u can then = start two tomcat's by startup -f .ur apache then = sends the necessary servlet/jsp to the respective context depending upon = ur ACTION attribute. both context's should have diff ports(say 8007 & 8009) http://localhost:8080/context1 directs to one context http://localhost:8080/context2 directs to the other context u need to read the docs carefully.it is difficult to acheive but not = impoosible and should be attempted only if there is real need for it!!! ravi ------=_NextPart_000_001C_01C0F8C4.8E50C3B0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable tomcat-apache?? why Jserv Module?
dear lax,
       =20         pl bear with me.this is going to = be a long=20 one.as i understand it u r having two databases( say oracle & = sql-server)=20 serving two diff applications(i.e each has it's own jsp's and = servlets).now one=20 way to do it is create two different contexts of tomcat and create = WEB-INF=20 and  examples/jsp folders for each context.then u can simply put = the=20 respective applications in each context and happily run them and no need = for the=20 ini file to have the dsn's .u can create the dsn's in ODBC datasources = wizard in=20 administrative tools(win nt) and use url=3D"jdbc:odbc:<dsn name>" = .but this=20 way ur performance is poor(as there is only one jvm is being used by=20 tomcat).what u can do is read the file "tomcat user guide:a minimalistic = approach" in docs dir.u can have two context's using diff jvm's to serve = ur=20 contexts.it takes up sys resources but ur speed improves.the baseline is = instead=20 of one server.xml file u need to have two server.xml files.in one xml = file u=20 load one context and in the other u load the other context.u can then = start two=20 tomcat's by startup -f <path to server.xml>.ur apache then sends = the=20 necessary servlet/jsp to the respective context depending upon ur ACTION = attribute.
 
 
both context's should have diff = ports(say 8007=20 & 8009)
http://localhost:8080/context1 =20 directs to one context
http://localhost:8080/context2 directs=20 to the other context
 
u need to read the docs carefully.it is = difficult=20 to acheive but not impoosible and should be attempted only if there is = real need=20 for it!!!
 
ravi
------=_NextPart_000_001C_01C0F8C4.8E50C3B0--