Hai  again,

As haribabu_nunna said, use singleton pattern is a good (design) solution. But 
seems that the root cause of you problem is that the server doesn't know when 
you close connections.

When the server creates a new connection calls 
ManagedConnection.addEventListener(EventListner) method. It means that the 
server has registered a listener for the connection.

Whe you close the ManagedConnection, somewhere in you code, you must send the 
"connection close event" to this listener throw the reference recived before.

I can't tell you the correct way to do that, but I use to send this event in 
the ManagedConnection.Clean() method.

I hope this can help you.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3920757#3920757

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3920757


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to