|
Oracle Communications Services Gatekeeper Java API Reference 5.1 E37525-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.bea.wlcp.wlng.api.edr.jms.JMSListener
Root class used by all JMS listener. Provides a convenient way of extracting the Edr object from the JMS message so subclasses don't have to deal with JMS-specific feature.
Nested Class Summary | |
static class |
JMSListener.TYPE Type of registration |
Constructor Summary | |
JMSListener() Default constructor |
Method Summary | |
ConfigDescriptor |
findConfigDescriptorMatchingEdr(EdrData edr) Finds a descriptor given the specified Edr. |
void |
onEdr(EdrData edr, ConfigDescriptor descriptor) Handles an EDR. |
void |
onException(javax.jms.JMSException jmsException) Subclasses need to overwrite this method to receive the JMSException if there are any serious connection problems. |
void |
onMessage(Message message) |
void |
processEdr(EdrData edr) Processes an individual EdrData object. |
void |
processEdr(EdrData[] datas) Processes a batch of EdrData. |
void |
register(Context context, JMSListener.TYPE type, EdrFilter filter) Registers the JMS listener to the EDR topic. |
void |
register(String url) Registers the JMS listener to the EDR topic. |
void |
register(String url, EdrFilter filter) Registers the JMS listener to the EDR topic. |
void |
register(String url, JMSListener.TYPE type) Registers the JMS listener to the EDR topic. |
void |
register(String url, JMSListener.TYPE type, EdrFilter filter) Registers the JMS listener to the EDR topic. |
void |
unregister() Unregisters the JMS listener from the Edr topic. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JMSListener()
Method Detail |
public ConfigDescriptor findConfigDescriptorMatchingEdr(EdrData edr)
edr
- The Edr datapublic void onEdr(EdrData edr, ConfigDescriptor descriptor)
edr
- The EdrDatadescriptor
- The type of EdrData or null if no EdrFilter specifiedpublic void onException(javax.jms.JMSException jmsException)
jmsException
- JMSExceptionpublic void onMessage(Message message)
public void processEdr(EdrData edr)
edr
- The EdrData to processpublic void processEdr(EdrData[] datas)
datas
- The list of EdrData to processpublic void register(Context context, JMSListener.TYPE type, EdrFilter filter) throws Exception
context
- The javax Contexttype
- Type of registration (see TYPE enum)filter
- An optional EDR filter stringException
- An exception during registration of the listenerpublic void register(String url) throws Exception
url
- URL of the server where the WLNG is runningException
- An exception during registration of the listenerpublic void register(String url, EdrFilter filter) throws Exception
url
- URL of the server where the WLNG is runningfilter
- An optional EDR filter stringException
- An exception during registration of the listenerpublic void register(String url, JMSListener.TYPE type) throws Exception
url
- URL of the server where the WLNG is runningtype
- Type of registration (see TYPE enum)Exception
- An exception during registration of the listenerpublic void register(String url, JMSListener.TYPE type, EdrFilter filter) throws Exception
url
- URL of the server where the WLNG is runningtype
- Type of registration (see TYPE enum)filter
- An optional EDR filter stringException
- An exception during registration of the listenerpublic void unregister() throws JMSException
JMSException
|
Oracle Communications Services Gatekeeper Java API Reference 5.1 E37525-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |