Re: Clashing JNDI names? Maybe?

2003-07-31 Thread Anton Tagunov
Hello Andoni!

A  ResourceParams name=jdbc/live
A   parameter
AnamedriverClassName/name
Avalueoracle.jdbc.driver.OracleDriver/value
A   /parameter
A   parameter
Anameuser/name
Avaluelive/value
A   /parameter
A   parameter
Anamepassword/name
Avalue***/value
A   /parameter
A   parameter
AnamedriverName/name
Avaluejdbc:oracle:thin:@troi.eurokom.ie:1521:ora9/value
A   /parameter
A  /ResourceParams
A /Context
A/Host

Are you missing the 'factory' parameter?

-Anton


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Clashing JNDI names? Maybe?

2003-07-30 Thread Andoni
Hi,

I have two hosts on the same system one is the pilot of my website for testing and 
demo purposes and the other is the live site.

I want to be able to just copy the .war file across once it is tested.

The problem with this is my DB connection pooling is done by a DataSource in Tomcat 
and that is done using JNDI.  I think that the fact that there is the same JNDI name 
in the two host containers may be causing a clash?  The code from my server.xml is 
below.

There are two different settings I have found in my look at the Tomcat web-site to 
tell these not to clash but I don't know if they are what I think they are or which is 
the right one.

They are:
1. in the Resource tag auth=Container.
2. in the Resource tag scope=shareable (I do not have this in at all so it is 
shareable as that is the default)

For example:  When it says shareable makes connections shareable, does it mean even 
between hosts?

Thanks.

Andoni.


   Host name=live.server.com debug=3 appBase=webapps/live unpackWARs=false
Context path= docBase=live.war workDir=work/live debug=0 
reloadable=false
 Resource name=jdbc/live auth=Container type=javax.sql.DataSource/
 ResourceParams name=jdbc/live
  parameter
   namedriverClassName/name
   valueoracle.jdbc.driver.OracleDriver/value
  /parameter
  parameter
   nameuser/name
   valuelive/value
  /parameter
  parameter
   namepassword/name
   value***/value
  /parameter
  parameter
   namedriverName/name
   valuejdbc:oracle:thin:@troi.eurokom.ie:1521:ora9/value
  /parameter
 /ResourceParams
/Context
   /Host

   Host name=pilot.server.com debug=0 appBase=webapps/pilot unpackWARs=false
Context path= docBase=live.war workDir=work/pilot debug=0 
reloadable=false
 Resource name=jdbc/live auth=Container type=javax.sql.DataSource/
 ResourceParams name=jdbc/live
  parameter
   namedriverClassName/name
   valueoracle.jdbc.driver.OracleDriver/value
  /parameter
  parameter
   nameuser/name
   valuepilot/value
  /parameter
  parameter
   namepassword/name
   value***/value
  /parameter
  parameter
   namedriverName/name
   valuejdbc:oracle:thin:@localhost:1521:ora9/value
  /parameter
 /ResourceParams
/Context
   /Host