RE: NEWBIE: automatic queues creation

2011-12-28 Thread Narita Bagchi
You don't have to create queues manually. ~Narita From: mgiammarco [mgiamma...@gmail.com] Sent: Thursday, December 29, 2011 2:33 AM To: users@camel.apache.org Subject: NEWBIE: automatic queues creation A newbie question: when I create a context with jms qu

Re: NEWBIE: automatic queues creation

2011-12-28 Thread Willem Jiang
You need to start a JMS broker yourself, and tell Camel how to connect it. Camel does't ship the broker out of box. Beside that you don't need to any other thing to get the sample work. 2011/12/29, mgiammarco : > A newbie question: when I create a context with jms queues, web services and > other

Re: Netty for TCP communication

2011-12-28 Thread Willem Jiang
You can not pass an object instance throw the URI. That is why camel support to look up the instance through the registry with the bean id. On Thu Dec 29 08:38:30 2011, xiangqiuzhao wrote: can't use the encoder or decoder in URI? must use bean id ? i wan't to use Camel API only. how to ? -- Vi

Re: Does the FileConsumer swallow an exception by just only logging it?

2011-12-28 Thread alexey-s
Hi. I found the problem on one machine. After the execution of all processes, FileConsumer an error transferring the file to another directory. In my case was not closed input stream of the file. I think that this error should be identified during system testing, and not the pilot operation. Sendi

Re: Please explain better in-out

2011-12-28 Thread Willem Jiang
when you set the message exchange parten to be INOUT camel-jms proudcer will wait the response with a corralation id. You donot need to any other work to get the response. 2011/12/29, mgiammarco : > Hello, > Imagine that I have several clients that put messages on a jms queue managed > by Camel. N

Re: Camel JMS Request/Reply with Websphere

2011-12-28 Thread Mark Borner
Sorry, the logged error message stating 'temporary' was from when I was testing a temporary reply queue. The error message is the same if I used a fixed reply queue name. I have created Jira CAMEL-4839. Thanks, Mark Mark Borner Java Developer - ZStream Xpress From: Claus Ibsen To: users

Please explain better in-out

2011-12-28 Thread mgiammarco
Hello, Imagine that I have several clients that put messages on a jms queue managed by Camel. Now this queue is connected to a complex route that generates many messages as replies. Now I would like that each client (obviously) receives only its replies. I suppose I have to do it with in-out reques

NEWBIE: automatic queues creation

2011-12-28 Thread mgiammarco
A newbie question: when I create a context with jms queues, web services and other things, does Camel creates them or I have to create queues and other things manually (with spring for example)? Thanks, Mario -- View this message in context: http://camel.465427.n5.nabble.com/NEWBIE-automatic-que

Re: Using Zip dataformat

2011-12-28 Thread ebinsingh
Apologies anf thanks. But enabling Streamcache also did not solve the purpose. Sorry to bother you, but is there something wrong with the below code. Note: Input is a Large String. ${in.header.batchSize} == 2000

Re: Using Zip dataformat

2011-12-28 Thread Claus Ibsen
On Wed, Dec 28, 2011 at 4:12 PM, ebinsingh wrote: > Yes, but according to the Camel documentation, it says "Multicast will > implicitly cache streams to ensure that all the endpoints can access the > message content " > > http://camel.apache.org/stream-caching.html > See the section title, that i

Re: Using Zip dataformat

2011-12-28 Thread ebinsingh
Yes, but according to the Camel documentation, it says "Multicast will implicitly cache streams to ensure that all the endpoints can access the message content " http://camel.apache.org/stream-caching.html -- View this message in context: http://camel.465427.n5.nabble.com/Using-Zip-dataformat-

Re: Netty for TCP communication

2011-12-28 Thread Claus Ibsen
On Wed, Dec 28, 2011 at 2:50 PM, xiangqiuzhao wrote: > i had implements my Decoder named MessageDecoder. and use by > from("host:port?decoder=com.test.MessageDecoder"), but where i need to put > the class? Hi You need to use the # syntax to refer to a bean id, from the Registry, which is your cu

Re: Using Zip dataformat

2011-12-28 Thread Claus Ibsen
On Wed, Dec 28, 2011 at 3:52 PM, ebinsingh wrote: > I tried using the java DSL to compress file using zip and it did actually > compress these files. But I was not able to extract them. Looks like they > are compressed but not the same way as a normal zip file. > > What I am trying to do is someth

Re: Using Zip dataformat

2011-12-28 Thread ebinsingh
I tried using the java DSL to compress file using zip and it did actually compress these files. But I was not able to extract them. Looks like they are compressed but not the same way as a normal zip file. What I am trying to do is something different. The input is actually a large String and not

Re: Netty for TCP communication

2011-12-28 Thread xiangqiuzhao
i had implements my Decoder named MessageDecoder. and use by from("host:port?decoder=com.test.MessageDecoder"), but where i need to put the class? second, why need use decoders and encoders? if i need implements some decoder, why not to implements a big decoder? public class MessageDecoder extend

Out of Office AutoReply: Spring vs Java DSL

