You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by dss <se...@gmail.com> on 2013/12/30 09:41:12 UTC

EndPoint URI issue

Hi,

Problem:

We have two different queues(same queue name)  in two different
environments(DEV & INT).

When my route is configured to send traffic to these two different queues  ,
only one environment (DEV) is getting traffic with duplicate messages. 

The uri is configured as follows.

outputLocations = new StringBuilder("activemq:queue:");
outputLocations.append("queue.altea.to.ib.hub");
endpoint = (JmsEndpoint)
getContext().getEndpoint(outputLocations.toString());

Here first endpoint URI is replacing with another URI and i want to
distinguish uri with host address as well. 

Please help me to use different endpoint URI where i have to use same queue
name for different queues deployed in different environments.

Thanks,
Siva





--
View this message in context: http://activemq.2283324.n4.nabble.com/EndPoint-URI-issue-tp4675895.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: EndPoint URI issue

Posted by artnaseef <ar...@artnaseef.com>.
Assuming there are two different brokers in your setup - one for DEV and one
for INT...

It sounds like both producer endpoints are sending to the same broker (DEV)
- can you confirm that?

If so, the connection factory setup for the "activemq" component defines the
broker to which the endpoint is connecting.  To have one camel context use
two different brokers, you'll need two different component configurations,
such as "activemq1" and "activemq2".

Regardless of the number of brokers - try checking the camel configuration
at runtime using an MBean browser.  You should be able to confirm the
endpoints for the routes, and also confirm that messages are passing through
the correct routes.



--
View this message in context: http://activemq.2283324.n4.nabble.com/EndPoint-URI-issue-tp4675895p4676016.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: EndPoint URI issue

Posted by Christian Posta <ch...@gmail.com>.
are you using two separate connection factories?

On Mon, Dec 30, 2013 at 1:41 AM, dss <se...@gmail.com> wrote:
> Hi,
>
> Problem:
>
> We have two different queues(same queue name)  in two different
> environments(DEV & INT).
>
> When my route is configured to send traffic to these two different queues  ,
> only one environment (DEV) is getting traffic with duplicate messages.
>
> The uri is configured as follows.
>
> outputLocations = new StringBuilder("activemq:queue:");
> outputLocations.append("queue.altea.to.ib.hub");
> endpoint = (JmsEndpoint)
> getContext().getEndpoint(outputLocations.toString());
>
> Here first endpoint URI is replacing with another URI and i want to
> distinguish uri with host address as well.
>
> Please help me to use different endpoint URI where i have to use same queue
> name for different queues deployed in different environments.
>
> Thanks,
> Siva
>
>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/EndPoint-URI-issue-tp4675895.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
Christian Posta
http://www.christianposta.com/blog
twitter: @christianposta