jbosss [
https://community.jboss.org/people/jbosss] created the discussion
"Programatically identifying master/slave nodes in JBoss AS 7.1"
To view the discussion, visit:
https://community.jboss.org/message/756619#756619
--------------------------------------------------------------
Is there an API available, which can tell me if the current node (on which this piece of
code is running) is a master or a slave? Probably, in most cases, you dont care, but say
if you dont implement a ha singleton service, but want to execute some code only on the
master (or only one salve) node(s). How do the various UIs for JBoss monitoring get this
information from JBoss AS?
Similarly how to identify whether the node is running in a standalone mode or a domain
cluster mode.
I looked at JBoss AS clustering code and I couldnt find and API that can give this
information. I looked at the GroupCommunicationService class and the MBeanServer class and
they dont have this information. Is there any way I could query and get this information
from JBOSS?
Thanks!
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/756619#756619]
Start a new discussion in Clustering Development at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]