Class JMSConnections

    • Field Detail

      • logger

        private static final Logger logger
      • DEBUG

        private static final boolean DEBUG
      • TRANSIENT_CONFIGURATION

        public static final boolean TRANSIENT_CONFIGURATION
    • Constructor Detail

      • JMSConnections

        JMSConnections()
    • Method Detail

      • readSavedConf

        boolean readSavedConf()
        Reads the configuration for JMS bridge connections from persistence.
        Returns:
        true if the configuration is read, false otherwise.
      • saveConf

        void saveConf()
        Saves the configuration for JMS bridge connections to persistence.
      • addServer

        public void addServer​(String name,
                              String cnxFactoryName)
        Adds a JMS server and starts a live connection with it, accessible using the connection factory retrieved on the JNDI server. A server is uniquely identified by the name of the connection factory. Adding an existing server won't do anything.
        Specified by:
        addServer in interface JMSConnectionsMBean
        Parameters:
        name - the name identifying the server
        cnxFactoryName - the name identifying the connection factory on the JNDI server
      • addServer

        public void addServer​(String name,
                              String cnxFactoryName,
                              String jndiFactoryClass,
                              String jndiUrl)
        Adds a JMS server and starts a live connection with it, accessible using the connection factory retrieved on the JNDI server. A server is uniquely identified by the name of the connection factory. Adding an existing server won't do anything.
        Specified by:
        addServer in interface JMSConnectionsMBean
        Parameters:
        name - the name identifying the server
        cnxFactoryName - the name identifying the connection factory on the JNDI server
        jndiFactoryClass - the JNDI connection factory class name
        jndiUrl - the JNDI URL
      • addServer

        public void addServer​(String name,
                              String cnxFactoryName,
                              String jndiFactoryClass,
                              String jndiUrl,
                              String user,
                              String password)
        Adds a JMS server and starts a live connection with it, accessible using the connection factory retrieved on the JNDI server. A server is uniquely identified by the name of the connection factory. Adding an existing server won't do anything.
        Specified by:
        addServer in interface JMSConnectionsMBean
        Parameters:
        name - the name identifying the server
        cnxFactoryName - the name identifying the connection factory on the JNDI server
        jndiFactoryClass - the JNDI connection factory class name
        jndiUrl - the JNDI URL
        user - user name
        password - user password
      • addServer

        public void addServer​(String name,
                              String cnxFactoryName,
                              String jndiFactoryClass,
                              String jndiUrl,
                              String user,
                              String password,
                              String clientID)
        Adds a JMS server and starts a live connection with it, accessible using the connection factory retrieved on the JNDI server. A server is uniquely identified by the name of the connection factory. Adding an existing server won't do anything.
        Specified by:
        addServer in interface JMSConnectionsMBean
        Parameters:
        name - the name identifying the server
        cnxFactoryName - the name identifying the connection factory on the JNDI server
        jndiFactoryClass - the JNDI connection factory class name
        jndiUrl - the JNDI URL
        user - user name
        password - user password
        clientID - the client identifier for this connection
      • deleteServer

        public void deleteServer​(String name)
        Removes the live connection to the specified AMQP server.
        Specified by:
        deleteServer in interface JMSConnectionsMBean
        Parameters:
        name - the name identifying the server
      • getConnections

        public List<JMSModule> getConnections()
        Gets the list of currently opened connections.
        Returns:
        the list of usable connections.
      • stop

        public void stop()