Executing Expected Class When Starting Web Application

0

I have a class that would need to be run along with the web application every time it started. I would upload the application to the server and this class would need to be executed.

This application is running on Wildfly, and is also using Spring Framework.

In this class a Job runs, nothing more than programming a Scheduler to run at a fixed time of day. If there is another way to start (perhaps, more correctly) this process schedule, it would certainly help me too. It seems like a simple question, but I swear I did not find a resolution.

    
asked by anonymous 17.04.2017 / 15:38

1 answer

0

I do not know if you have a more correct because I do not know your infra, but I would create a service with Jenkins to run at the scheduled time. Another alternative, as you have already projected, is to put this in an application start class but I need to know which framework or type of project you are using.

    
17.04.2017 / 15:53