All Downloads are FREE. Search and download functionalities are using the official Maven repository.

forklift.connectors.ActiveMQForkliftMessage Maven / Gradle / Ivy

package forklift.connectors;

import javax.jms.JMSException;

import javax.jms.Message;

import forklift.connectors.ForkliftMessage;

public class ActiveMQForkliftMessage extends ForkliftMessage {
    private Message jmsMsg;

    public ActiveMQForkliftMessage(Message jmsMsg) {
        this.jmsMsg = jmsMsg;
    }

    public boolean acknowledge() {
        try {
            jmsMsg.acknowledge();
            return true;
        } catch (JMSException e) {
            return false;
        }
    }

    public Message getJmsMsg() {
        return this.jmsMsg;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy