This content has been marked as final.
Show 1 reply
-
1. Re: Sanity check for non-jdbc connections
jgriffin May 6, 2005 12:09 PM (in response to jgriffin)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 =
(DefaultFSResourceAdapterConnectionFactory)
ServiceLocator.getInstance().getFSAdapter("FSResourceAdapter");
conn = (DefaultFSResourceAdapterConnection)cf.getConnection();
PrintWriter log = new PrintWriter(new FileWriter("test.log", true));
conn.setManagedConnection(new FSResourceAdapterManagedConnection(log));
Is the conn.setManagedConnection call correct??? This appears to be where the listener is overwritten. Am I doing this incorrectly?
Again, thanks in advance.