|
Oracle Corporation | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.bea.wlcp.wlng.api.edr.jms.JMSListener
Root class used by all JMS listener. It provides a convenient way of extracting the Edr object from the JMS message so subclass 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 is any serious problems in connection. |
void |
onMessage(Message message)
|
void |
processEdr(EdrData edr)
Processes an individual EdrData. |
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 data
public 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 process
public 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 string
Exception - An exception during registration of the listener
public void register(String url)
throws Exception
url - URL of the server where the WLNG is running
Exception - An exception during registration of the listener
public void register(String url,
EdrFilter filter)
throws Exception
url - URL of the server where the WLNG is runningfilter - An optional EDR filter string
Exception - An exception during registration of the listener
public 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 listener
public 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 string
Exception - An exception during registration of the listener
public void unregister()
throws JMSException
JMSException
|
Oracle Corporation | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||