My experience with application servers is limited by some basic coding for a servlet, so I'm not even sure how to ask this question correctly.
I need to write a java program that runs on the application server (java) and constantly executes a specific method (it checks files in a specific directory).
I found a way to schedule applications to start, but you need to know where to put the code, which I would usually put in the main () method in a regular java program.
source
share