Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

connection with database

 
jeanbkus
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 265
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At current driver is not supported to browser.Which driver r u using now ?Before i also got problem.so pls change other driver for recommended pure java driver
 
Khurram Shahood(SCJP2)
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think u should use connection pooling.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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 http://www.javaranch.com/name.jsp.
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.
Thanks.
Dave
 
jeanbkus
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks you all for helping me. The connection pool was the solution of my problems was resolved.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic