RE: tomcat-apache?? why Jserv Module?

2001-07-12 Thread Lakshminarayanan Ramakrishnan
Title: tomcat-apache?? why Jserv Module?



Dear 
Ravi,
Wonderful ravi. I got ur 
point.
But, i 
forgot to tell you one important point in my prev mail that, we have our own 
connectionpool(written in java) running, which requires the dsn name to be in 
the ini file other than that it requires some info for logging errors etc. Take 
a look...
 
So i 
need to have two server roots isn't it??
 
INI 
file content...in the server root
for development:
DBUSER=devDBDRIVER=sun.jdbc.odbc.JdbcOdbcDriverDBPASSWORD=devDBURL=jdbc:odbc:devDBCONNECTIONS=30SYSERRORLOGFILE=SYSERROR.LOGAPPERRORLOGFILE=APPERROR.LOGAPPERRORDESCFILE=ERRORS.INF
 

for Test:
DBUSER=testDBDRIVER=sun.jdbc.odbc.JdbcOdbcDriverDBPASSWORD=testDBURL=jdbc:odbc:testDBCONNECTIONS=30SYSERRORLOGFILE=SYSERROR.LOGAPPERRORLOGFILE=APPERROR.LOGAPPERRORDESCFILE=ERRORS.INF
 
Lax

  -Original Message-From: Ravishankar.S 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, June 19, 2001 1:34 
  PMTo: [EMAIL PROTECTED]Subject: Re: 
  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="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


Re: tomcat-apache?? why Jserv Module?

2001-07-12 Thread Ravishankar.S
Title: 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="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


RE: tomcat-apache?? why Jserv Module?

2001-07-11 Thread Lakshminarayanan Ramakrishnan
Title: tomcat-apache?? why Jserv Module?



Dear ravi,
 
I'm 
setting up a server for development as well as testing environments. I need 
both to run parallelly.
Problem comes when i need to have two different 
databases..that means two dsn's for connecting to 
them.
I 
place this dsn in an ini file in the server root i.e by default 
the bin folder of tomcat.
 
Note 
this, i need to have one set of jsp files, set of class files(these are not 
common to these envs), and ofcourse ini file where i place the 
dsn.
At 
startup i load some servlet classes.
 
What should do be 
done:
 
Have 
one Apache webserver which caters to both the env's using 
tomcat.
 
What i did:
 
