|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.soa.esb.actions.routing.JMSRouter
public class JMSRouter
JSM Routing Action Processor.
Sample Action Configuration:
<Action name="Route-To-Invoicing" processor="JMSRouter">
<property name="jndiName" value="queue/A" />
<property name="message-prop:jms-selector" value="incoming-invoice" />
</Action>
Note how properties to be set on the message are prefixed with "message-prop:".
TODO: Add support for JMS Topic destinations.
| Constructor Summary | |
|---|---|
JMSRouter(java.lang.String actionName,
java.util.List<KeyValuePair> properties)
Public constructor. |
|
| Method Summary | |
|---|---|
protected void |
finalize()
|
java.io.Serializable |
getErrorNotification(Message message)
Get the "Error" notification message for this processor. |
java.io.Serializable |
getOkNotification(Message message)
Get the "OK" notification message for this processor. |
Message |
process(Message message)
Perform the processing action on the message |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JMSRouter(java.lang.String actionName,
java.util.List<KeyValuePair> properties)
throws ConfigurationException,
javax.naming.NamingException,
javax.jms.JMSException
actionName - Action name.properties - Action properties.
ConfigurationException - Queue name not configured.
javax.jms.JMSException - Unable to configure JMS destination.
javax.naming.NamingException - Unable to configure JMS destination.| Method Detail |
|---|
public Message process(Message message)
throws ActionProcessingException
ActionProcessor
process in interface ActionProcessormessage - The message to be processed.
ActionProcessingException - Exception during payload processing.public java.io.Serializable getOkNotification(Message message)
ActionProcessor
getOkNotification in interface ActionProcessormessage - The message Object.
public java.io.Serializable getErrorNotification(Message message)
ActionProcessor
getErrorNotification in interface ActionProcessormessage - The message Object.
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||