List of usage examples for javax.jms Session CLIENT_ACKNOWLEDGE
int CLIENT_ACKNOWLEDGE
To view the source code for javax.jms Session CLIENT_ACKNOWLEDGE.
Click Source Link
From source file:nl.nn.adapterframework.extensions.ifsa.jms.IfsaFacade.java
public void setAcknowledgeMode(String acknowledgeMode) { if (acknowledgeMode.equalsIgnoreCase("auto") || acknowledgeMode.equalsIgnoreCase("AUTO_ACKNOWLEDGE")) { ackMode = Session.AUTO_ACKNOWLEDGE; } else if (acknowledgeMode.equalsIgnoreCase("dups") || acknowledgeMode.equalsIgnoreCase("DUPS_OK_ACKNOWLEDGE")) { ackMode = Session.DUPS_OK_ACKNOWLEDGE; } else if (acknowledgeMode.equalsIgnoreCase("client") || acknowledgeMode.equalsIgnoreCase("CLIENT_ACKNOWLEDGE")) { ackMode = Session.CLIENT_ACKNOWLEDGE; } else {/* w w w . j a v a 2 s. co m*/ // ignore all ack modes, to test no acking log.warn("[" + name + "] invalid acknowledgemode:[" + acknowledgeMode + "] setting no acknowledge"); ackMode = -1; } }
From source file:org.springframework.jms.core.JmsTemplate.java
protected boolean isClientAcknowledge(Session session) throws JMSException { return (session.getAcknowledgeMode() == Session.CLIENT_ACKNOWLEDGE); }
From source file:nl.nn.adapterframework.jms.JMSFacade.java
/** * Convencience function to convert the numeric value of an (@link #setAckMode(int) acknowledgeMode} to a human-readable string. *//*w w w . j av a 2 s.c o m*/ public static String getAcknowledgeModeAsString(int ackMode) { String ackString; if (Session.AUTO_ACKNOWLEDGE == ackMode) { ackString = "Auto"; } else if (Session.CLIENT_ACKNOWLEDGE == ackMode) { ackString = "Client"; } else if (Session.DUPS_OK_ACKNOWLEDGE == ackMode) { ackString = "Dups"; } else { ackString = "none"; } return ackString; }
From source file:nl.nn.adapterframework.jms.JMSFacade.java
/** * String-version of {@link #setAckMode(int)} *///w w w . j a v a 2 s. co m public void setAcknowledgeMode(String acknowledgeMode) { if (acknowledgeMode.equalsIgnoreCase("auto") || acknowledgeMode.equalsIgnoreCase("AUTO_ACKNOWLEDGE")) { ackMode = Session.AUTO_ACKNOWLEDGE; } else if (acknowledgeMode.equalsIgnoreCase("dups") || acknowledgeMode.equalsIgnoreCase("DUPS_OK_ACKNOWLEDGE")) { ackMode = Session.DUPS_OK_ACKNOWLEDGE; } else if (acknowledgeMode.equalsIgnoreCase("client") || acknowledgeMode.equalsIgnoreCase("CLIENT_ACKNOWLEDGE")) { ackMode = Session.CLIENT_ACKNOWLEDGE; } else { // ignore all ack modes, to test no acking log.warn("[" + name + "] invalid acknowledgemode:[" + acknowledgeMode + "] setting no acknowledge"); ackMode = -1; } }