Hello all.

I have minimal experience with Tomcat, and didn't see any mention of this in
looking over the docs.

I am used to developing in WebLogic. WebLogic supports what are called startup
classes. You register the name of the class in the server's properties file,
and when the server starts, it instantiates that class with arguments included
in the properties file.

I have found this is a nice way to start up asynchronous subscribers to a
messaging queue. Upon instantiation, which again is automatic, the various
subscribers, in their constructors, simply register themselves as listeners
with the queue.

I was wondering if Tomcat supports a similar construct as this (startup
classes). If not, perhaps I could implement my queue subscribers as Servlets,
but this seems strange, considering mulitple threads should not be running
through a single subscriber.

Any thoughts or advice on this?

-Erik

Reply via email to