Re: Action declaration question (Webwork/Hibernate)
smartr <[email protected]> Sun, 17 Dec 2006 15:27:49 CST
| Newsgroups | gmane.comp.java.open-symphony.webwork |
|---|---|
| Message-ID | <10460756.1166390899819.JavaMail.os-j2ee@opensymphony01.managed.contegix.com> |
Tomcat handles a jdbc connection pool resource which is shared via IoC, so I initially put the resource to the application context with a listener. Next I put a reference to it in each session on login. I'm not sure if I'm really getting benefit there. None the less, most of the classes do inherit from a my own base action, which makes the connection pool very easy to access. I'm currently not using anything to simplify the logic behind getting a connection , preparing a statement, and interpreting the resultset... --------------------------------------------------------------------- Posted via Jive Forums http://forums.opensymphony.com/thread.jspa?threadID=53761&messageID=108418#108418 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]