camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From souciance <souciance.eqdam.ras...@gmail.com>
Subject Re: Host name in RabbitMQ endpoint with connectionFactory
Date Thu, 07 Jul 2016 14:02:13 GMT
Hi,

I didn't quit understand.

What do you mean specify twice? You just refer to that component like any
other component...from("rabbitmq://....). Where is the duplication?

Best
Souciance

On Thu, Jul 7, 2016 at 3:13 PM, vgaur [via Camel] <
ml-node+s465427n5784926h69@n5.nabble.com> wrote:

> Hi,
>
> I am using camel-rabbitmq component and specifying my endpoint in property
> file something like this.
>
>
> *rabbitmq://localhost:5672/Exchange?connectionFactory=#customConnectionFactory&queue=queue&routingKey=key&exchangeType=direct&durable=true&autoDelete=false*
>
> The host name I have specified in property file from where my connection
> factory is getting created as well as in rabbitmq endpoint.
>
> I can see in RabbitMQComponent the below code
>
>
>
>
>
> *if (connectionFactory == null) {             endpoint = new
> RabbitMQEndpoint(uri, this);         } else {             endpoint = new
> RabbitMQEndpoint(uri, this, connectionFactory);  }*
>
> But still the host I have to specify twice.
>
> Ho can I remove this duplication. Any suggestions ?
>
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.com/Host-name-in-RabbitMQ-endpoint-with-connectionFactory-tp5784926.html
> To start a new topic under Camel - Users, email
> ml-node+s465427n465428h31@n5.nabble.com
> To unsubscribe from Camel - Users, click here
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpbC5jb218NDY1NDI4fDE1MzI5MTE2NTY=>
> .
> NAML
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://camel.465427.n5.nabble.com/Host-name-in-RabbitMQ-endpoint-with-connectionFactory-tp5784926p5784929.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message