Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

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

Line 12: Line 12:
 
Configuration is a list of listening rules.
 
Configuration is a list of listening rules.
 
There are only three difference with [[SMILA/Documentation/QueueWorker/Router|Router]] rules:
 
There are only three difference with [[SMILA/Documentation/QueueWorker/Router|Router]] rules:
* <Source BrokerId="broker1" Queue="EILF.connectivity"/>  - source queue reference.
+
* <Source BrokerId="broker1" Queue="EILF.connectivity"/>  - source queue reference (BrokerID should be specified in [[SMILA/Documentation/QueueWorker/BrokerConnectionService|Broker Connection Service]] configuration).
 
* WaitMessageTimeout  - timeout for attempts to pull JMS message from queue
 
* WaitMessageTimeout  - timeout for attempts to pull JMS message from queue
 
* Workers  - startup number of threads to listen queue under this rule.
 
* Workers  - startup number of threads to listen queue under this rule.

Revision as of 10:32, 20 August 2008

What is Listener

The main goal of Listener is to get Record from JMS queue and process by BPEL workflow but it also make any Queue Worker specific tasks like resending Record into new JMS Queue.

Interface

there is no public interface

Configuration

Schema: "org.eclipse.eilf.connectivity.queue.worker/schemas/QueueWorkerConfig.xsd" Location: "configuration/org.eclipse.eilf.connectivity.queue.worker/ListenerConfig.xml"

Configuration is a list of listening rules. There are only three difference with Router rules:

  • <Source BrokerId="broker1" Queue="EILF.connectivity"/> - source queue reference (BrokerID should be specified in Broker Connection Service configuration).
  • WaitMessageTimeout - timeout for attempts to pull JMS message from queue
  • Workers - startup number of threads to listen queue under this rule.

Look at the Router documentation for complete list of tags/operations common for Listener and Router


Configuration Sample

<ListenerConfig xmlns="http://www.eclipse.org/eilf/queue"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation="schemas/QueueWorkerConfig.xsd"
>
 
 
  <Rule Name="Default ADD Rule" WaitMessageTimeout="10" Workers="2">
    <Source BrokerId="broker1" Queue="EILF.connectivity"/>
    <Condition>Operation='ADD'</Condition>
    <Task>
      <Synchronize Filter="no-filter"/>
      <Process Workflow="AddPipeline"/>
    </Task>
  </Rule>
 
  <Rule Name="Default Delete Rule" WaitMessageTimeout="10" Workers="2">
    <Source BrokerId="broker1" Queue="EILF.connectivity"/>
    <Condition>Operation='DELETE'</Condition>
    <Task>
      <Synchronize Filter="nothing"/>
      <Process Workflow="DeletePipeline"/>
    </Task>
  </Rule>
 
</ListenerConfig>

Back to the top