Package org.objectweb.joram.shared.admin

Examples of org.objectweb.joram.shared.admin.GetQueueMessage


   * @throws ConnectException
   * @throws JMSException
   */
  public javax.jms.Message getMessage(String msgId) throws AdminException, ConnectException, JMSException {
    GetQueueMessageRep reply =
      (GetQueueMessageRep)doRequest(new GetQueueMessage(agentId, msgId, true));
    return Message.wrapMomMessage(null, reply.getMessage());
  }
View Full Code Here


    return getMessage(msgId);
  }
 
  public String getMessageDigest(String msgId) throws AdminException, ConnectException, JMSException {
    GetQueueMessageRep reply =
      (GetQueueMessageRep)doRequest(new GetQueueMessage(agentId, msgId, false));
    Message msg =  Message.wrapMomMessage(null, reply.getMessage());
   
    StringBuffer strbuf = new StringBuffer();
    strbuf.append("Message: ").append(msg.getJMSMessageID());
    strbuf.append("\n\tTo: ").append(msg.getJMSDestination());
View Full Code Here

  }

  public Properties getMessageHeader(String msgId)
    throws AdminException, ConnectException, JMSException {
    GetQueueMessageRep reply =
      (GetQueueMessageRep)doRequest(new GetQueueMessage(agentId, msgId, false));
    Message msg =  Message.wrapMomMessage(null, reply.getMessage());

    Properties prop = new Properties();
    prop.setProperty("JMSMessageID", msg.getJMSMessageID());
    prop.setProperty("JMSDestination", msg.getJMSDestination().toString());
View Full Code Here

    return prop;
  }

  public Properties getMessageProperties(String msgId) throws AdminException, ConnectException, JMSException {
    GetQueueMessageRep reply =
      (GetQueueMessageRep)doRequest(new GetQueueMessage(agentId, msgId, false));
    Message msg =  Message.wrapMomMessage(null, reply.getMessage());

    Properties prop = new Properties();
    msg.getProperties(prop);
View Full Code Here

TOP

Related Classes of org.objectweb.joram.shared.admin.GetQueueMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.