Re: Tomcat and classloaders

From: Erik Berglund (erik.berglund_at_deployit.biz)
Date: 09/16/04


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



Relevant Pages

  • Re: renaming of /tmp partition. Any adverse effect on OS
    ... The applications running under FreeBSD consider /home/app as the root ... FreeBSD hosts are being used for running our native applications. ... you are effectively disabling the required permissions on ... one host to check whether everything is fine or not. ...
    (comp.os.linux.setup)
  • Re: BizTalk hosts and deployment...
    ... There's really no single answer to this question; it depends a lot on your environment, your needs, what your applications do and the adapters you use. ... For example, you might have a BizTalk group with multiple machines, but you're using an adapter you only want to execute in one of those machines, so you set up a separate host with only one instance. ... One thing we're thinking of is a Host Instance per application. ...
    (microsoft.public.biztalk.general)
  • Transitioning Web Site
    ... I have a slight situation involving transitioning a web site from one ... host to another. ... The site has a number of Perlscript based ... It's a government website and 4 out of 5 applications ...
    (comp.lang.perl.misc)
  • Re: Creating a zone to use our external FTP name and point to our
    ... if you don't mind manually updating records in two zones whenever a ... Or if the IP address of the host doesn't ... zones to have to look at when you open up the DNS console such as for you, ... I might confuse a beginner DNS admin but certainly not a ...
    (microsoft.public.windows.server.dns)
  • Cant get hints or outside resolution.
    ... From the host itself, a slave for all my zones, I can resolve all my zones. ... The same is true if I try to resolve from a different host against this host. ...
    (comp.protocols.dns.bind)