2 Replies Latest reply on Aug 15, 2016 3:09 PM by wwang2016

    Wildfly 10 : which one to use remote-connector vs http-connector ?

    wwang2016

      Hi

       

      According to the following reference document

       

      Wildfly Model Reference

       

      • http-acceptor Defines a way in which remote connections can be made to the ActiveMQ server over HTTP.
      • http-connector Used by a remote client to define how it connects to a server over HTTP.

       

      and

       

      • remote-acceptor Defines a way in which remote connections can be made to the ActiveMQ server.
      • remote-connector Used by a remote client to define how it connects to a server.

       

      Both type of connectors are used for establishing remote connection. Why is there a need to have both ? Can I just use http-connector? What are the scenarios that I have to use remote-connector instead of http-connector?

       

       

      Thanks

       

      Wayne

        • 1. Re: Wildfly 10 : which one to use remote-connector vs http-connector ?
          jbertram

          Both type of connectors are used for establishing remote connection. Why is there a need to have both ?

          The "http" acceptor/connector pair supports establishing connections over HTTP (as the name suggests).  These connections are then upgraded to "normal" TCP connections using the Artemis core protocol.  This upgrade functionality allows the application server to listen to just a single port (i.e. the HTTP port) and service lots of different kinds of protocols and connections.  The "remote" acceptor/connection pair doesn't support this HTTP upgrade functionality.

           

          Can I just use http-connector?

          Depending on your use-case, yes.

           

          What are the scenarios that I have to use remote-connector instead of http-connector?

          You'd a "remote" acceptor or connector if you were either accepting connections from to establishing a connection to a server that didn't support the HTTP upgrade functionality provided by the "http" acceptor/connector pair.  For example, if you were connecting to a standalone instance of Artemis you'd use a remote-connector or if you were accepting a connection from a legacy HornetQ client you'd use a remote-acceptor.

          • 2. Re: Wildfly 10 : which one to use remote-connector vs http-connector ?
            wwang2016

            Thanks!