Is there a built-in way in WildFly to detected that a stateful EJB has been restored on a different cluster node? Once its original host dies, and the bean is restored on a different node, there are some properties that I would need to re-initialize. It would be the best if the bean itself could detect this transition, but informing it from an external component would be fine as well.
Use @PostActivate:
http://docs.oracle.com/javaee/7/api/javax/ejb/PostActivate.html