-
1. Re: HA-JNDI for JMS
frankthetank Jul 23, 2009 4:42 AM (in response to jgreiner)Is this on the server's side only?
Then you can use your own ip. i.e. ${bind.address}p.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); p.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces"); p.put(Context.PROVIDER_URL, System.getProperty("bind.address") + ":1100"); // HA-JNDI port.
-
2. Re: HA-JNDI for JMS
jgreiner Jul 23, 2009 9:24 AM (in response to jgreiner)Well it is on a server. But I think you misunderstood my question.
I have a cluster with 3 servers. I can post to the topic and it works just fine, all 3 servers process my request.
Now I want to post to a REMOTE Cluster. I can use the code in my example to post to the 3 servers in the remote cluster. However I do not want the servers hard coded, I would rather make them a configuration value on jboss either using jndi or creating a topic destination and providing the server list via a parameter or attribute. However I am finding it hard to locate any documentation supporting this.
Seems like a topic for the jboss messaging forum. I posted here since I was working with a remote cluster. -
3. Re: HA-JNDI for JMS
frankthetank Jul 24, 2009 3:22 AM (in response to jgreiner)Ah, ok.
Can the cluster lookup not help you there?
IIRC there is an option to supply the port as well.