• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need to reload the application from the same application

 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ben. I have done that.
Cheers.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic