mirror of https://github.com/apache/activemq.git
Added overloaded method for createMessageConsumer
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@411020 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
29eef80774
commit
dfe552d2f9
|
@ -145,6 +145,18 @@ public class JmsConfigurableClientSupport extends JmsBasicClientSupport {
|
|||
return jmsMessageProducer;
|
||||
}
|
||||
|
||||
public MessageConsumer createMessageConsumer(Destination dest) throws JMSException {
|
||||
jmsMessageConsumer = getSession().createConsumer(dest);
|
||||
configureJmsObject(jmsMessageConsumer, consumerSettings);
|
||||
return jmsMessageConsumer;
|
||||
}
|
||||
|
||||
public MessageConsumer createMessageConsumer(Destination dest, String selector) throws JMSException {
|
||||
jmsMessageConsumer = getSession().createConsumer(dest, selector);
|
||||
configureJmsObject(jmsMessageConsumer, consumerSettings);
|
||||
return jmsMessageConsumer;
|
||||
}
|
||||
|
||||
public MessageConsumer createMessageConsumer(Destination dest, String selector, boolean noLocal) throws JMSException {
|
||||
jmsMessageConsumer = getSession().createConsumer(dest, selector, noLocal);
|
||||
configureJmsObject(jmsMessageConsumer, consumerSettings);
|
||||
|
@ -163,6 +175,12 @@ public class JmsConfigurableClientSupport extends JmsBasicClientSupport {
|
|||
}
|
||||
}
|
||||
|
||||
public TopicSubscriber createDurableSubscriber(Topic dest, String name) throws JMSException {
|
||||
jmsMessageConsumer = getSession().createDurableSubscriber(dest, name);
|
||||
configureJmsObject(jmsMessageConsumer, consumerSettings);
|
||||
return (TopicSubscriber)jmsMessageConsumer;
|
||||
}
|
||||
|
||||
public TopicSubscriber createDurableSubscriber(Topic dest, String name, String selector, boolean noLocal) throws JMSException {
|
||||
jmsMessageConsumer = getSession().createDurableSubscriber(dest, name, selector, noLocal);
|
||||
configureJmsObject(jmsMessageConsumer, consumerSettings);
|
||||
|
|
Loading…
Reference in New Issue