Yes, you can easily do this. Simply use the Port attribute i.e. :
and replaces 1111 with your port.
BTW, if both instances will always run (because it is just for testing or something like this), you may also simply use the HA-JNDI on *only one* node: if your beans are deployed on both app servers, the stubs found in jndi already contains sufficient knowledge.
Sacha, couldn't be much easier. I tried it out and it worked just as you indicated.
Is there some way I can I find out what attributes (such as "Port") are associated with each of the default services (mbeans) that are preconfigured with a JBoss 3.0RC1 installation. For example, how can I find out all of the valid attributes associated with the HA-JNDI service? I'm in the process of downloading the source which no doubt will make it clearer but perhaps there are well known attributes documented somewhere?
Thanks for the help.
Reading the clustering docs maybe.