2 Replies Latest reply on Apr 10, 2002 3:02 AM by dim

    Sending to queues on another machine

    dim

      hey all,

      I've been given a requirement to send messages to a queue on a different machine. What I want to check, is what the 'proper' way of locating that queue is. Obviously I can do a JNDI lookup, specifying full details of the queue on the other boss (another JBoss instance), and presumably have those details configurable.

      However, It would seem 'more j2ee' to simply look the queue up in java:comp/env/jms/QueueOnOtherMachine, and through configuration files create that bind.

      So, if I were to submit a patch for org.jboss.naming.NamingAlias that essentially allowed the host, and other details to be specified for the toLink, would this work?

      What I'd like to do is get in a situation where I could just remove a queue from jboss.jcml, and replace it with a naming alias to another box, and have everything work, but messages sent to the now aliased queue would go to the other box.

      tia
      dim

        • 1. Re: Sending to queues on another machine

          1. If you do it from an EJB, read the manual and just do it.

          2. Otherwise try find a recent post that excelently explained how you bind in an external context. No patched needed, its already there.

          //Peter

          • 2. Re: Sending to queues on another machine
            dim

            Peter,

            Thanks for the response - exactly what I'm looking for (ExternalContextMBean).

            note to anyone who hasn't yet bought the doco... its well and truly worth the $10.

            thanks again
            dim