wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Need to reload the application from the same application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Need to reload the application from the same application" Watch "Need to reload the application from the same application" New topic
Author

Need to reload the application from the same application

Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Although, Tomcat is configured to reload the app automatically when changes reflect in any of the class file. And it is working like charm. But I need to reload the app automatically when some new class files found.

Is there any class which we can use to reload the app from the same running app?

Thanks.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by Adeel Ansari:

Is there any class which we can use to reload the app from the same running app?


One very simple way would be to call the Tomcat Manager's reload command using HttpUrlConnection..


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Thanks Ben. I have done that.
Cheers.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need to reload the application from the same application
 
Similar Threads
when is the servlet destroy( ) method called ?
deploying an application on Tomcat 5.5.17
I need help with this situation regarding form post parameters
Servlet that reload any class file in server
How to reload context in eclipse