Ok, the story is this:
- The connection is actually meaningless (just a faced) for the JMS RA, it's the session that counts, it's that that is transacted, pooled and so on.
Closing the connection therefore does...nothing.
But it was not that intelligent to throw an exception. This is fixed in the latest CVS both for HEAD (i.e the development branch) and Branch_2_4 (al least Rel_2_4_1_3).
So either you remove the close (since it does nothing).
Checks the 2.4 branch out from CVS.
Or wait on the binary release of 2.4.1.