Perhaps you could also read this here http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
to get more details. On Fri, 3 Sep 2004 13:07:59 -0700 (PDT), Caroline Jen <[EMAIL PROTECTED]> wrote: > Thanks for replying. > > I am building only one webapp. What does "create a > proper Context element instead of DefaultContext" > mean? > > Thanks > > > --- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > You should put DefaultContext inside a Host. But if > > you only have one > > webapp, create a proper Context element for it > > instead of > > DefaultContext. > > > > The JDBC driver class name is supplied in your > > vendor documentation (in > > this case McKoi). A common one is > > com.mckoi.JDBCDriver. > > > > The port number is whatever port your database is > > listening on. Ask > > your DBA if you're not sure. > > > > Yoav Shapira > > Millennium Research Informatics > > > > > > >-----Original Message----- > > >From: Caroline Jen [mailto:[EMAIL PROTECTED] > > >Sent: Friday, September 03, 2004 3:09 PM > > >To: [EMAIL PROTECTED] > > >Subject: Configuring Tomcat 5.0.27 for JNDI (with > > the McKoi Database) > > > > > >I am sort of stuck with configuring the server.xml > > >file under the $TOMCAT\conf directory for JNDI. > > > > > >For the Tomcat 4.x, I put the following block of > > code; > > >i.e. <DefaultContext> right after the ending > > ></context> element and before the ending </host> > > >element in the server.xml file. > > > > > >However, I do not see the <context> element in the > > >Tomcat 5.0.27. There is the <host> element, > > though. > > > > > >[code] > > > <DefaultContext> > > > <Resource name="jdbc/McKoiDB" > > auth="Container" > > > type="javax.sql.DataSource"/> > > > <ResourceParams name="jdbc/McKoiDB"> > > > <parameter> > > > <name>factory</name> > > > > > > ><value>org.apache.commons.dbcp.BasicDataSourceFactory</value> > > > </parameter> > > > <parameter> > > > <name>driverClassName</name> > > > <value>????</value> > > > </parameter> > > > <parameter> > > > <name>url</name> > > > > > > ><value>jdbc:mckoi://localhost:????/databasename?autoReconnect=true</val > > ue> > > > </parameter> > > > <parameter> > > > <name>username</name> > > > <value>javauser</value> > > > </parameter> > > > <parameter> > > > <name>password</name> > > > <value>javadude</value> > > > </parameter> > > > <parameter> > > > <name>maxActive</name> > > > <value>20</value> > > > </parameter> > > > <parameter> > > > <name>maxIdle</name> > > > <value>30</value> > > > </parameter> > > > <parameter> > > > <name>maxWait</name> > > > <value>10000</value> > > > </parameter> > > > <parameter> > > > > > <name>removeAbandoned</name> > > > <value>true</value> > > > </parameter> > > > <parameter> > > > > > ><name>removeAbandonedTimeout</name> > > > <value>60</value> > > > </parameter> > > > <parameter> > > > <name>logAbandoned</name> > > > <value>true</value> > > > </parameter> > > > > > > </ResourceParams> > > > </DefaultContext> > > >[/code] > > > > > >1. Where should I put the <DefaultContext> in the > > >server.xml file? > > > > > >2. What is the value I should give to the > > >driverClassName parameter? > > > > > >3. What is the port number I should give to the url > > >parameter? i.e. > > > >jdbc:mckoi://localhost:????/DatabaseName?autoReconnect=true > > > > > > > > > > > >_______________________________ > > >Do you Yahoo!? > > >Win 1 of 4,000 free domain names from Yahoo! Enter > > now. > > >http://promotions.yahoo.com/goldrush > > > > > > >--------------------------------------------------------------------- > > >To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > >For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > > > > > This e-mail, including any attachments, is a > > confidential business communication, and may contain > > information that is confidential, proprietary and/or > > privileged. This e-mail is intended only for the > > individual(s) to whom it is addressed, and may not > > be saved, copied, printed, disclosed or used by > > anyone else. If you are not the(an) intended > > recipient, please immediately delete this e-mail > > from your computer system and notify the sender. > > Thank you. > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
