Server needs to be restarted for broadcast

I have developed an application that has a post operation, I am using tomcat 6 to deploy the application, I have an ant script to create a war.

Now my problem is whenever I create a project the mail stops working until I restart the server and I learned from one of the professionals saying that the mailing context needs to be reloaded, so when you restart the server the mailing works again.

But I don't want to restart the server every time a new build is deployed, and the mailing should work. Is there a way to reload the mail context when I've ever built the project and deployed?

+3


source to share


1 answer


To make the context reload when the application file changes, modify the context.xml configuration file

from

<Context>

      



to

<Context reloadable="true">

      

0


source







All Articles