0 Replies Latest reply on Sep 26, 2005 1:31 PM by Maik Yal

    Closing a connection for you

    Maik Yal Newbie

      I've builded my onw JCA Resource Adaptor and when i lookup a connection from
      a JSP page the resource runs well. But when i lookup a connection from a Entity EJB the server says;

      INFO [CachedConnectionManager] Closing a connection for you. Please close them yourself:
      at org.jboss.resource.connectionmanager.CachedConnectionManager.registerConnection(CachedConnectionManager.java:321)
      at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:467)
      at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:888)
      at net.sourceforge.xmlconnector.BdbxmlConnectionFactoryImpl.getConnection(Unknown Source)

      I make the following steps (on both cases):
      - make a lookup for the resource
      - get a connection
      - create a interaction
      - call execute method
      - close the connection

      Thanks in advance.