6 Replies Latest reply on Dec 14, 2007 2:02 AM by Ivan Sevastyanov

    How can I send message to remote queue that predefined decla

    Ivan Sevastyanov Newbie

      Hi, gurus

      I try to open a remote Queue. I can get a RemoteConnectionFactory
      like
      http://wiki.jboss.org/wiki/Wiki.jsp?page=HowDoIConfigureTheJMSResourceAdapterToUseARemoteConnectionFactory,

      but still unaware how to get a queue. I think i need something similiar to

      Queue queue = (Queue) jmsContext.lookup(getQueueName());
      QueueSession session = connection.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
      QueueSender sender = session.createSender(queue);

      Queue is required to create a message sender.

      It's necessary for me to get Queue predefined declaratively.

      Any advice will be very much appreciated.