Jump to: navigation, search

Difference between revisions of "SMILA/Documentation/QueueWorker/Router"

Line 21: Line 21:
 
== Configuration ==
 
== Configuration ==
 
Schema: "org.eclipse.smila.connectivity.queue.worker/schemas/QueueWorkerConfig.xsd"
 
Schema: "org.eclipse.smila.connectivity.queue.worker/schemas/QueueWorkerConfig.xsd"
Location: "configuration/org.eclipse.smila.connectivity.queue.worker/RouterConfig.xml"
+
Location: "configuration/org.eclipse.smila.connectivity.queue.worker.jms/RouterConfig.xml"
  
 
Configuration is a list of routing rules.
 
Configuration is a list of routing rules.

Revision as of 07:09, 7 August 2009

What is Router

The main goal of Router is to put Record into JMS queue but it also make any Queue Worker specific tasks like executing BPEL piplene. For Tasks information see page See Router/Listener Tasks

Interface

public enum Operation { 
  ADD,
  DELETE,
  NONE
}
public interface Router extends QueueWorker {
  void route(Record record, Operation operation) throws RouterException;
}

Configuration

Schema: "org.eclipse.smila.connectivity.queue.worker/schemas/QueueWorkerConfig.xsd" Location: "configuration/org.eclipse.smila.connectivity.queue.worker.jms/RouterConfig.xml"

Configuration is a list of routing rules.

Condition

Processing Rule is found by value of Condition tag. Condition is a String whose syntax is based on a subset of the SQL92 conditional expression syntax pointed in JMS specification. [| spec]

For Router it operates with two properties

  • Operation
  • DataSourceID


Tasks

See Router/Listener Tasks page for tasks configuration.

Samples

See samples page.