We have this kind of Hibernate JNDI setting (for database named dbname) -

       <property
name="connection.datasource">java:comp/env/jdbc/dbname</property>

With this in conf/catalina/localhost/appname.xml (where appname is you
webapp directory) -

<Context>
   <Resource
       name="jdbc/dbname" auth="Container" type="javax.sql.DataSource"
       driverClassName="com.mysql.jdbc.Driver"
       username="dbusername"
       password="dbpassword"
       url="jdbc:mysql://localhost:3306/dbname"
       defaultAutoComment="false"
       removeAbandoned="true"
       removeAbandonedTimeout="60"
       maxWait="10000"
       maxActive="20"
       maxIdle="5" />
</Context>

Date:    Wed, 31 May 2006 09:53:00 +0530
From:    "Upendra Nath Reddy K." <[EMAIL PROTECTED]>
Subject: help nead in implementing datasource in tomcat5.5.

Hi All, Good morning,
could help me in implementing Datasource using jndi in tomcat.

my requriment:  basic steps in implementing datasource  and requried jar =
files=20
I am using :tomcat5.5 and mysql5.0.

Thanks and Regards,
Upendra Nath Reddy.K




===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com

Reply via email to