public class Alcatel5620SamJmsProvider
extends java.util.Observable
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
acceptedClientId
This is the accepted client id for the topic.
|
protected boolean |
isListening
This identifies if the consumer is listening to the topic.
|
| Constructor and Description |
|---|
Alcatel5620SamJmsProvider(java.util.Properties jndiProps,
boolean blnSecure,
java.lang.String strKeyPass,
java.lang.String strKeyStore,
java.lang.String strUsername,
java.lang.String strPassword,
java.lang.String strTopic,
boolean blnDurable,
java.lang.String strClientId,
java.lang.String strFilter)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This method is called when the consumer wants to close the
connection.
|
static boolean |
isConnected() |
static boolean |
isStopped() |
void |
onException(JMSException aInException)
This method is called when an exception occurs on the JMS connection.
|
void |
onMessage(Message aInMessage)
This method is called by message service for each event received.
|
static void |
setConnected(boolean isConnected) |
void |
setExceptionListener(ExceptionListener aInListener)
This method sets the exception listener on the connection.
|
void |
setMessageListener(MessageListener aInListener)
This method sets the message listener for the connection.
|
static void |
setStopped(boolean isStopped) |
boolean |
startJmsSession(java.lang.String host)
Starts the JMS session
|
void |
startListening()
This method is called when the consumer wants to start
receiving messages.
|
void |
stopListening()
This method is called when the consumer wants to stop receiving
messages.
|
protected java.lang.String acceptedClientId
protected boolean isListening
public Alcatel5620SamJmsProvider(java.util.Properties jndiProps,
boolean blnSecure,
java.lang.String strKeyPass,
java.lang.String strKeyStore,
java.lang.String strUsername,
java.lang.String strPassword,
java.lang.String strTopic,
boolean blnDurable,
java.lang.String strClientId,
java.lang.String strFilter)
jmsConn - Alcatel5620SamJmsConnection instancejmsSession - Alcatel5620SamJmsSession instancejndiProps - JNDI propertiesblnSecure - Flag to enable a secure session using SSLstrKeyPass - Keypass value for the secure sessionstrKeyStore - Keystore value for the secure sessionstrHost - IP address or hostname of the EMSstrUsername - UsernamestrPassword - PasswordstrTopic - The Topic name to listen for JMS messagesblnDurable - Flag to enable durable subscriptionblnUnsubscribe - Flag to unsubscribe durable subscriptionstrClientId - JMS client identifier to be set for durable subscriptionspublic static boolean isConnected()
public static void setConnected(boolean isConnected)
public static boolean isStopped()
public static void setStopped(boolean isStopped)
public boolean startJmsSession(java.lang.String host)
Alcatel5620SamJmsExceptionpublic void startListening()
throws JMSException
JMSException - If an exception happens on the connection.public void setMessageListener(MessageListener aInListener)
aInListener - The message listener to receive messages.public void setExceptionListener(ExceptionListener aInListener)
throws JMSException
aInListener - The connection listener to set.JMSException - If an exception happens on the connection.public void onMessage(Message aInMessage)
aInMessage - The event receivedpublic void onException(JMSException aInException)
aInException - The exception that occurred.public void close()
public void stopListening()
throws JMSException
JMSException - If an exception happens on the connection.