dcsimg
How to load a servlet/class at startup in WTE like Load at startup in WAS
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   vas_vem
Posted On:   Thursday, July 26, 2001 01:32 PM

Hi,
How to load a Servlet/class when WTE is started. Just like Load At Startup in WAS.


vemvas

Re: How to load a servlet/class at startup in WTE like Load at startup in WAS

Posted By:   ram_kuppu  
Posted On:   Friday, August 17, 2001 08:06 AM

This can be done by modifying webapp file.

For default web application which comes with VAJ go to servlets directory
and open the default_app.webapp XML file.

Change the value of autostart tag of the servlet required.

It will look like this.






invoker
Auto-registration servlet
com.ibm.servlet.engine.webapp.InvokerServlet
/servlet
true





The directory structure will be like this if you have installed VAJ in default directory.



C:Program FilesIBMVisualAge for Javaideproject_resourcesIBM WebSphere Test Environmenthostsdefault_hostdefault_appservletsdefault_app.webapp



After modifying webapp restart servlet engine. See the console message to confirm.

About | Sitemap | Contact