Class JMSConnectionService


  • public class JMSConnectionService
    extends Object
    • Constructor Detail

      • JMSConnectionService

        public JMSConnectionService()
    • Method Detail

      • addServer

        public static void addServer​(String urls)
        Parameters:
        urls - The url list separate by space urls = "jndi_url/?name=cnx1&cf=cfName&jndiFactoryClass=com.xxx.yyy&user=user1&pass=pass1&clientID=clientID jndi_url/?name=cnx2&cf=cfName2&jndiFactoryClass=com.xxx.zzz&user=user1&pass=pass2&clientID=clientID2" in url, use %26 instead of & if needed.
      • addServer

        public static void addServer​(String name,
                                     String cnxFactoryName,
                                     String jndiFactoryClass,
                                     String jndiUrl)
      • deleteServer

        public static void deleteServer​(String names)
        Removes the live connection to the specified JMS server.
        Parameters:
        name - the name identifying the server or list of name separate by space
      • getServerNames

        public static String[] getServerNames()
        Gets the list of known servers.
      • init

        public static void init​(String args,
                                boolean firstTime)
                         throws Exception
        Initializes the service. Starts a connection with servers if urls set.
        Throws:
        Exception
      • stopService

        public static void stopService()
        Stops all connections to JMSBridge servers.