|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.soa.esb.actions.routing.AbstractRouter
org.jboss.soa.esb.actions.routing.JMSRouter
public class JMSRouter
JSM Routing Action Processor.
Sample Action Configuration:
<action class="org.jboss.soa.esb.actions.routing.JMSRouter">
jndiName="queue/A"
message-prop->prop-name<=">prop-value<" >!-- (Optional)--<
unwrap="true/false" >!-- (Optional - default false)--<
/>
Note how properties to be set on the message are prefixed with "message-prop-".
To unwrap the message payload from the message before routing, set the "unwrap" property to "true".
TODO: Add support for JMS Topic destinations.
| Field Summary |
|---|
| Fields inherited from class org.jboss.soa.esb.actions.routing.AbstractRouter |
|---|
unwrap |
| Constructor Summary | |
|---|---|
JMSRouter(ConfigTree propertiesTree)
Public constructor. |
|
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. |
void |
route(java.lang.Object message)
Route the message or message payload. |
| Methods inherited from class org.jboss.soa.esb.actions.routing.AbstractRouter |
|---|
process |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JMSRouter(ConfigTree propertiesTree)
throws ConfigurationException,
javax.naming.NamingException,
javax.jms.JMSException
propertiesTree - Action properties.
ConfigurationException - Queue name not configured.
javax.jms.JMSException - Unable to configure JMS destination.
javax.naming.NamingException - Unable to configure JMS destination.
public JMSRouter(java.lang.String actionName,
java.util.List<KeyValuePair> properties)
throws ConfigurationException
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 void route(java.lang.Object message)
throws ActionProcessingException
AbstractRouter
route in class AbstractRoutermessage - The object to route.
ActionProcessingException - Exception during routing operation.public java.io.Serializable getOkNotification(Message message)
ActionProcessor
message - The message Object.
public java.io.Serializable getErrorNotification(Message message)
ActionProcessor
message - 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 | ||||||||