Re: Pool error connecting to database
Posted by: Mikel Lertxundi
Date: June 03, 2005 04:01AM

Hi again Tetsuro,

This is the code where my aplication connects to the DB.
This is the constructor of the class that manages the DB (connection, queries and inserts).
Like you can see the connection is without any parameters.Only Url, passwd and user.
And when the aplication launches a query or a insert to the DB I always close it. So....

public GestorBD(String sNombreBase) {
try {
String login = "MLERTXUNDI";
String password = "894022";
String bd = sNombreBase;
String url = "jdbc:mysql://" + bd;
conexionBD = DriverManager.getConnection(url, login, password);
} catch (Exception ex) {

Thanks a lot!

Options: ReplyQuote

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.