[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Need facilities to run clustered examples
timfox
do-not-reply at jboss.com
Fri Apr 3 08:53:36 EDT 2009
I'm assuming you want to create a clustered *JMS* example, not clustered core.
In JBM 2.0 you don't need JNDI.
You can create connection factories directly on the client side. You can specify the UDP group address of the cluster for discovery and it will automatically connect without having to know the addresses of each server.
If you don't want to create your connection factory directly, you can look up the connection factory via JNDI from a particular server.
If you don't know all the JNDI server addresses on the client, you could use HA-JNDI on the server (which also uses its own discovery mechanism).
However, so far, the standalone server doesn't start an HA-JNDI service, we would need to add it. (This would probably be useful).
We should probably create different clustered examples showing both techniques:
1) Instantiating connection factory directly
2) Using HAJNDI
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223292#4223292
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4223292
More information about the jboss-dev-forums
mailing list