File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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