0 Replies Latest reply on Dec 14, 2001 10:49 AM by Joerg Thoennes

    JMS send/receive inside a session bean

    Joerg Thoennes Newbie

      Hello,

      we have client sending RPC like request to servlet. The request is then forward as a JMS message and has to be
      synchronized as follows:

      requestId = message.getJMSMessageID();

      message.setJMSCorrelationID( requestId );
      sender.send( message );

      ...
      receiver = qSession.createReceiver( queue,
      "JMSCorrelationID = " + requestId );
      reply = receiver.receive( timeout );

      Can I do this inside a session bean and what are the
      pitfalls?

      Thanks, Joerg