tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Crowther <Peter.Crowt...@melandra.com>
Subject RE: Connector problem
Date Mon, 22 Sep 2008 10:29:33 GMT
> From: Mathias P.W Nilsson [mailto:mathias@snyltarna.se]
> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message