1 Reply Latest reply on Feb 22, 2005 7:57 PM by Jared Dinerstein

    Problem with Transaction Manager and closing datasource conn

    Jared Dinerstein Newbie

      Hi, new to JBoss from Weblogic, and getting an error I've never seen before. I am trying to pass a ResultSet from one private method, in which a Connection is made, and the ResultSet is populated, to another method in which the contents of the ResultSet are to be extracted and used.

      This was possible in Weblogic, but here in JBoss, I keep getting the following error:

      [CachedConnectionManager] Closing a connection for you. Please close them yourself: org.jboss.resource.adapter.jdbc.WrappedConnection@17eb767
      java.lang.Exception: STACKTRACE at org.jboss.resource.connectionmanager.CachedConnectionManager.registerConnection(CachedConnectionManager.java:285)
      at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:525)
      at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:887)
      at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:102)

      I'm sure that this is a stupid error, but one in which I honestly have
      never had to deal with before, and can't seem to find an answer for how
      to do this type of variable passing.

      Any thoughts/ideas on how to pass a ResultSet between two methods
      correctly, or even if it is possible in JBoss would be greatly appreciated.

      Jared Dinerstein