2011-12-28 Thread diwakar
Hi, I am on leave from 26th to 28th Dec. With Best Regards, Diwakar -- View this message in context: http://camel.465427.n5.nabble.com/Out-of-Office-AutoReply-Spring-vs-Java-DSL-tp5105277p5105277.html Sent from the Camel - Users mailing list archive at Nabble.com.

RE: Spring vs Java DSL

2011-12-28 Thread diwakar
Hi, Thanks for the example. I opened xml in Fuse IDE and "threads" is supported (in miscellaneous). The screenshot is attached http://camel.465427.n5.nabble.com/file/n5105275/threads.JPG threads.JPG . With Best Regards, Diwakar -- View this message in context: http:

Out of Office AutoReply: Spring vs Java DSL

2011-12-28 Thread diwakar
Hi, I am on leave from 26th to 28th Dec. With Best Regards, Diwakar -- View this message in context: http://camel.465427.n5.nabble.com/Out-of-Office-AutoReply-Spring-vs-Java-DSL-tp5105266p5105266.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Spring vs Java DSL

2011-12-28 Thread Christian Schneider
Am 28.12.2011 13:36, schrieb diwakar: Hi, >> do code assistance for you in the XML editor Did you mean Fuse IDE or any general purpose XML editor? (I was expecting support for threads DLS from Fuse IDE for Camel.) Please let me know your comment. With

Out of Office AutoReply: Spring vs Java DSL

2011-12-28 Thread diwakar
Hi, I am on leave from 26th to 28th Dec. With Best Regards, Diwakar -- View this message in context: http://camel.465427.n5.nabble.com/Out-of-Office-AutoReply-Spring-vs-Java-DSL-tp5105229p5105229.html Sent from the Camel - Users mailing list archive at Nabble.com.

RE: Spring vs Java DSL

2011-12-28 Thread Omar Atia
Dear Diwakar, Have a look for default profile threading :. http://camel.apache.org/threading-model.html Camel in action book has a section for thread EIP as well . Chapter 10/pools . Attach is XML spring as sample. Thanks, Omar Atia -Original Message- From: diwakar [mailto:diwakar.j..

Out of Office AutoReply: Spring vs Java DSL

2011-12-28 Thread diwakar
Hi, I am on leave from 26th to 28th Dec. With Best Regards, Diwakar -- View this message in context: http://camel.465427.n5.nabble.com/Out-of-Office-AutoReply-Spring-vs-Java-DSL-tp5105165p5105165.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Spring vs Java DSL

2011-12-28 Thread diwakar
Hi, >> do code assistance for you in the XML editor Did you mean Fuse IDE or any general purpose XML editor? (I was expecting support for threads DLS from Fuse IDE for Camel.) Please let me know your comment. With Best Regards, Diwakar -- View this message

Out of Office AutoReply: Spring vs Java DSL

2011-12-28 Thread diwakar
Hi, I am on leave from 26th to 28th Dec. With Best Regards, Diwakar -- View this message in context: http://camel.465427.n5.nabble.com/Out-of-Office-AutoReply-Spring-vs-Java-DSL-tp5105086p5105086.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Spring vs Java DSL

2011-12-28 Thread Claus Ibsen
On Wed, Dec 28, 2011 at 12:22 PM, diwakar wrote: > Hi, > >           Is "threads" DSL supported in Spring xml? >           How can the below code from http://camel.apache.org/async.html be > represented in xml? > from("jms:queue:order") >    .to("bean:validateOrder") >    .to("mock:validate") >  

Re: Spring vs Java DSL

2011-12-28 Thread diwakar
Hi, Is "threads" DSL supported in Spring xml? How can the below code from http://camel.apache.org/async.html be represented in xml? from("jms:queue:order") .to("bean:validateOrder") .to("mock:validate") .threads(20) // How can this be specified in XML? .unmar

Re: Camel CXFRS and multiple @QueryParam arguments

2011-12-28 Thread Willem Jiang
Hi Matt, The MessageContentsList is use the same parameter order as the method argument, I think you can count on it. You can inspect the CamelHttpQuery header at the same time to verify my suggestion, I don't think camel-cxfrs support the passer it as Map out of the box. On Tue Dec 27 22:52:

Re: Open Transaction is not working after aggregation strategy applying

2011-12-28 Thread Claus Ibsen
Hi You should view this as 2 transactions. The 1st is for messages flowing into the aggregator. The 2nd transactions if for message flowing out of the aggregator. The Spring TX manager does not support spanning transaction in multiple threads. It has to be done in the same thread. Then you can u

Re: Fill cache from SQL query

2011-12-28 Thread Claus Ibsen
On Tue, Dec 27, 2011 at 6:36 PM, guitarcarver wrote: > I want to extract data key/value data with an SQL query in a camel xml DSL > file and then use it later. > > My thermometer reading app use case is this: > > 1. Once (or periodically): select thermometer,lowvalue from Thermometers > 2. In Rout

Re: Using Zip dataformat

2011-12-28 Thread Claus Ibsen
The Zip data format does not support files. You need to use some specific API to work with files vs. non-files. There is a JIRA ticket to improve this AFAIR. On Tue, Dec 27, 2011 at 10:22 PM, ebinsingh wrote: > Hi, I am trying to use Zip / GZip data format to compress the output files > using S