org.mule.providers.jms
Class Jms11Support
java.lang.Object
org.mule.providers.jms.Jms11Support
- All Implemented Interfaces:
- JmsSupport
- Direct Known Subclasses:
- Jms102bSupport
- public class Jms11Support
- extends java.lang.Object
- implements JmsSupport
Jms11Support
is a template class to provide an absstraction to to the Jms 1.1
api specification.
- Version:
- $Revision: 1.6 $
- Author:
- Ross Mason
Constructor Summary |
Jms11Support(JmsConnector connector,
javax.naming.Context context,
boolean jndiDestinations,
boolean forceJndiDestinations)
|
Method Summary |
Connection |
createConnection(ConnectionFactory connectionFactory)
|
Connection |
createConnection(ConnectionFactory connectionFactory,
java.lang.String username,
java.lang.String password)
|
MessageConsumer |
createConsumer(Session session,
Destination destination)
|
MessageConsumer |
createConsumer(Session session,
Destination destination,
java.lang.String messageSelector,
boolean noLocal,
java.lang.String durableName)
|
Destination |
createDestination(Session session,
java.lang.String name,
boolean topic)
|
MessageProducer |
createProducer(Session session,
Destination destination)
|
Session |
createSession(Connection connection,
boolean transacted,
int ackMode,
boolean noLocal)
|
Destination |
createTemporaryDestination(Session session,
boolean topic)
|
protected Destination |
getJndiDestination(java.lang.String name)
|
void |
send(MessageProducer producer,
Message message)
|
void |
send(MessageProducer producer,
Message message,
boolean persistent,
int priority,
long ttl)
|
void |
send(MessageProducer producer,
Message message,
Destination dest)
|
void |
send(MessageProducer producer,
Message message,
Destination dest,
boolean persistent,
int priority,
long ttl)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
protected javax.naming.Context context
jndiDestinations
protected boolean jndiDestinations
forceJndiDestinations
protected boolean forceJndiDestinations
connector
protected JmsConnector connector
Jms11Support
public Jms11Support(JmsConnector connector,
javax.naming.Context context,
boolean jndiDestinations,
boolean forceJndiDestinations)
createConnection
public Connection createConnection(ConnectionFactory connectionFactory,
java.lang.String username,
java.lang.String password)
throws JMSException
- Specified by:
createConnection
in interface JmsSupport
- Throws:
JMSException
createConnection
public Connection createConnection(ConnectionFactory connectionFactory)
throws JMSException
- Specified by:
createConnection
in interface JmsSupport
- Throws:
JMSException
createSession
public Session createSession(Connection connection,
boolean transacted,
int ackMode,
boolean noLocal)
throws JMSException
- Specified by:
createSession
in interface JmsSupport
- Throws:
JMSException
createProducer
public MessageProducer createProducer(Session session,
Destination destination)
throws JMSException
- Specified by:
createProducer
in interface JmsSupport
- Throws:
JMSException
createConsumer
public MessageConsumer createConsumer(Session session,
Destination destination)
throws JMSException
- Specified by:
createConsumer
in interface JmsSupport
- Throws:
JMSException
createConsumer
public MessageConsumer createConsumer(Session session,
Destination destination,
java.lang.String messageSelector,
boolean noLocal,
java.lang.String durableName)
throws JMSException
- Specified by:
createConsumer
in interface JmsSupport
- Throws:
JMSException
createDestination
public Destination createDestination(Session session,
java.lang.String name,
boolean topic)
throws JMSException
- Specified by:
createDestination
in interface JmsSupport
- Throws:
JMSException
getJndiDestination
protected Destination getJndiDestination(java.lang.String name)
throws JMSException
- Throws:
JMSException
createTemporaryDestination
public Destination createTemporaryDestination(Session session,
boolean topic)
throws JMSException
- Specified by:
createTemporaryDestination
in interface JmsSupport
- Throws:
JMSException
send
public void send(MessageProducer producer,
Message message)
throws JMSException
- Specified by:
send
in interface JmsSupport
- Throws:
JMSException
send
public void send(MessageProducer producer,
Message message,
Destination dest)
throws JMSException
- Specified by:
send
in interface JmsSupport
- Throws:
JMSException
send
public void send(MessageProducer producer,
Message message,
boolean persistent,
int priority,
long ttl)
throws JMSException
- Specified by:
send
in interface JmsSupport
- Throws:
JMSException
send
public void send(MessageProducer producer,
Message message,
Destination dest,
boolean persistent,
int priority,
long ttl)
throws JMSException
- Specified by:
send
in interface JmsSupport
- Throws:
JMSException
Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.