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"

(Replacing page with '{{note|This has been removed in SMILA 0.9 by the JobManager framework}}')
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
== What is Listener==
+
{{note|This has been removed in SMILA 0.9 by the [[SMILA/Documentation/JobManager|JobManager framework]]}}
 
+
The main goal of Listener is to get Record from JMS queue and process by BPEL workflow but it also make any [[SMILA/Documentation/QueueWorker|Queue Worker]] specific tasks like resending Record into new JMS Queue, see [[SMILA/Documentation/QueueWorker/Tasks|Router/Listener Tasks]].
+
 
+
== Interface ==
+
there is no public interface. Its only possible to manually change workers quantity for every Rule by JMX management API/console. It may be useful for workload balancing.
+
 
+
== Configuration ==
+
Schema: "org.eclipse.smila.connectivity.queue.worker/schemas/QueueWorkerConfig.xsd"
+
Location: "configuration/org.eclipse.smila.connectivity.queue.worker/ListenerConfig.xml"
+
 
+
Configuration is a list of listening rules.
+
There are only three difference with [[SMILA/Documentation/QueueWorker/Router|Router]] rules:
+
* <Source BrokerId="broker1" Queue="SMILA.connectivity"/>  - source queue reference (BrokerID should be specified in [[SMILA/Documentation/QueueWorker/BrokerConnectionService|Broker Connection Service]] configuration).
+
* WaitMessageTimeout  - timeout (in seconds) for attempts to pull JMS message from queue, default value is 1 second.
+
* Workers  - startup number of threads to listen queue under this rule, by default it is 1 thread.
+
 
+
Look at the [[SMILA/Documentation/QueueWorker/Router|Router]] documentation for complete list of tags/operations common for Listener and Router
+
 
+
== Condition ==
+
Each listener Rule is a set of Queue consumers (workers) grouped 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 ( [[http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/jms/Message.html | spec]] ) and it's absolutely the same syntax that used in [[SMILA/Documentation/QueueWorker/Router|Router]] Condition tag.
+
 
+
There are two JMS properties supported during all queue related processes in router/listener
+
 
+
* Operation
+
* DataSourceID
+
 
+
Other properties may also be added/used in conditions, look at the second configuration sample below.
+
 
+
As it was already mentioned above, look at the [[SMILA/Documentation/QueueWorker/Router|Router]] and see [[SMILA/Documentation/QueueWorker/Tasks|Router/Listener Tasks]] documentation pages for details.
+
[[Category:SMILA]]
+

Latest revision as of 06:00, 24 January 2012

Note.png
This has been removed in SMILA 0.9 by the JobManager framework

Back to the top