-
1. Re: Netty JBossRemoting
trustin May 21, 2009 8:24 AM (in response to mattlf)Hi,
Remoting 2 uses plain Java socket API. Remoting 3 uses JBoss XNIO framework. To implement complicated protocol in the future, Netty might be used in conjunction with XNIO. Netty already provides XNIO transport so they can work together.
On discovery, Remoting 2 uses its own mechanism based on multicast (or JNDI). Remoting 3, it's not implemented yet. Ron and David, please correct me if I'm wrong. :)
HTH, -
2. Re: Netty JBossRemoting
mattlf May 21, 2009 12:20 PM (in response to mattlf)Thank you for your reply. Is the multicast in the discovery mechanism going to work over different subnets? And what is the reason for Remoting2 to use its own multicast mechanism? I read that JBoss cluster is based on JGroup. Do you think JGroup could provide value to JBoss Remoting with its multicast capability?
-
3. Re: Netty JBossRemoting
ron_sigal Jul 11, 2009 12:06 AM (in response to mattlf)"mattlf" wrote:
Is the multicast in the discovery mechanism going to work over different subnets
org.jboss.remoting.detection.multicast.MulticastDetector uses a java.net.MulticastSocket, and doesn't call MulticastSocket.setTTL() or MulticastSocket.setTimeToLive(), so it uses the default TTL value, which, I believe, is 1. So the multicast detector, in its current form, is restricted to its local network."mattlf" wrote:
what is the reason for Remoting2 to use its own multicast mechanism? I read that JBoss cluster is based on JGroup. Do you think JGroup could provide value to JBoss Remoting with its multicast capability?
I wasn't present at the creation of the discovery subsystem, but I'm going to say
1. jgroups, which is very powerful, flexible software, could indeed offer a lot of functionality, but
2. it probably wasn't considered desirable to introduce a dependency on jgroups. -
4. Re: Netty JBossRemoting
ron_sigal Jul 11, 2009 12:08 AM (in response to mattlf)By the way, Remoting does use a home grown distributed testing framework called "jrunit", an extension of junit, and jrunit uses jgroups.