Have 
one Apache webserver, two tomcats running in the same machine (O/S: 
Win'NT)
 
if i 
have two tomcats, i'll have two bin folders to place my ini files have two 
independent dsn's there
 
Is 
that right?
 
Should 
i include two mod_jk.conf-auto in httpd.conf
 
Awaiting ur reply
Lax

  -Original Message-From: Ravishankar.S 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, June 19, 2001 11:57 
  AMTo: [EMAIL PROTECTED]Subject: Re: 
  tomcat-apache?? why Jserv Module?
  dear lax,
      
  u can't use mod_jk and ModJServ at the same time!!delete the 
  ApacheModJServ.dll file from ur modules dir( it says so in the docs).now,if u 
  r using mod_jk forget abt the tomcat-apache.conf file.the 
  file to look at is "mod_jk.conf-auto".this file is 
  overwritten every time u start tomcat.try editing this file.of course 
  the path to this file must be included in "httpd.conf".why exactly do 
  u want to use two diff workers for.is ur server serving a heavy load site 
  or r u jus experimenting.pl let me know
   
  ravi
          
              

  
- Original Message - 
From: 
Lakshminarayanan Ramakrishnan 
To: [EMAIL PROTECTED] 

Sent: Thursday, July 12, 2001 11:27 
AM
Subject: RE: tomcat-apache?? why Jserv 
Module?

Dear Ravi,
 
Then how to make mod_jk understand that i have two 
different workers at these locations...thats where i'm 
stuckup.
 
I 
include two different Mod_jk.conf-auto files for specifying different 
workers apart from tomcat-apache.conf, in httpd.conf 
file.
 
Is 
that right?
 
Lax

  -Original Message-From: Ravishankar.S [mailto:[EMAIL PROTECTED]]Sent: 
  Tuesday, June 19, 2001 11:42 AMTo: 
      [EMAIL PROTECTED]Subject: Re: tomcat-apache?? why 
  Jserv Module?
  dear lax,
          
          actually u don't need two diff 
  "tomcat-apache.conf "files for multiple workers.what u can do is 
  edit  a file called "workers.properties" (in the "conf "dir of 
  tomcat) and read the comments  and configure it .tomcat automatically 
  balances ur load,further i recommend u to use the ajpv13 protocol 
  since it is faster and better than the ajpv12 protocol.this can be done in 
  "server.xml".please read "tomcat-workers howto.html" for more 
  info,it's  a very useful file.read it carefully and configure it 
  accordingly
   
  ravi


Re: tomcat-apache?? why Jserv Module?

2001-07-11 Thread Ravishankar.S
Title: tomcat-apache?? why Jserv Module?



dear lax,
    
u can't use mod_jk and ModJServ at the same time!!delete the ApacheModJServ.dll 
file from ur modules dir( it says so in the docs).now,if u r using mod_jk forget 
abt the tomcat-apache.conf file.the file to look at is 
"mod_jk.conf-auto".this file is overwritten every time u start 
tomcat.try editing this file.of course the path to this file must be 
included in "httpd.conf".why exactly do u want to use two diff workers 
for.is ur server serving a heavy load site or r u jus experimenting.pl 
let me know
 
ravi
        
            

  - Original Message - 
  From: 
  Lakshminarayanan Ramakrishnan 
  To: [EMAIL PROTECTED] 
  Sent: Thursday, July 12, 2001 11:27 
  AM
  Subject: RE: tomcat-apache?? why Jserv 
  Module?
  
  Dear 
  Ravi,
   
  Then 
  how to make mod_jk understand that i have two different workers at these 
  locations...thats where i'm stuckup.
   
  I 
  include two different Mod_jk.conf-auto files for specifying different workers 
  apart from tomcat-apache.conf, in httpd.conf file.
   
  Is 
  that right?
   
  Lax
  
-Original Message-From: Ravishankar.S [mailto:[EMAIL PROTECTED]]Sent: 
Tuesday, June 19, 2001 11:42 AMTo: 
[EMAIL PROTECTED]Subject: Re: tomcat-apache?? why 
Jserv Module?
dear lax,
        
        actually u don't need two diff 
"tomcat-apache.conf "files for multiple workers.what u can do is edit  
a file called "workers.properties" (in the "conf "dir of tomcat) and read 
the comments  and configure it .tomcat automatically balances ur 
load,further i recommend u to use the ajpv13 protocol since it is 
faster and better than the ajpv12 protocol.this can be done in 
"server.xml".please read "tomcat-workers howto.html" for more 
info,it's  a very useful file.read it carefully and configure it 
accordingly
 
ravi


RE: tomcat-apache?? why Jserv Module?

2001-07-11 Thread Lakshminarayanan Ramakrishnan
Title: tomcat-apache?? why Jserv Module?



Dear 
Ravi,
 
Then 
how to make mod_jk understand that i have two different workers at these 
locations...thats where i'm stuckup.
 
I 
include two different Mod_jk.conf-auto files for specifying different workers 
apart from tomcat-apache.conf, in httpd.conf file.
 
Is 
that right?
 
Lax

  -Original Message-From: Ravishankar.S 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, June 19, 2001 11:42 
  AMTo: [EMAIL PROTECTED]Subject: Re: 
  tomcat-apache?? why Jserv Module?
  dear lax,
          
          actually u don't need two diff 
  "tomcat-apache.conf "files for multiple workers.what u can do is edit  a 
  file called "workers.properties" (in the "conf "dir of tomcat) and read the 
  comments  and configure it .tomcat automatically balances ur load,further 
  i recommend u to use the ajpv13 protocol since it is faster and better 
  than the ajpv12 protocol.this can be done in "server.xml".please read 
  "tomcat-workers howto.html" for more info,it's  a very useful file.read 
  it carefully and configure it accordingly
   
  ravi


Re: tomcat-apache?? why Jserv Module?

2001-07-11 Thread Ravishankar.S
Title: tomcat-apache?? why Jserv Module?



dear lax,
        
        actually u don't need two diff 
"tomcat-apache.conf "files for multiple workers.what u can do is edit  a 
file called "workers.properties" (in the "conf "dir of tomcat) and read the 
comments  and configure it .tomcat automatically balances ur load,further i 
recommend u to use the ajpv13 protocol since it is faster and better than 
the ajpv12 protocol.this can be done in "server.xml".please read "tomcat-workers 
howto.html" for more info,it's  a very useful file.read it carefully and 
configure it accordingly
 
ravi


RE: tomcat-apache?? why Jserv Module?

2001-07-11 Thread Lakshminarayanan Ramakrishnan
Title: tomcat-apache?? why Jserv Module?



Thanx 
ravi for replying promptly,
 
Actually i'm running two tomcat workers and one apache 
web server, in that case, in tomcat-apache.conf file i need to specify  
this
 


ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice
ApJServDefaultPort 8007
..

 
Apache 
does not accept this when this occurs two timessince i include two different 
tomcat-apche.conf files for two different tomcat servers
 
What 
to do?
 
thanx
Lax

  -Original Message-From: Ravishankar.S 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, June 19, 2001 10:56 
  AMTo: [EMAIL PROTECTED]Subject: Re: 
  tomcat-apache?? why Jserv Module?
  dear lax ,
          
              u need a dll file 
  called ApacheModJServ.dll.just copy this dll to " modules " dir of apache and 
  include the path of "tomcat-apache.conf" in the httpd.conf file of apache and 
  then presto u have tomcat+apache setup.i can send u the config files if u want 
  it later
   
  regds,
  ravi
  
- Original Message - 
From: 
Lakshminarayanan Ramakrishnan 
To: [EMAIL PROTECTED] 

Sent: Thursday, July 12, 2001 10:26 
    AM
    Subject: tomcat-apache?? why Jserv 
Module?

Hi 
Is that ApJservModule.dll (on NT) needed for 
linking tomcat and Apache? 
Thanx 
Lax 



Re: tomcat-apache?? why Jserv Module?

2001-07-11 Thread Ravishankar.S
Title: tomcat-apache?? why Jserv Module?



dear lax ,
        
            u need a dll file 
called ApacheModJServ.dll.just copy this dll to " modules " dir of apache and 
include the path of "tomcat-apache.conf" in the httpd.conf file of apache and 
then presto u have tomcat+apache setup.i can send u the config files if u want 
it later
 
regds,
ravi

  - Original Message - 
  From: 
  Lakshminarayanan Ramakrishnan 
  To: [EMAIL PROTECTED] 
  Sent: Thursday, July 12, 2001 10:26 
  AM
  Subject: tomcat-apache?? why Jserv 
  Module?
  
  Hi 
  Is that ApJservModule.dll (on NT) needed for 
  linking tomcat and Apache? 
  Thanx 
  Lax 


tomcat-apache?? why Jserv Module?

2001-07-11 Thread Lakshminarayanan Ramakrishnan
Title: tomcat-apache?? why Jserv Module?






Hi


Is that ApJservModule.dll (on NT) needed for linking tomcat and Apache?


Thanx


Lax