4 Replies Latest reply on Jul 11, 2009 12:08 AM by ron_sigal

    Netty JBossRemoting

      Hi
      Does JBossRemoting use Netty under the hood?

      I also read that JBoss Remoting offer Automatic discovery - can detect remoting servers as they come on and off line.
      Does JBoss Remoting use JGroups?

      Thank you

        • 1. Re: Netty JBossRemoting
          trustin

          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

            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

               

              "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

                By the way, Remoting does use a home grown distributed testing framework called "jrunit", an extension of junit, and jrunit uses jgroups.