Register Session end

2008-07-08 Thread Stefan Lindner
How can I handle the end of a Session? I have a Session thet holds a JDBC-Connection. Now I want to close this connection when the session ends. Which method of Sessin can I override to handle the end of a session? The finalize method is called after all actions and I dan't close my JDBC session

Re: Register Session end

2008-07-08 Thread Matej Knopp
Holding a JDBC connection in session is hardly a good idea. Anyway, take a look at HttpSessionListener. -Matej On Tue, Jul 8, 2008 at 5:39 PM, Stefan Lindner [EMAIL PROTECTED] wrote: How can I handle the end of a Session? I have a Session thet holds a JDBC-Connection. Now I want to close this

RE: Register Session end

2008-07-08 Thread Stefan Lindner
Holding a JDBC connection in session is hardly a good idea. Anyway, take a look at HttpSessionListener. Which is the preferred pattern for this case? Where should I store a JDBC Session object? Stefan Lindner - To unsubscribe,

Re: Register Session end

2008-07-08 Thread James Carman
If I were you, I'd look into using Spring's JDBC support, if you really must use straight JDBC and not some ORM mapping tool (hibernate, etc.). http://static.springframework.org/spring/docs/2.5.x/reference/jdbc.html On Tue, Jul 8, 2008 at 12:27 PM, Stefan Lindner [EMAIL PROTECTED] wrote: