OK, I found that the listener for the connection is not being called because it is being overwritten(?) and when the CLOSE event is sent nothing happens. I think the problem is my way of getting a connection:
final DefaultFSResourceAdapterConnectionFactory cf =
conn = (DefaultFSResourceAdapterConnection)cf.getConnection();
PrintWriter log = new PrintWriter(new FileWriter("test.log", true));
Is the conn.setManagedConnection call correct??? This appears to be where the listener is overwritten. Am I doing this incorrectly?
Again, thanks in advance.