RE: Creating Object for Application

2001-07-27 Thread Frederick Lefebvre

Just instantiate a singleton from the init method of your servlet.

Fred

-Original Message-
From: Alexis Alarcón Barra [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 27, 2001 3:13 PM
To: [EMAIL PROTECTED]
Subject: Creating Object for Application


Hi, I'm using Tomcat 3.2.3. I'm trying to create an object from the
startup of the server and make it available for an application. How can
i do this ?

Thanks in advance,

Alexis



RE: creating a instance of a servlet: takes too long!!

2001-07-06 Thread Frederick Lefebvre

The connection pool could cause your problem.  If it initiates many database
connections, it is normal even if your db server was on the same machine
than your app server, for it to take a few seconds per connection.

Fred

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 9:18 AM
To: [EMAIL PROTECTED]
Subject: Re: creating a instance of a servlet: takes too long!!


If your servlet has changed and needs to be recompiled, then using
jikes instead of javac will save a lot of time.

Friday, July 06, 2001, 5:01:37 AM, [EMAIL PROTECTED] wrote:

ps Greetings,

ps why is that my servlet when the first time is invoked, it takes about 30
ps seconds or more to start when the servlets that came in tomcat are
ps instantaneous? After the servlet container instantiated and initialized
my
ps servlet, all the following requests are very fast. Is there any advice
for
ps what we should do and don't do in init() method? I just initialize some
ps properties and a connection pool
ps Well is it possible that my servlet container at any time my may
shutdown my
ps servlet to release memory, and another time it will be requested to
start
ps again and take another time too long to start, correct?

ps How can I benchmark the time of instantiation of my servlet and the time
of
ps my init method?

ps System configuration:
ps -Tomcat 3.2.1
ps -JDK 1.3
ps -Linux RedHat 6.2 [kernel 2.2.18]
ps -PII400Mhz 256Mbytes

ps thanks.
ps --
ps psalazar/




restarting web-apps independently

2001-07-05 Thread Frederick Lefebvre

Would Tomcat allow us to restart web-apps independantly without having to
restart the application server(Tomcat).  


Thanks

Fred

-Original Message-
From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 04, 2001 8:13 PM
To: [EMAIL PROTECTED]
Subject: Re: Starting Tomcat Programmatically


On Wed,  4 Jul 2001 18:22, you wrote:
 What are the steps required to start programmatically from a java program
Start what?  Tomcat?

org.apache.tomcat.startup.Tomcat.Main(new String[]);

should do the trick.

cheers
dim