public class Jms11Support extends Object implements JmsSupport
Jms11Support
is a template class to provide an abstraction to to
the JMS 1.1 API specification.Modifier and Type | Field and Description |
---|---|
protected JmsConnector |
connector |
protected Log |
logger
logger used by this class
|
Constructor and Description |
---|
Jms11Support(JmsConnector connector) |
Modifier and Type | Method and Description |
---|---|
Connection |
createConnection(ConnectionFactory connectionFactory) |
Connection |
createConnection(ConnectionFactory connectionFactory,
String username,
String password) |
MessageConsumer |
createConsumer(Session session,
Destination destination,
boolean topic,
ImmutableEndpoint endpoint) |
MessageConsumer |
createConsumer(Session session,
Destination destination,
String messageSelector,
boolean noLocal,
String durableName,
boolean topic,
ImmutableEndpoint endpoint) |
Destination |
createDestination(Session session,
ImmutableEndpoint endpoint) |
Destination |
createDestination(Session session,
String name,
boolean topic,
ImmutableEndpoint endpoint) |
MessageProducer |
createProducer(Session session,
Destination destination,
boolean topic) |
Session |
createSession(Connection connection,
boolean topic,
boolean transacted,
int ackMode,
boolean noLocal) |
Destination |
createTemporaryDestination(Session session,
boolean topic) |
protected Destination |
getJndiDestination(String name) |
boolean |
isCacheJmsSessions() |
void |
send(MessageProducer producer,
Message message,
boolean topic,
ImmutableEndpoint endpoint) |
void |
send(MessageProducer producer,
Message message,
boolean persistent,
int priority,
long ttl,
boolean topic,
ImmutableEndpoint endpoint) |
void |
send(MessageProducer producer,
Message message,
Destination dest,
boolean topic,
ImmutableEndpoint endpoint) |
void |
send(MessageProducer producer,
Message message,
Destination dest,
boolean persistent,
int priority,
long ttl,
boolean topic,
ImmutableEndpoint endpoint) |
protected final Log logger
protected JmsConnector connector
public Jms11Support(JmsConnector connector)
public boolean isCacheJmsSessions()
isCacheJmsSessions
in interface JmsSupport
public Connection createConnection(ConnectionFactory connectionFactory, String username, String password) throws JMSException
createConnection
in interface JmsSupport
JMSException
public Connection createConnection(ConnectionFactory connectionFactory) throws JMSException
createConnection
in interface JmsSupport
JMSException
public Session createSession(Connection connection, boolean topic, boolean transacted, int ackMode, boolean noLocal) throws JMSException
createSession
in interface JmsSupport
JMSException
public MessageProducer createProducer(Session session, Destination destination, boolean topic) throws JMSException
createProducer
in interface JmsSupport
JMSException
public MessageConsumer createConsumer(Session session, Destination destination, boolean topic, ImmutableEndpoint endpoint) throws JMSException
createConsumer
in interface JmsSupport
JMSException
public MessageConsumer createConsumer(Session session, Destination destination, String messageSelector, boolean noLocal, String durableName, boolean topic, ImmutableEndpoint endpoint) throws JMSException
createConsumer
in interface JmsSupport
JMSException
public Destination createDestination(Session session, ImmutableEndpoint endpoint) throws JMSException
createDestination
in interface JmsSupport
JMSException
public Destination createDestination(Session session, String name, boolean topic, ImmutableEndpoint endpoint) throws JMSException
createDestination
in interface JmsSupport
JMSException
protected Destination getJndiDestination(String name) throws JMSException
JMSException
public Destination createTemporaryDestination(Session session, boolean topic) throws JMSException
createTemporaryDestination
in interface JmsSupport
JMSException
public void send(MessageProducer producer, Message message, boolean topic, ImmutableEndpoint endpoint) throws JMSException
send
in interface JmsSupport
JMSException
public void send(MessageProducer producer, Message message, Destination dest, boolean topic, ImmutableEndpoint endpoint) throws JMSException
send
in interface JmsSupport
JMSException
public void send(MessageProducer producer, Message message, boolean persistent, int priority, long ttl, boolean topic, ImmutableEndpoint endpoint) throws JMSException
send
in interface JmsSupport
JMSException
public void send(MessageProducer producer, Message message, Destination dest, boolean persistent, int priority, long ttl, boolean topic, ImmutableEndpoint endpoint) throws JMSException
send
in interface JmsSupport
JMSException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.