[Resin-interest] Dangling Connections
Hey list, I'm trying to find information on how the error about closing all dangling connections gets generated. I'm using a library that works by attaching a connection to each request and closes it automatically using a ServletRequestListener. As far as I can tell, this behavior is causing resin to spit out copious errors about not closing dangling connections. Is there a way to do something similar that won't trigger this error? Or a way to disable the behavior entirely? Thanks, Paul Davis ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Dangling Connections
On Jul 26, 2007, at 7:47 AM, Paul Davis wrote: Hey list, I'm trying to find information on how the error about closing all dangling connections gets generated. At the end of the top-level request, Resin rolls back the UserTransaction, and closes any connections that haven't been closed. This occurs after the top-level request listeners have been closed. I'm using a library that works by attaching a connection to each request and closes it automatically using a ServletRequestListener. As far as I can tell, this behavior is causing resin to spit out copious errors about not closing dangling connections. Are you absolutely sure the connections are closed in all cases? Is there a way to do something similar that won't trigger this error? Or a way to disable the behavior entirely? You really don't want to disable the behavior. It's an important error check. If the connections were actually left dangling, then they'd never get closed and the connection pool would lock up. -- Scott Thanks, Paul Davis ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] Failover and excluding session refresh based on path.
Scenario: Primary server is down and the backup is active, Resin 3.0.23, The session store is being reloaded 4- 5 times, per click by user. I believe this is because I have some CSS that loads images. The store is even refreshed when the user just hovers over an image ! Is there a way to tell resin that there is no need to refresh the session for particular paths something like session-config use-persistent-store/ always-save-session/ exclude-store exclude path=images/ exclude path=styles/ exclude path=scripts/ /exclude-store /session-config _ Robert Leland INTEGRITYOne (Formerly PRIZUM) P: (703) 581-6522 1900 Campus Commons Drive F: (703) 476-7405Reston, VA 20191 [EMAIL PROTECTED] BUSINESS CONSULTING | TECHNOLOGY SOLUTIONS | INNOVATION RD ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Dangling Connections
Use a filter: Open connection try { doFilter } finally { Close connection } _ Robert Leland INTEGRITYOne (Formerly PRIZUM) P: (703) 581-6522 1900 Campus Commons Drive F: (703) 476-7405Reston, VA 20191 [EMAIL PROTECTED] BUSINESS CONSULTING | TECHNOLOGY SOLUTIONS | INNOVATION RD -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Davis Sent: Thursday, July 26, 2007 10:48 To: resin-interest@caucho.com Subject: [Resin-interest] Dangling Connections Hey list, I'm trying to find information on how the error about closing all dangling connections gets generated. I'm using a library that works by attaching a connection to each request and closes it automatically using a ServletRequestListener. As far as I can tell, this behavior is causing resin to spit out copious errors about not closing dangling connections. Is there a way to do something similar that won't trigger this error? Or a way to disable the behavior entirely? Thanks, Paul Davis ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest