I've created an Interceptor that takes care of creating a SessionFactory and putting it in the Application Context map.
I have a question, though, about the application context. Does this mean the Session Factory is shared among every session of the application, regardless of the internet user that is accessing it? What would happen if I wanted more than one connection to databases (e.g: one for authorization and authentication, another for an e-shop)? Kevin Lawrence-3 wrote: > > I'm a newbie too - so I can't tell you the best way - but what I did is > > lazily create one and put it in the the application context. > > Kevin > > http://www.junitfactory.com > Just went live with Struts2 > > wild_oscar wrote: >> >> My question is: what is the most appropriate way of binding the >> SessionFactory to the web application? Can someone pinpoint the basics >> and/or a tutorial where I can learn this? And how/when is the >> sessionfactory >> closed in the web application? >> >> Thank you! > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/-S2--Where-to-put-hibernate%27s-SessionFactory--tf4361648.html#a12474755 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]