I'm pure novice to WAS.
We'll use WAS ND on 2-nodes cluster. I'll need some code (Apache Mule and several custom classes, must do some jobs periodicaly), which must be active only one one node at one time. If one node fails, that code must launch on second node as fallback. When first node recovers it may become "active", back. Or not, leaving second node active. Doesn't matter - nodes are similar.
What approach can be used to achieve this on WAS ND 8.0? I have no restrictions how to package this - servlet, or EJB, anything also.
Few keywords or links for further investigation would be awesome. Thanks.