I want to "pre-setup" the configuration. I enter all the parameters, for the JDNCI info, and then the user only needs to install the webapp and if they use the default database location setting, it would work.
Resource auth="Container" name="octane" type="javax.sql.Datasource"/> <Resource name="jdbc/octane" type="javax.sql.DataSource"/> <ResourceParams name="jdbc/octane"> <parameter> <name>maxWait</name> <value>5000</value> </parameter> <parameter> <name>maxActive</name> <value>20</value> </parameter> <parameter> <name>password</name> <value>pasvallue</value> </parameter> <parameter> <name>url</name> <value>jdbc:firebirdsql:localhost/3050:c:/Octane/Database/octane.gdb</value> </parameter> <parameter> <name>driverClassName</name> <value>org.firebirdsql.jdbc.FBDriver</value> </parameter> <parameter> <name>maxIdle</name> <value>12</value> </parameter> <parameter> <name>username</name> <value>SYSDBA</value> </parameter> </ResourceParams> </Context> So I can have a URL value that expect the database file on the local file system. Provided the user places our db file there, then they would not need to modify any other setting in the web app. It would connect. Mike -----Original Message----- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 18, 2006 2:44 PM To: Tomcat Users List Subject: RE: placing context.xml in META-INF works? > From: Michael Hencin [mailto:[EMAIL PROTECTED] > Subject: RE: placing context.xml in META-INF works? > > I want this context file to be copied to the > $CATALINA_HOME/conf/Catalina/localhost/ directory do that > the users can use the default JNDI and env values I enter. Why does the location of the file containing the <Context> element have anything to do with what JNDI references your users have access to? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]