----- Original Message -----
Sent: Friday, December 07, 2001 4:33 PM
Subject: [JBoss-user] Connection is
broken
[Default] Error:Connection is broken
[GetDBConnection]
XAException: tx=XidImpl [FormatId=257, GlobalId=zyb//10, Branc
hQual=]
errorCode=XA_UNKNOWN(0)
[GetDBConnection] javax.transaction.xa.XAException:
Rollback failed: Connection
is
broken
[GetDBConnection] at
org.jboss.pool.jdbc.xa.wrapper.XAResourceImpl.rollbac
k(XAResourceImpl.java:219)
//////////////////////////////////////////////
public java.sql.Connection GetConnection() throws
RemoteException{
java.sql.Connection con;
try {
con =
ds.getConnection("scott","tiger");
Statement stmt =
con.createStatement ();
ResultSet rset = stmt.executeQuery ("select
id from scott.info");
while (rset.next ()) {
String
roomid= rset.getString("ID");
System.out.println("bbs: " +
roomid);
}
return con;
} catch( Exception ex )
{
System.out.println("Error:" + ex.getMessage());
throw new
RemoteException( ex.getMessage()
);
}
}
/////////////////////////////////////////////////////////
I use a pool named OraclePool ,which was tested
successfuly!
I also tested my pool with the
oracle.jdbc.driver.OracleDriver and it passed.