3 Replies Latest reply on May 13, 2009 4:13 AM by ezani abdul halim

    Need clarification on destination for JMSRouter Quickstart E

    ezani abdul halim Newbie

      Hi there

      I am a newbie at JBoss ESB and I was trying out the JMSRouter Quickstart sample. I fail to understand what argument I should pass to args[1] in this line of code in the sample :

      SendJMSMessage sm = new SendJMSMessage();

      The setupConnection method is as follows :-

       public void setupConnection(String destination) throws JMSException, NamingException
       InitialContext iniCtx = new InitialContext();
       ConnectionFactory connectionFactory = (ConnectionFactory) iniCtx.lookup("ConnectionFactory");
       connection = connectionFactory.createConnection();
       gatewayDestination = (Destination) iniCtx.lookup("queue/quickstart_jms_router_Request_gw");
       responseDestination = (Destination)iniCtx.lookup(destination);
       replyToDestination = (Destination) iniCtx.lookup("queue/quickstart_jms_router_replyToQueue");
       session = connection.createSession(false, QueueSession.AUTO_ACKNOWLEDGE);
       System.out.println("Connection Started");

      Could anyone who knows about this quickstart sample tell me what argument I should send to args[1] ?

      Many thanks!