You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by blueear <bl...@gmail.com> on 2013/03/13 22:18:08 UTC

How to create copy of one queue

Hello everybody.

I need create a copy of one specified queue and send messages to another
broker or read its by a consumer. Mirrored queues mirror all queue. Can you
help me?

Blueear.



--
View this message in context: http://activemq.2283324.n4.nabble.com/How-to-create-copy-of-one-queue-tp4664682.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: How to create copy of one queue

Posted by Christian Posta <ch...@gmail.com>.
you may want to take a look at Camel for that


On Wed, Mar 13, 2013 at 2:18 PM, blueear <bl...@gmail.com> wrote:

> Hello everybody.
>
> I need create a copy of one specified queue and send messages to another
> broker or read its by a consumer. Mirrored queues mirror all queue. Can you
> help me?
>
> Blueear.
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/How-to-create-copy-of-one-queue-tp4664682.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



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

Re: How to create copy of one queue

Posted by Timothy Bish <ta...@gmail.com>.
On 03/13/2013 05:18 PM, blueear wrote:
> Hello everybody.
>
> I need create a copy of one specified queue and send messages to another
> broker or read its by a consumer. Mirrored queues mirror all queue. Can you
> help me?
>
> Blueear.
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/How-to-create-copy-of-one-queue-tp4664682.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Have you looked into an EIP solution using a camel route?
See: http://camel.apache.org/recipient-list.html**

-- 
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.bish@redhat.com | www.fusesource.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/


Re: How to create copy of one queue

Posted by Raul Kripalani <ra...@evosent.com>.
Based on past experience, you can achieve by staying within AMQ only.

I've had success with AMQ Composite Destinations [1]. For example, this
block of configuration, all messages on queue foo will be forwarded to
queue bar, whilst keeping the original intact.

<compositeQueue name="foo" forwardOnly="false">
    <forwardTo>
        <queue physicalName="bar" />
    </forwardTo>
</compositeQueue>

Make sure you set forwardOnly=false; otherwise you won't be able to consume
from the original queue.

[1] http://activemq.apache.org/virtual-destinations.html

*Raúl Kripalani*
Apache Camel Committer
Enterprise Architect, Program Manager, Open Source Integration specialist
http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani
http://blog.raulkr.net | twitter: @raulvk <http://twitter.com/raulvk>

On Wed, Mar 13, 2013 at 9:18 PM, blueear <bl...@gmail.com> wrote:

> Hello everybody.
>
> I need create a copy of one specified queue and send messages to another
> broker or read its by a consumer. Mirrored queues mirror all queue. Can you
> help me?
>
> Blueear.
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/How-to-create-copy-of-one-queue-tp4664682.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>