This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes connection with database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "connection with database" Watch "connection with database" New topic

connection with database


Joined: Aug 05, 2002
Posts: 2
My servlet connect on my localhost with my database but when the file is transfer over a web server the connection will work for a while and refuse to connect avec a restart a new browser. Please help (I am using servlet and mysql database)
Graham Thorpe
Ranch Hand

Joined: Mar 25, 2002
Posts: 265
At current driver is not supported to browser.Which driver r u using now ?Before i also got pls change other driver for recommended pure java driver
Khurram Shahood(SCJP2)

Joined: Jun 08, 2002
Posts: 18
i think u should use connection pooling.

khurram shahood(Java Farmer)
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

"jeanbkus", "Khurram Shahood(SCJP2)",
Your names are not valid.
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please edit your profile and select a new name which meets the requirements.

Joined: Aug 05, 2002
Posts: 2
Thanks you all for helping me. The connection pool was the solution of my problems was resolved.
wood burning stoves
subject: connection with database
It's not a secret anymore!