-
1. Re: Resource Adapter warning message
adrian.brock May 26, 2004 9:26 PM (in response to jmaclatchie)Why are you passing the connection event object as the handle
rather than the closed connection object you originally returned from
ManagedConnection.getConnection(...)? -
2. Re: Resource Adapter warning message
jmaclatchie May 27, 2004 1:15 PM (in response to jmaclatchie)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);
event.setConnectionHandle(event);
while (list.hasMoreElements())
{
((ConnectionEventListener) list.nextElement()).connectionClosed(event);
}
connection.invalidate();
}
Upon review of the sample code in Chapter 7 of the JBoss Admin & Devel manual I see that a key difference is the
event.setConnectionHandle(event);
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?
Thanks,
jmaclatchie