Examples of QueueMessageReference


Examples of org.apache.activemq.broker.region.QueueMessageReference

    public QueueView(ManagedRegionBroker broker, Queue destination) {
        super(broker, destination);
    }

    public CompositeData getMessage(String messageId) throws OpenDataException {
        QueueMessageReference ref = ((Queue)destination).getMessage(messageId);
        Message rc = ref.getMessage();
        if (rc == null) {
            return null;
        }
        return OpenTypeSupport.convert(rc);
    }
View Full Code Here

Examples of org.apache.activemq.broker.region.QueueMessageReference

    /**
     * Moves a message back to its original destination
     */
    public boolean retryMessage(String messageId) throws Exception {
        Queue queue = (Queue) destination;
        QueueMessageReference ref = queue.getMessage(messageId);
        Message rc = ref.getMessage();
        if (rc != null) {
            ActiveMQDestination originalDestination = rc.getOriginalDestination();
            if (originalDestination != null) {
                ConnectionContext context = BrokerSupport.getConnectionContext(broker.getContextBroker());
                return queue.moveMessageTo(context, ref, originalDestination);
View Full Code Here

Examples of org.apache.activemq.broker.region.QueueMessageReference

        super(broker, destination);
    }

    public CompositeData getMessage(String messageId) throws OpenDataException {
      CompositeData result = null;
      QueueMessageReference ref = ((Queue)destination).getMessage(messageId);

        if (ref != null) {
          Message rc = ref.getMessage();
          if (rc == null) {
              return null;
          }
          result = OpenTypeSupport.convert(rc);
        }
View Full Code Here

Examples of org.apache.activemq.broker.region.QueueMessageReference

    /**
     * Moves a message back to its original destination
     */
    public boolean retryMessage(String messageId) throws Exception {
        Queue queue = (Queue) destination;
        QueueMessageReference ref = queue.getMessage(messageId);
        Message rc = ref.getMessage();
        if (rc != null) {
            ActiveMQDestination originalDestination = rc.getOriginalDestination();
            if (originalDestination != null) {
                ConnectionContext context = BrokerSupport.getConnectionContext(broker.getContextBroker());
                return queue.moveMessageTo(context, ref, originalDestination);
View Full Code Here

Examples of org.apache.activemq.broker.region.QueueMessageReference

        super(broker, destination);
    }

    public CompositeData getMessage(String messageId) throws OpenDataException {
      CompositeData result = null;
      QueueMessageReference ref = ((Queue)destination).getMessage(messageId);

        if (ref != null) {
          Message rc = ref.getMessage();
          if (rc == null) {
              return null;
          }
          result = OpenTypeSupport.convert(rc);
        }
View Full Code Here

Examples of org.apache.activemq.broker.region.QueueMessageReference

    /**
     * Moves a message back to its original destination
     */
    public boolean retryMessage(String messageId) throws Exception {
        Queue queue = (Queue) destination;
        QueueMessageReference ref = queue.getMessage(messageId);
        Message rc = ref.getMessage();
        if (rc != null) {
            ActiveMQDestination originalDestination = rc.getOriginalDestination();
            if (originalDestination != null) {
                ConnectionContext context = BrokerSupport.getConnectionContext(broker.getContextBroker());
                return queue.moveMessageTo(context, ref, originalDestination);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.