public class JMSConnectionService extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
JMSConnectionService.MyURLStreamHandler |
Modifier and Type | Field and Description |
---|---|
(package private) static String |
JMXBaseName |
private static org.objectweb.util.monolog.api.Logger |
logger |
private static JMSConnections |
singleton |
Constructor and Description |
---|
JMSConnectionService() |
Modifier and Type | Method and Description |
---|---|
static void |
addServer(String urls) |
static void |
addServer(String name,
String cnxFactoryName,
String jndiFactoryClass,
String jndiUrl) |
static void |
addServer(String name,
String cnxFactoryName,
String jndiFactoryClass,
String jndiUrl,
String user,
String password) |
static void |
addServer(String name,
String cnxFactoryName,
String jndiFactoryClass,
String jndiUrl,
String user,
String password,
String clientID) |
static List<String> |
convertToList(String value) |
static void |
deleteServer(String names)
Removes the live connection to the specified JMS server.
|
static JMSConnections |
getInstance() |
static String[] |
getServerNames()
Gets the list of known servers.
|
static void |
init(String args,
boolean firstTime)
Initializes the service.
|
static void |
stopService()
Stops all connections to JMSBridge servers.
|
private static final org.objectweb.util.monolog.api.Logger logger
private static JMSConnections singleton
static final String JMXBaseName
public static JMSConnections getInstance()
public static void addServer(String urls)
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.public static void addServer(String name, String cnxFactoryName, String jndiFactoryClass, String jndiUrl)
public static void addServer(String name, String cnxFactoryName, String jndiFactoryClass, String jndiUrl, String user, String password)
public static void addServer(String name, String cnxFactoryName, String jndiFactoryClass, String jndiUrl, String user, String password, String clientID)
public static void deleteServer(String names)
name
- the name identifying the server or list of name separate by spacepublic static String[] getServerNames()
public static void init(String args, boolean firstTime) throws Exception
Exception
public static void stopService()
Copyright © 2013 ScalAgent D.T.. All Rights Reserved.