4 Replies Latest reply on Dec 1, 2006 1:33 PM by oglueck

    Always the same managed connection

      It seems the JBoss connection manager ignores the ConnectionRequestInfo when allocating new connections. What I do is:

      conn1 = mycf.getConnection("abc");
      conn2 = mycf.getConnection("def");

      The connection factory basically passes the parameter as a ConnectionRequestInfo to the ConnectionManager.allocateConnection method. As it seems the connection manager always wants to return the same connection, even though the ConnectionRequestInfo for conn2 is different from conn1.

      Can anybody confirm this?

      I circumvented the problem by eliminating the parameter from getConnection. Thus I don't care anymore if I get the same connection back. But it still leaves me with a feeling that the JBoss ConnectionManager violates the JCA specs.