Hello all,
I developed an LDAP connector inspired by your example on the AdminDevel guide (JBoss-3.0.4).
I noticed that if the client class that uses the connection invokes twice or more times the close() method on the DirContext returned by the connection factory, a ConnectionEvent.CLOSE ConnectionEvent is fired multiple times.
This affects the NoTxConnectionEventListener that returns negative handles for the managed connection.
I have some log messages like this:
2002-12-11 18:09:08,744 TRACE [org.jboss.resource.connectionmanager.NoTxConnectionManager$NoTxConnectionEventListener] unregisterConnection: -1
2002-12-11 18:09:08,744 TRACE [org.jboss.resource.connectionmanager.NoTxConnectionManager$NoTxConnectionEventListener] unregisterConnection: -2
I would like to know if this has to be treated as a bug and can affect the behavior of the connection pool.
BTW, according to JCA, how should a cci treat multiple attempts to close a connection ?
Thanks in advance for paying attention,
L.