Hello,
I am implementing my own JCA 1.5 resource adapter in
JBoss 5.1. I have used Iron Jacamar to auto-generate corresponding skeleton code for JCA 1.5.
My question is, where/how do I actually return the connection to the connection pool?
From the end user's perspective, this would entail something like connect.close(), however I'm not sure where exactly in the JCA stuff I'm supposed to handle this. Somewhere in the the ManagedConnection I'm assuming? There are two functions destroy and cleanup however there is no implemention for them and they sound like they actually physically close the connection.
Also wouldn't I need to somehow call a function on the connection pool to let it know? This may be accomplished by triggering an event to a listener but again I'm not sure the details of implementing this or where it should occur.
Thank you!
Kevin