Hi And you got camel-stream.jar on the classpath? You can try with some other component, eg log which is part of camel-core.
Or use Tracer to see how messages is routed at runtime http://camel.apache.org/tracer On Tue, May 18, 2010 at 10:35 AM, mevikasg <[email protected]> wrote: > > Hi Clan, > > Thanks for the prompt reply. > > I tried it worked partially as well. > > Now, i can send / receive the messages. Infact, the enqueue/ dequeue count > of the respective queues are getting updated as well. > > But, i am unable to print the message on Console while consuming. > > My Controller's code to send message is: > > sendMessage("activemq:queue:${queueName}",params.message) > > and, to consume (invoking separate event on user's request): > > CamelJMSToFileExample c = new CamelJMSToFileExample(); > > c.setup(); > > c.consumeMessage(queuesInstance.name); > > c.windUpContext(); > > http://old.nabble.com/file/p28593005/CamelJMSToFileExample.java > CamelJMSToFileExample.java > > Please guide me, if i am missing something. > > > > > Claus Ibsen-2 wrote: >> >> 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 <[email protected]> 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 >> >> > > -- > View this message in context: > http://old.nabble.com/Adding-Deleting-queues-at-runtime-tp28544404p28593005.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
