Lets consider an example. Say we have two EARs "A" and "B" which can be accessed through localhost/A and localhost/B. Suppose I have action in "A" named "run" and when it is invoked via localhost/A/run.do, it captures the current system time and stores it into the DB. Whereas "B" is running a scheduler and has a job which is triggered every one hour. I want that job to invoke run.do in "A". What is the best way to achieve this. Note that both the EARs are installed in the same server.
Please advise.