2 Replies Latest reply on Sep 13, 2008 8:15 AM by Tim Fox

    How do you get JBossConnectionFactory to connect to a remote

    Brandon Barlow Newbie

      I am trying to migrate a straight Java SE app from ActiveMQ to JBoss Messaging. This app creates a JMS ConnectionFactory to a JMS server on a remote machine. I would expect to use code along the lines of:

      connectionFactory = new JBossConnectionFactory("tcp://remotemachine.faraway.com:someport");
      connection = connectionFactory.createConnection();
      session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
      destination = session.createQueue("MyQueue");

      etc. However, there doesn't appear to be any constructor for JBossConnectionFactory that does this. Am I using the wrong approach? Help appreciated.