Re: Tomcat and classloaders
From: Erik Berglund (erik.berglund_at_deployit.biz)
Date: 09/16/04
- Next message: Olivier Laurent: "J2ME Regular Expressions"
- Previous message: Martinez: "EJB"
- In reply to: Babu Kalakrishnan: "Re: Tomcat and classloaders"
- Next in thread: Babu Kalakrishnan: "Re: Tomcat and classloaders"
- Reply: Babu Kalakrishnan: "Re: Tomcat and classloaders"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 16 Sep 2004 02:10:01 -0700
Babu Kalakrishnan <k.a.l.a@sankya.com> wrote in message news:<2q3fdbFqtrogU1@uni-berlin.de>...
> Erik Berglund wrote:
> >
> > I do not know if this is correct forum but I could not find any "free"
> > tomcat forum right now. So:
> >
> > I have a problem using Tomcat (version 4.1.30) in an environment where
> > we have configured it with about 10 different hosts (used together
> > with virtual hosts in Apache webserver ). Theses hosts are different
> > web applications used by different countries with different time
> > zones.
> >
> > The problem is when setting the default java.util.TimeZone in one web
> > application it will also affect another web application under a
> > completely different host.
> >
> > I guess this is beacause core java classes are shared among all
> > defined hosts and just loaded once. Is this correct ? Is it in any way
> > possible to configure Tomcat so that each host can have its own
> > default TimeZone?
> >
>
> I would say depending on Objects that use the Default Locale / Timezone values
> isn't a very robust design anyway for an application meant to cater to varying
> Locales. As far as I can think, most (all?) classes that need Locale / Timezone
> information for proper functioning (like character I/O, Calendars etc) have
> constructors that allow you to specify a specific non-default value for these
> and applications such as yours must use those and must never be dependent on
> setting the system defaults.
>
> BK
Thanks for your hint.
But that do not solve my problem right now. To clarify: each
application does not deal with different time zones. For example:
Lithuania has its own application hosted on one host and Sweden has
its own application hosted on another host. Why do they not get
different default time zones ? Is it not possible to have each host
running in its own process (virtual machine) ? Earlier we used
WebSphere to host all these countrie's applications (but that was not
as quick as Tomcat and of course more expensive) and I do not remember
having this problem.
Regards
Erik
- Next message: Olivier Laurent: "J2ME Regular Expressions"
- Previous message: Martinez: "EJB"
- In reply to: Babu Kalakrishnan: "Re: Tomcat and classloaders"
- Next in thread: Babu Kalakrishnan: "Re: Tomcat and classloaders"
- Reply: Babu Kalakrishnan: "Re: Tomcat and classloaders"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|