wild_oscar wrote:
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
Yes, by definition, since application scope is shared accross all
requests and sessions. For a Hibernate session factory that's probably
what you want in most cases.
more than one connection to databases (e.g: one for authorization and
authentication, another for an e-shop)?
The presumably you'd have a session factory configured for each
connection; I'm not sure. How to handle connections to multiple
databases is a Hibernate usage issue. Browse the Hibernate documentation
and/or ask on their forums.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]