1 Reply Latest reply on Mar 4, 2003 6:24 PM by David Jencks

    How does the pool know to rollback my connection

    Dave Walker Newbie

      Hi,

      If i get a java.sql.Connection from a datasource that is part of a transaction managed pool (org.jboss.resource.connectionmanager.LocalTxConnectionManager) the Connection implementation complains if i try and call rollback while i'm in a managed transaction. Fair enough, but how does the pool know to call rollback (rather than commit) when the connection is returned to the pool?? Surely I have to have some way of telling the pool what action i want taken when the Connection is returned. Or can i not rollback on a Connection from a transaction managed pool?

      Thanks
      Dave