public class JMSClientHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ANDES_INITIAL_CONTEXT_FACTORY
Full qualified class name of the andes initial context factory
|
static String |
QUEUE_CONNECTION_FACTORY
Queue connection factory name used
|
static String |
TOPIC_CONNECTION_FACTORY
Topic connection factory name used
|
| Constructor and Description |
|---|
JMSClientHelper() |
| Modifier and Type | Method and Description |
|---|---|
static InitialContext |
getInitialContextForQueue(String username,
String password,
String brokerHost,
String port,
String queueName)
Create a inital context with the given parameters
|
static InitialContext |
getInitialContextForTopic(String username,
String password,
String brokerHost,
String port,
String topicName)
Create a inital context with the given parameters
|
public static final String ANDES_INITIAL_CONTEXT_FACTORY
public static final String QUEUE_CONNECTION_FACTORY
public static final String TOPIC_CONNECTION_FACTORY
public static InitialContext getInitialContextForQueue(String username, String password, String brokerHost, String port, String queueName) throws NamingException
username - Usernamepassword - PasswordbrokerHost - Hostname or IP address of the brokerport - Port used for AMQP transportqueueName - Queue nameNamingExceptionpublic static InitialContext getInitialContextForTopic(String username, String password, String brokerHost, String port, String topicName) throws NamingException
username - Usernamepassword - PasswordbrokerHost - Hostname or IP address of the brokerport - Port used for AMQP transporttopicName - Topic nameNamingExceptionCopyright © 2019 WSO2. All rights reserved.