Class SimpleJmsQueueConnector

  • All Implemented Interfaces:
    org.apache.activemq.Service

    public class SimpleJmsQueueConnector
    extends JmsConnector
    • Constructor Detail

      • SimpleJmsQueueConnector

        public SimpleJmsQueueConnector()
    • 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.JMSException
        Description copied from class: JmsConnector
        Performs the work of connection to the foreign side of the Connection.

        This creates the initial connection to the foreign end of the JmsConnector and then sets up all the destination bridges with the information needed to bridge on the foreign side of the connection.

        Specified by:
        initializeForeignConnection in class JmsConnector
        Throws:
        NamingException
        javax.jms.JMSException
      • initializeLocalConnection

        protected void initializeLocalConnection()
                                          throws NamingException,
                                                 javax.jms.JMSException
        Description copied from class: JmsConnector
        Performs the work of connection to the local side of the Connection.

        This creates the initial connection to the local end of the JmsConnector and then sets up all the destination bridges with the information needed to bridge on the local side of the connection.

        Specified by:
        initializeLocalConnection in class JmsConnector
        Throws:
        NamingException
        javax.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:
        createReplyToBridge in class JmsConnector
      • 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