public class OutboundTopicBridge extends DestinationBridge
Modifier and Type | Field and Description |
---|---|
protected TopicConnection |
consumerConnection |
protected String |
consumerName |
protected TopicSession |
consumerSession |
protected Topic |
consumerTopic |
protected TopicPublisher |
producer |
protected TopicConnection |
producerConnection |
protected TopicSession |
producerSession |
protected Topic |
producerTopic |
protected String |
selector |
consumer, doHandleReplyTo, jmsConnector, jmsMessageConvertor, started
Constructor and Description |
---|
OutboundTopicBridge()
Default Contructor
|
OutboundTopicBridge(String outboundTopicName)
Constructor that takes a foreign destination as an argument
|
Modifier and Type | Method and Description |
---|---|
protected MessageConsumer |
createConsumer() |
protected MessageProducer |
createProducer() |
protected Connection |
getConnectionForProducer() |
protected Connection |
getConnnectionForConsumer() |
TopicConnection |
getConsumerConnection() |
String |
getConsumerName() |
Topic |
getConsumerTopic() |
String |
getLocalTopicName() |
String |
getOutboundTopicName() |
TopicConnection |
getProducerConnection() |
Topic |
getProducerTopic() |
String |
getSelector() |
protected void |
sendMessage(Message message) |
void |
setConsumerConnection(TopicConnection consumerConnection) |
void |
setConsumerName(String consumerName) |
void |
setConsumerTopic(Topic consumerTopic) |
void |
setLocalTopicName(String localTopicName) |
void |
setOutboundTopicName(String outboundTopicName)
Sets the name of the outbound topic name.
|
void |
setProducerConnection(TopicConnection producerConnection) |
void |
setProducerTopic(Topic producerTopic) |
void |
setSelector(String selector) |
void |
stop() |
getConsumer, getJmsMessageConvertor, isDoHandleReplyTo, onMessage, processReplyToDestination, setConsumer, setDoHandleReplyTo, setJmsConnector, setJmsMessageConvertor, start
protected Topic consumerTopic
protected Topic producerTopic
protected TopicSession consumerSession
protected TopicSession producerSession
protected String consumerName
protected TopicPublisher producer
protected TopicConnection consumerConnection
protected TopicConnection producerConnection
public OutboundTopicBridge(String outboundTopicName)
outboundTopicName
- public OutboundTopicBridge()
public String getOutboundTopicName()
public void setOutboundTopicName(String outboundTopicName)
outboundTopicName
- The outboundTopicName to set.public String getLocalTopicName()
public void setLocalTopicName(String localTopicName)
localTopicName
- the localTopicName to setpublic void stop() throws Exception
stop
in interface Service
stop
in class DestinationBridge
Exception
protected MessageConsumer createConsumer() throws JMSException
createConsumer
in class DestinationBridge
JMSException
protected MessageProducer createProducer() throws JMSException
createProducer
in class DestinationBridge
JMSException
protected void sendMessage(Message message) throws JMSException
sendMessage
in class DestinationBridge
JMSException
public TopicConnection getConsumerConnection()
public void setConsumerConnection(TopicConnection consumerConnection)
consumerConnection
- The consumerConnection to set.public String getConsumerName()
public void setConsumerName(String consumerName)
subscriptionName
- The subscriptionName to set.public Topic getConsumerTopic()
public void setConsumerTopic(Topic consumerTopic)
consumerTopic
- The consumerTopic to set.public TopicConnection getProducerConnection()
public void setProducerConnection(TopicConnection producerConnection)
producerConnection
- The producerConnection to set.public Topic getProducerTopic()
public void setProducerTopic(Topic producerTopic)
producerTopic
- The producerTopic to set.public String getSelector()
public void setSelector(String selector)
selector
- The selector to set.protected Connection getConnnectionForConsumer()
getConnnectionForConsumer
in class DestinationBridge
protected Connection getConnectionForProducer()
getConnectionForProducer
in class DestinationBridge
Copyright © 2005–2016 FuseSource, Corp.. All rights reserved.