예제 #1
0
파일: SessionImpl.java 프로젝트: ncdc/qpid
  private MessageImpl convertStreamMessage(final StreamMessage message) throws JMSException {
    StreamMessageImpl streamMessage = createStreamMessage();

    try {
      message.reset();
      while (true) {
        streamMessage.writeObject(message.readObject());
      }
    } catch (MessageEOFException e) {
      // we're at the end so don't mind the exception
    }

    return streamMessage;
  }
예제 #2
0
 public void reset() throws JMSException {
   ((StreamMessage) message).reset();
 }