Skip to main content
Jump to: navigation, search

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

 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
== What is Broker Connection Service==
+
{{note|This has been removed in SMILA 0.9 by the [[SMILA/Documentation/JobManager|JobManager framework]]}}
 
+
The main goal of Broker Connection Service is to provide common cached connection pool to JMS brokers for [[SMILA/Documentation/QueueWorker/Router|Router]] and [[SMILA/Documentation/QueueWorker/Listener|Listener]].
+
 
+
 
+
== Interface ==
+
<source lang="java">
+
public interface BrokerConnectionService {
+
  Connection getConnection(QueueConnectionType connectionType, boolean cached) throws BrokerConnectionException;
+
}
+
</source>
+
 
+
== Configuration ==
+
Schema:org.eclipse.eilf.connectivity.queue.worker/schemas/QueueWorkerConfig.xsd
+
 
+
Configuration is a list of JMS broker connection specific properties like URL, user, password and connection type (factory).
+
Also it should be specified unique Id for each connection configuration.
+
 
+
== Configuration Sample==
+
<source lang="java">
+
<ConnectionsConfig xmlns="http://www.eclipse.org/eilf/queue"
+
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
  xsi:noNamespaceSchemaLocation="schemas/QueueWorkerConfig.xsd"
+
>
+
 
+
  <ConnectionConfig Id="broker1">
+
    <URL>tcp://localhost:61616</URL>
+
    <User>any</User>
+
    <Password>any</Password>
+
    <ConnectionFactory>org.apache.activemq.ActiveMQConnectionFactory</ConnectionFactory>
+
  </ConnectionConfig>
+
 
+
  <ConnectionConfig Id="broker_alernate">
+
    <URL>tcp://10.0.0.1:61616</URL>
+
    <User>me</User>
+
    <Password>mypass</Password>
+
    <ConnectionFactory>org.apache.activemq.ActiveMQConnectionFactory</ConnectionFactory>
+
  </ConnectionConfig>
+
 
+
 
+
</ConnectionsConfig> 
+
</source>
+
 
+
[[Category:SMILA]]
+

Latest revision as of 05:59, 24 January 2012

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

Back to the top