I have a Java EE application which should start a synchronization process with an external system once after its deployment.
How could I implement this requirement?
Using a ServletContextListener, or a servlet that is initialized at startup, for example. Of course, this becomes much harder if you have multiple deployments of the application in a cluster, and only want this process to be run once.