Skip to main content
Jump to: navigation, search

SMILA/Documentation/QueueWorker/BrokerConnectionService

< SMILA‎ | Documentation‎ | QueueWorker
Revision as of 09:35, 20 August 2008 by Churkin.ivan.gmail.com (Talk | contribs) (New page: == What is Broker Connection Service== The main goal of Broker Connection Service is to provide common cached connection pool to JMS brokers for [[SMILA/Documentation/QueueWorker/Router|R...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

What is Broker Connection Service

The main goal of Broker Connection Service is to provide common cached connection pool to JMS brokers for Router and Listener.


Interface

public interface BrokerConnectionService {
  Connection getConnection(QueueConnectionType connectionType, boolean cached) throws BrokerConnectionException;
}

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).

Configuration Sample

<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>

Back to the top