Re: Action declaration question (Webwork/Hibernate)
Konstantin Pribluda <[email protected]> Mon, 18 Dec 2006 01:33:43 CST
| Newsgroups | gmane.comp.java.open-symphony.webwork |
|---|---|
| Message-ID | <8301329.1166427254016.JavaMail.os-j2ee@opensymphony01.managed.contegix.com> |
You would surely benefit if you do following: - switch to hibernate - use IoC of your choice to inject session to wherever you need it. If you are stuk to plain old JDBC; you still could abstract creation / disposal of ocnnection in some bean and inject it into actions. ( most IoC frameworks already have such abstraction ) --------------------------------------------------------------------- Posted via Jive Forums http://forums.opensymphony.com/thread.jspa?threadID=53761&messageID=108474#108474 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]