A version that contains everything you need to experiment with your "relaying" 
solution is ready to be released. I don't want to call it 0.2. Not that the name 
matters, anyway, but 0.2 was supposed to include persistent delivery, and I am still 
working on that.

I will post the URL on the forum later today. Or early tomorrow. 

This is how you configure it:

Let's assume you use the machine A and B on the same LAN and they can see each other 
by multicast, and a machine C that is on a remote site. If your LAN is protected by a 
firewall, you must be able to open a port in the firewall, in this case 12003. If you 
use NAT, forward the port to A.

1. On A, start the JGroups' GossipRouter (you can find a jgroups.jar in the bundle, or 
you can compile it independently http://www.jgroups.org):

java -cp lib/jgroups-core-2.2.1.jar:lib/log4j.jar org.jgroups.stack.GossipRouter -port 
12003

2. On A, have your "bridging" client look up the "RouterConnectionFactory". You 
configure it by modifying etc/router.xml. The only thing to change there is 
router_host, which is is the public IP address of A. The same client has to look up 
"ConnectionFactory", which provides  multicast connections. Take a look at 
etc/jndi.properties, you'll find it self explanatory.

3. On C, look up "RouterConnectionFactory". It has to be similarily configured. Now A 
and C clients can exchange messages.

4. On B, look up "ConnectionFactory". Now A and B clients can exchange messages.

5 If your bridging client on A switches back and forth messages from a connection to 
the other, B and C can exchange messages.

This is just a proof of concept. There is no reason to have an application-level 
"bridging" client. The bridging between multicast and unicast will be transparently 
handled by JGroups. In a future version, of course.

And by the way, there's no need to write even a line of code to test what I've just 
explained above. Take a look at the interactive client provided with the bundle. There 
is a short description of how it works in the documentation. It can create JMS objects 
(connections, sessions, producers and consumers) at command line so you can mix and 
match and build your prototype.



<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826545#3826545";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826545>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to