2 Replies Latest reply on Dec 19, 2005 12:10 PM by timfox

    Trying to use multiplex to implement UIL2 style transport

    timfox

      One of our critical tasks in JBoss Messaging is to have a "UIL2" style transport - with this transport sockets are only created from client to server, and the same socket is used for communication from server to client.

      http://jira.jboss.com/jira/browse/JBREM-91

      This is because it is very common for clients not to be able to accept sockets connections (firewalls etc.).

      I've been informed that the new multiplex transport completes this task - but I'm having trouble working out how to configure it for this use case.

      Looking through the docs for the multiplex transport it seems to require a *pair* of sockets one from client to server and one from server to client. In our case, clearly we can't have a socket from server to client.

      How do I configure this transport to use only a single socket from client to server for duplex communication?

      Thx

        • 1. Re: Trying to use multiplex to implement UIL2 style transpor
          timfox

          Hmm.. I was reading "pair of sockets" to mean "pair of server sockets" maybe this isn't right.

          In the samples, MultiplexInvokerClient sets up a callback server which listens on localhost:8080 for callbacks.

          Is this necessary? Can we get callbacks without setting up a client callback server? We don't want anything listening to accept connections on the client side.

          Thanks again and sorry for being a pain :)

          • 2. Re: Trying to use multiplex to implement UIL2 style transpor
            timfox

            So just to clarify my issue:

            The current API for push callbacks requires a locator to a client side callback server to be specified.

            In our case we have no client side callback server since we don't want any server sockets on the client side.

            So how do I use push callbacks for our case?

            Thx