Quantcast
Channel: GlassFish Related Items on Java.net
Viewing all articles
Browse latest Browse all 1091

Howto avoid java.sql.SQLException: at deployment and startup

$
0
0

Hi there,

I've defined a MySql JDBC connection pool in my glassfish server.
The thing is this connection isn't always available, I'm catching the exception in my application and handle things.
The problem is when deploying or starting the application an "java.sql.SQLException: Connection could not be allocated because: The application requester cannot establish the connection. (Connection timed out: connect) " occurs when the connection is not available and the application isn't started.
My question is how to avoid this so my application does start up and the exception can be handled when the connection is needed in my application.

Thanks in advance,
Arco


Viewing all articles
Browse latest Browse all 1091

Trending Articles