You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Gérald Quintana (JIRA)" <ji...@apache.org> on 2014/05/02 21:12:20 UTC

[jira] [Commented] (CAMEL-7384) camel-rabbitmq: Allow connection factory tuning

    [ https://issues.apache.org/jira/browse/CAMEL-7384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13988109#comment-13988109 ] 

Gérald Quintana commented on CAMEL-7384:
----------------------------------------

To add to Camel documentation:

h2. New options:

||Name                     ||Default|| Description||
|connectionTimeout        |      0| *Camel 2.14:* Connection timeout|
|requestedChannelMax      |      0| *Camel 2.14:* Connection requested channel max|
|requestedFrameMax        |      0| *Camel 2.14:* Connection requested frame max|
|requestedHeartbeat       |      0| *Camel 2.14:* Connection requested heartbeat|
|sslProtocol              |  null | *Camel 2.14:* Enables SSL on connection, accepted value are `true`, `TLS` and 'SSLv3`|
|trustManager             |  null | *Camel 2.14:* Configure SSL trust manager, SSL should be enabled for this option to be effective|
|clientProperties         |  null | *Camel 2.14:* Connection client properties|
|connectionFactory        |  null | *Camel 2.14:* Custom RabbitMQ connection factory. When this option is set, all connection options (connectionTimeout, requestedChannelMax...) set on URI are not used|
|automaticRecoveryEnabled | false | *Camel 2.14:* Enables connection automatic recovery|
|networkRecoveryInterval  |  5000 | *Camel 2.14:* Network recoverty interval in milliseconds|
|topologyRecoveryEnabled  |  true | *Camel 2.14:* Enables connection topology recovery|

See http://www.rabbitmq.com/releases/rabbitmq-java-client/current-javadoc/com/rabbitmq/client/ConnectionFactory.html and the AMQP specification for more information on connection options.

h2. Custom connection factory
{code:xml}
    <bean id="customConnectionFactory" class="com.rabbitmq.client.ConnectionFactory">
        <property name="host" value="localhost"/>
        <property name="port" value="5672"/>
        <property name="username" value="camel"/>
        <property name="password" value="bugsbunny"/>
    </bean>

    <camelContext>
        <route>
            <from uri="direct:rabbitMQEx2"/>
            <to uri="rabbitmq://localhost:5672/ex2?connectionFactory=#customConnectionFactory"/>
        </route>
    </camelContext>
{code}

> camel-rabbitmq: Allow connection factory tuning
> -----------------------------------------------
>
>                 Key: CAMEL-7384
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7384
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-rabbitmq
>    Affects Versions: 2.13.0
>            Reporter: Gérald Quintana
>            Assignee: Willem Jiang
>
> Several settings of the {{com.rabbitmq.client.ConnectionFactory}} are not exposed in RabbitMQEndpoint, namely:
> - automaticRecoveryEnabled
> - networkRecoveryInterval
> - topologyRecoveryEnabled
> - connectionTimeout
> - requestedHeartbeat
> - clientProperties
> - requestedChannelMax
> - requestedFrameMax
> - sslProtocol
> It would be great if we could plug any ConnectionFactory implementation in the endpoint (caching connection factory for instance)



--
This message was sent by Atlassian JIRA
(v6.2#6252)