tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "0 8" <0112...@gmail.com>
Subject Running code on Tomcat startup
Date Thu, 22 Jun 2006 20:46:00 GMT
Hello,

I have a newbie Tomcat question.

A search application I need to work with uses RMI.  When I start
Tomcat, is there a way I can run the code to create an object that I
can reference in a JSP later?

What I need to run is straight forward:

ClientServices cs =
com.mycompany.searchapp.ClientServicesFactory.getInstance("RMI",
parms); // Get the ClientServices
cs.Login(strDomain, strUser, strPassword); // Login

Can I run this and reference the object cs from my JSP?

If someone could point me in a general direction it would be
appreciated.  If there's a better way to handle this, I'm open to
suggestions.

Thanks,
Matt

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