Hi, I hope anyone can help, this is my problem
Im using Struts - Hibernate with Oracle and Weblogic....everything works fine until I lost the pool connection (I can down the pool from weblogic console with 'Force Suspend' and then 'Resume')
so, after do that, hibernate can't do anything with the database, i get this error : "Could not execute query", but thats because i get this error first : " Connection has been administratively destroyed. Reconnect." And I know the pool its fine because i can tested and it works
theres a weblogic class "ConnectionEnv" and have a method named "checkIfEnabled" :
public void checkIfEnabled()
throws SQLException
{
setUsed(true);
if(destroyed)
throw new SQLException("Connection has been administratively destroyed. Reconnect.");
if(!enabled)
throw new SQLException("Connection has been administratively disabled. Try later.");
else
return;
}
and, after the pool was down, that method throws an Exception because the boolean "destroyed" is true
so, my question is, what can I do to avoid get that error, I mean, how can I get the new connections from the restored pool ??
|