camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Adding/Deleting queues at runtime
Date Sat, 15 May 2010 16:52:34 GMT
Hi

I have create a test which shows how this cane be done
http://svn.apache.org/viewvc?rev=944681&view=rev


On Thu, May 13, 2010 at 9:04 AM, mevikasg <mevikasg@gmail.com> wrote:
>
> Hi All,
>
> I am new in the Camel town.
>
> In my web application, an administrator can add/delete User (i.e.queue) at
> runtime.
>
> My objective is : An end-user of application can send message by selecting
> any user from Users list ( i.e. drop-down).
>
> Till now, i can send message from Controller to a queue like:
>
> sendMessage("activemq:queue:vikas", message)
>
> and can route it to consume the same as well like:
>
> from("activemq:queue:vikas").to("stream:out")
>
> Here, i have to hardcode the queue name i.e. "vikas".
>
> But, i need to make the queue name dynamic while consuming like:
>
> from("activemq:queue:${queueName}").to("stream:out")
>
> Please guide me.
>
> Thanks alot in advance.
>
>
>
> --
> View this message in context: http://old.nabble.com/Adding-Deleting-queues-at-runtime-tp28544404p28544404.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Mime
View raw message