> From: Mathias P.W Nilsson [mailto:[EMAIL PROTECTED]
> When a user access www.domain1.se then I read the
> HTTPServletRequest host
> name to see what site
> he/she want's to access. This is because I do not want 3
> hibernate access to
> the same database because that won't work. I would get a lot
> of exceptions
> from hibernate if an entity is changed in one domain and not
> the other.
>
> So, can I set up the server in the way I have done now? If I
> use 3 different
> hosts, how can this point to the same war file without
> loading the war file twice?

I am not aware of any way of doing this, unless you re-architect the 
application so that all Hibernate access is done in classes that are only 
loaded once.  However, I'm not a Tomcat expert and there may be ways round the 
problem!

                - Peter

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to