jQuery in Action, 2nd edition*
The moose likes JSP and the fly likes Writing a Connection Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Writing a Connection Bean" Watch "Writing a Connection Bean" New topic

Writing a Connection Bean

Vasudevan Gopalan
Ranch Hand

Joined: Aug 29, 2003
Posts: 67
Hi all,
Can anyone give me a sample code of Connection bean so that i can use the bean for establisng connection with database.
Faisal Khan
Ranch Hand

Joined: Jun 29, 2003
Posts: 285
this may help: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html

The secret to creativity is knowing how to hide your sources.
It is sorta covered in the JavaRanch Style Guide.
subject: Writing a Connection Bean
Similar Threads
Web Application
Bean for Servlets
look up datasource from session bean
Dealing with multi-threading in servlets