Package org.apache.activemq.network.jms
Class SimpleJmsQueueConnector
- java.lang.Object
-
- org.apache.activemq.network.jms.JmsConnector
-
- org.apache.activemq.network.jms.SimpleJmsQueueConnector
-
- All Implemented Interfaces:
org.apache.activemq.Service
public class SimpleJmsQueueConnector extends JmsConnector
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.network.jms.JmsConnector
connectionService, embeddedConnectionFactory, failed, foreignConnection, foreignSideInitialized, inboundMessageConvertor, initialized, jndiLocalTemplate, jndiOutboundTemplate, localClientId, localConnection, localPassword, localSideInitialized, localUsername, outboundClientId, outboundMessageConvertor, outboundPassword, outboundUsername, preferJndiDestinationLookup, replyToBridges, replyToDestinationCacheSize, started
-
-
Constructor Summary
Constructors Constructor Description SimpleJmsQueueConnector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.jms.QueuecreateActiveMQQueue(javax.jms.QueueSession session, String queueName)protected javax.jms.QueuecreateForeignQueue(javax.jms.QueueSession session, String queueName)protected javax.jms.DestinationcreateReplyToBridge(javax.jms.Destination destination, javax.jms.Connection replyToProducerConnection, javax.jms.Connection replyToConsumerConnection)InboundQueueBridge[]getInboundQueueBridges()StringgetLocalConnectionFactoryName()javax.jms.QueueConnectiongetLocalQueueConnection()javax.jms.QueueConnectionFactorygetLocalQueueConnectionFactory()OutboundQueueBridge[]getOutboundQueueBridges()javax.jms.QueueConnectiongetOutboundQueueConnection()javax.jms.QueueConnectionFactorygetOutboundQueueConnectionFactory()StringgetOutboundQueueConnectionFactoryName()protected voidinitializeForeignConnection()Performs the work of connection to the foreign side of the Connection.protected voidinitializeInboundDestinationBridgesLocalSide(javax.jms.QueueConnection connection)protected voidinitializeInboundDestinationBridgesOutboundSide(javax.jms.QueueConnection connection)protected voidinitializeLocalConnection()Performs the work of connection to the local side of the Connection.protected voidinitializeOutboundDestinationBridgesLocalSide(javax.jms.QueueConnection connection)protected voidinitializeOutboundDestinationBridgesOutboundSide(javax.jms.QueueConnection connection)voidsetInboundQueueBridges(InboundQueueBridge[] inboundQueueBridges)voidsetLocalConnectionFactoryName(String localConnectionFactoryName)voidsetLocalQueueConnection(javax.jms.QueueConnection localQueueConnection)voidsetLocalQueueConnectionFactory(javax.jms.QueueConnectionFactory localConnectionFactory)voidsetOutboundQueueBridges(OutboundQueueBridge[] outboundQueueBridges)voidsetOutboundQueueConnection(javax.jms.QueueConnection foreignQueueConnection)voidsetOutboundQueueConnectionFactory(javax.jms.QueueConnectionFactory foreignQueueConnectionFactory)voidsetOutboundQueueConnectionFactoryName(String foreignQueueConnectionFactoryName)-
Methods inherited from class org.apache.activemq.network.jms.JmsConnector
addInboundBridge, addOutboundBridge, clearBridges, doConnectorInit, getForeignConnection, getInboundMessageConvertor, getJndiLocalTemplate, getJndiOutboundTemplate, getLocalClientId, getLocalConnection, getLocalPassword, getLocalUsername, getName, getOutboundClientId, getOutboundMessageConvertor, getOutboundPassword, getOutboundUsername, getReconnectionPolicy, getReplyToDestinationCacheSize, init, isConnected, isFailed, isPreferJndiDestinationLookup, removeInboundBridge, removeOutboundBridge, setBrokerService, setInboundMessageConvertor, setJndiLocalTemplate, setJndiOutboundTemplate, setLocalClientId, setLocalPassword, setLocalUsername, setName, setOutboundClientId, setOutboundMessageConvertor, setOutboundPassword, setOutboundUsername, setPreferJndiDestinationLookup, setReconnectionPolicy, setReplyToDestinationCacheSize, start, stop
-
-
-
-
Method Detail
-
getInboundQueueBridges
public InboundQueueBridge[] getInboundQueueBridges()
- Returns:
- Returns the inboundQueueBridges.
-
setInboundQueueBridges
public void setInboundQueueBridges(InboundQueueBridge[] inboundQueueBridges)
- Parameters:
inboundQueueBridges- The inboundQueueBridges to set.
-
getOutboundQueueBridges
public OutboundQueueBridge[] getOutboundQueueBridges()
- Returns:
- Returns the outboundQueueBridges.
-
setOutboundQueueBridges
public void setOutboundQueueBridges(OutboundQueueBridge[] outboundQueueBridges)
- Parameters:
outboundQueueBridges- The outboundQueueBridges to set.
-
getLocalQueueConnectionFactory
public javax.jms.QueueConnectionFactory getLocalQueueConnectionFactory()
- Returns:
- Returns the localQueueConnectionFactory.
-
setLocalQueueConnectionFactory
public void setLocalQueueConnectionFactory(javax.jms.QueueConnectionFactory localConnectionFactory)
- Parameters:
localConnectionFactory- The localQueueConnectionFactory to set.
-
getOutboundQueueConnectionFactory
public javax.jms.QueueConnectionFactory getOutboundQueueConnectionFactory()
- Returns:
- Returns the outboundQueueConnectionFactory.
-
getOutboundQueueConnectionFactoryName
public String getOutboundQueueConnectionFactoryName()
- Returns:
- Returns the outboundQueueConnectionFactoryName.
-
setOutboundQueueConnectionFactoryName
public void setOutboundQueueConnectionFactoryName(String foreignQueueConnectionFactoryName)
- Parameters:
foreignQueueConnectionFactoryName- The foreignQueueConnectionFactoryName to set.
-
getLocalConnectionFactoryName
public String getLocalConnectionFactoryName()
- Returns:
- Returns the localConnectionFactoryName.
-
setLocalConnectionFactoryName
public void setLocalConnectionFactoryName(String localConnectionFactoryName)
- Parameters:
localConnectionFactoryName- The localConnectionFactoryName to set.
-
getLocalQueueConnection
public javax.jms.QueueConnection getLocalQueueConnection()
- Returns:
- Returns the localQueueConnection.
-
setLocalQueueConnection
public void setLocalQueueConnection(javax.jms.QueueConnection localQueueConnection)
- Parameters:
localQueueConnection- The localQueueConnection to set.
-
getOutboundQueueConnection
public javax.jms.QueueConnection getOutboundQueueConnection()
- Returns:
- Returns the outboundQueueConnection.
-
setOutboundQueueConnection
public void setOutboundQueueConnection(javax.jms.QueueConnection foreignQueueConnection)
- Parameters:
foreignQueueConnection- The foreignQueueConnection to set.
-
setOutboundQueueConnectionFactory
public void setOutboundQueueConnectionFactory(javax.jms.QueueConnectionFactory foreignQueueConnectionFactory)
- Parameters:
foreignQueueConnectionFactory- The foreignQueueConnectionFactory to set.
-
initializeForeignConnection
protected void initializeForeignConnection() throws NamingException, javax.jms.JMSExceptionDescription copied from class:JmsConnectorPerforms the work of connection to the foreign side of the Connection.This creates the initial connection to the foreign end of the
JmsConnectorand then sets up all the destination bridges with the information needed to bridge on the foreign side of the connection.- Specified by:
initializeForeignConnectionin classJmsConnector- Throws:
NamingExceptionjavax.jms.JMSException
-
initializeLocalConnection
protected void initializeLocalConnection() throws NamingException, javax.jms.JMSExceptionDescription copied from class:JmsConnectorPerforms the work of connection to the local side of the Connection.This creates the initial connection to the local end of the
JmsConnectorand then sets up all the destination bridges with the information needed to bridge on the local side of the connection.- Specified by:
initializeLocalConnectionin classJmsConnector- Throws:
NamingExceptionjavax.jms.JMSException
-
initializeInboundDestinationBridgesOutboundSide
protected void initializeInboundDestinationBridgesOutboundSide(javax.jms.QueueConnection connection) throws javax.jms.JMSException- Throws:
javax.jms.JMSException
-
initializeInboundDestinationBridgesLocalSide
protected void initializeInboundDestinationBridgesLocalSide(javax.jms.QueueConnection connection) throws javax.jms.JMSException- Throws:
javax.jms.JMSException
-
initializeOutboundDestinationBridgesOutboundSide
protected void initializeOutboundDestinationBridgesOutboundSide(javax.jms.QueueConnection connection) throws javax.jms.JMSException- Throws:
javax.jms.JMSException
-
initializeOutboundDestinationBridgesLocalSide
protected void initializeOutboundDestinationBridgesLocalSide(javax.jms.QueueConnection connection) throws javax.jms.JMSException- Throws:
javax.jms.JMSException
-
createReplyToBridge
protected javax.jms.Destination createReplyToBridge(javax.jms.Destination destination, javax.jms.Connection replyToProducerConnection, javax.jms.Connection replyToConsumerConnection)- Specified by:
createReplyToBridgein classJmsConnector
-
createActiveMQQueue
protected javax.jms.Queue createActiveMQQueue(javax.jms.QueueSession session, String queueName) throws javax.jms.JMSException- Throws:
javax.jms.JMSException
-
createForeignQueue
protected javax.jms.Queue createForeignQueue(javax.jms.QueueSession session, String queueName) throws javax.jms.JMSException- Throws:
javax.jms.JMSException
-
-