  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | help nead in implementing datasource in tomcat5.5. | help nead in implementing datasource in tomcat5.5. 2006-05-31 - By Paul Copeland
Back 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." <upendranathreddy.k@(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 listserv@(protected) with body: "signoff JSP-INTEREST". For digest: mailto listserv@(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
|
|
 |