tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Beth Hechanova" <bhechan...@imsconsultants.com>
Subject RE: Can Tomcat load a class on startup?
Date Fri, 19 Oct 2007 00:36:35 GMT
Yes, sorry - the implementation of the class is java.

-----Original Message-----
From: Martin Gainty [mailto:mgainty@hotmail.com] 
Sent: Thursday, October 19, 2000 5:30 PM
To: Tomcat Users List
Subject: Re: Can Tomcat load a class on startup?

Cant help without more specifics..which meaning are you using when you
say
LCD interface ..a java interface?

M--
----- Original Message -----
From: "Beth Hechanova" <bhechanova@imsconsultants.com>
To: <users@tomcat.apache.org>
Sent: Thursday, October 18, 2007 7:17 PM
Subject: Can Tomcat load a class on startup?


Hi,



I have a class file that I would like to have always running on my
machine, independent of any web application.  My machine includes an
LCD, and so this class file will be a listener to the LCD Interface that
can react to button presses.    This class can also potentially interact
with the website code if the user initiates current functions.



Ideally I'd like to package up this class in my website war file and
have tomcat instantiate this class when it starts up.  I didn't see
anything in the tomcat doc that looked like this was possible.



Alternately if this code can instead be packaged up in a separate jar
file that gets loaded at startup, that would work too.  And technically
this is probably "more correct" since this code needs to run independent
of the website code.



My goal is to have the LCD Listener running in the same jvm as Tomcat so
I don't have to deal with the issues with different jvm's.



Can Tomcat load a class on startup?

I'm running Tomcat v6.0.14 on a Linux Fedora machine.



Thanks,

Beth



---------------------------------------------------------------------
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


---------------------------------------------------------------------
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