Why are you passing the connection event object as the handle
rather than the closed connection object you originally returned from
I suppose the immediate answer is because I'm still learning and did not fully understand the code in the tutorial that I used. After rereading your response/question and reviewing my code it seems that the [INFO] message then is comming from the connection.close() call. I have the following code in my ManagedConnection implementation:
public void close()
Enumeration list = listeners.elements();
ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED);
Upon review of the sample code in Chapter 7 of the JBoss Admin & Devel manual I see that a key difference is the
instruction that is in my close() method. Is it safe to say then that this is the cause of the unregistered handle info message I'm producing and if I pass in the "connection" object rather that the "event" object on the setConnectionHandle() method the message will be eliminated?