This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have two questions. Can we write jobs in EJB? I mean the one like cron jobs in Unix.If so, how? I'm using web logic as application server.
Second question is: I've a job that runs every 5 seconds. It's written as a EJB. And it's available in a clustered environment.
I would like to know how can we avoid running the same job on multiple servers in a clustered environment? I mean, if job is running on one server, it should not run on other servers in a clustered environment.