5 Replies Latest reply on Jul 6, 2003 12:44 PM by Adrian Brock

    QueueRequestor doesn't receive response

    Shai Almog Newbie

      Hi, while I read the discussion at http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t= it seems that no solution was found the problem, other than a discussion of why would that problem need solving (as it can be "emulated" by session beans which isn't accurate) and a solution to a similar problem involving QueueReceiver. Now I realize that QueueRequestor was implemented by Sun, but still I can't seem to get it to work with the following code:

      QueueSession session = connect.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
      Message message = session.createTextMessage("Hey There");
      QueueRequestor requestor = new QueueRequestor(session, queue);
      Message reply = requestor.request(message);

      This hangs on requestor.request() and never returns.
      The server side is an MDB that receives the message and
      doesn't have any noticeable errors:

      QueueSession session = connect.createQueueSession(true,0);

      Queue queue = (Queue)message.getJMSReplyTo();
      QueueSender sender = session.createSender(queue);
      Message reply = session.createTextMessage("Hi World");

      I am using JBoss 3.0.6 and my client is a remote Swing client.