Invoke (EJB) method on single node / master node within a cluster

Discussão em 'StackOverflow' iniciado por Stack, Julho 12, 2021.

  1. Stack

    Stack Membro Participativo

    Is it possible to invoke a method always on the same node within a jboss cluster from a deployed application?

    I have already tried to create a HA Singleton Service (Example), but could'nt find a way to pass arguments to it. And the Service-Interface is already marked as deprecated, which removesgetValue().

    Another thing I read about was EJB remote invocation. Probleme here is, that I cannot configure fixed remote hosts since the node addresses can change. The invocation also does not have to cross application boundaries since I have only one deployment in the cluster.

    Using some kind of singleton MDB (Message-Driven Bean) does not seems to be the right approach since it is asynchonous and uni-directional.

    My hope was that there is something like singleton EJB invocation within a cluster.

    I have no idea what else I should look for or try out, so I hope you guys have some suggestions.

    Thank you in advance.

    Continue reading...

Compartilhe esta Página