RE: startup classes in tomcat 4.1.12

2002-11-29 Thread P Sasidhar
Hi David,

Thanks for your help.it got solved.

sasi


-Original Message-
From: David Brown [mailto:[EMAIL PROTECTED]] 
Sent: Friday, November 29, 2002 4:17 PM
To: [EMAIL PROTECTED]
Subject: Re: startup classes in tomcat 4.1.12

P Sasidhar writes: 

> Hi,
>  
> Can any one tell me how to configure start up classes in
> tomcat 4.1.12 server
>  
>  
> sasi
>  
>  
>  
>  
>  
Hello sasi, what r u trying to do? need more info: is tc running? if tc
is 
running, what happened? what url did u invoke? have u checked ur logs?
what 
more can u find out to report? david. 


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: startup classes in tomcat 4.1.12

2002-11-29 Thread David Brown
P Sasidhar writes: 

Hi,
 
Can any one tell me how to configure start up classes in
tomcat 4.1.12 server
 
 
sasi
 
 
 
 
 
Hello sasi, what r u trying to do? need more info: is tc running? if tc is 
running, what happened? what url did u invoke? have u checked ur logs? what 
more can u find out to report? david. 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



RE: startup classes in tomcat 4.1.12

2002-11-29 Thread Reynir Hübner
Sure, there are few possibilities.

One is to make a ServletContextListener, with this you can start up what ever class 
you like when the application starts.
Another one is to make servlet and have its load-on-startup parameter set in web.xml 

For example if I have a servletcontextListener called ContextAttributeListener I would 
define it like this in web.xml for my application.


  com.firm.listeners.ContextAttributeListener
 

This class can then do what ever you like.

Servlet would be defined like this : 


  startup_servlet
  com.something.project.startup_servlet
  
someconfigpath
/WEB-INF/conf/something.properties
  
  1



And as the load-on-startup param is set to 1 it will be the first servlet to be loaded 
in the startup line.
Hope this helps
-reynir


> -Original Message-
> From: P Sasidhar [mailto:[EMAIL PROTECTED]] 
> Sent: 29. nóvember 2002 11:05
> To: [EMAIL PROTECTED]
> Subject: startup classes in tomcat 4.1.12
> 
> 
> Hi,
>  
> Can any one tell me how to configure start up 
> classes in tomcat 4.1.12 server
>  
>  
> sasi
>  
>  
>  
>  
>  
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




startup classes in tomcat 4.1.12

2002-11-29 Thread P Sasidhar
Hi,
 
Can any one tell me how to configure start up classes in
tomcat 4.1.12 server
 
 
sasi