Question regarding Using Thread.Sleep()

2011-08-29 Thread shekher.awasthi
Hi All, While working with Camel things are going find but have a doubt about using Thread.sleep() I have the following code public void executeRoute(String routeName) throws Exception{ resetStatus(); camelContext.startRoute(routeName); Thread.

Re: Filtering of mbeans in mbean server of camel

2011-08-29 Thread Sachin
Thanks for the reply. I will try both the options. Hope it works -- View this message in context: http://camel.465427.n5.nabble.com/Filtering-of-mbeans-in-mbean-server-of-camel-tp4726520p4748940.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Embedded Broker, Trying to Load Camel

2011-08-29 Thread sub3
Thanks for all the suggestions. I am still having issues, but I think I have a work around. Is it true I could just start it up (like below) and this will have the same effect as using the config file? I will be creating all the routes from within code, so are there any disadvantages? > BrokerS

RE: FTP is not polling the files

2011-08-29 Thread jdpatil
Thanks for the response. I am using camel 2.5 and it does not have stepwise option. I tried setting passiveMode and binary but it didn’t help. I am fairly new to Camel so can you please tell me how to enable the debug logging on the camel ftp and file components? From: Claus Ibsen-2 [via Camel]

Re: How to stop all Exchanges based on criteria like header value?

2011-08-29 Thread Andre Piwoni
Don, Let me re-state your suggestion because I'm not sure I've got it right. (1) Add Processor that creates header "StopFlag". I assume you refer to Processor that handles/consumes requests to stop specific instance of a job based on desired conditions and not the interceptor processor wrapped

What are the differences between using preMove and readLock=rename

2011-08-29 Thread bbuzzard
Both of these functions seem like they are doing basically the same thing. What are the advantages and disadvantages of using one method verses the other? -- View this message in context: http://camel.465427.n5.nabble.com/What-are-the-differences-between-using-preMove-and-readLock-rename-tp474

Re: AWS-Component (S3) => Best way to set the CamelAwsS3Key Header?

2011-08-29 Thread Brendan Long
It doesn't look like there is an automatic way of setting the S3 key, so I'm not sure why it worked the first time. I think what you're trying to do would be this: Message in = exchange.getIn(); in.setHeader(S3Constants.KEY, in.getHeader(Exchange.FILE_NAME)); On 2011-08-29 11:11 AM, megachucky w

AWS-Component (S3) => Best way to set the CamelAwsS3Key Header?

2011-08-29 Thread megachucky
Hello. Again a question about the AWS component (S3). What is the best way to set the CamelAwsS3Key header? I did it this way: from("file:files/inbox").setHeader(S3Constants.KEY, simple("Static Key"))... The test in the source code does this: Exchange exchange = template.send("direc

Re: How much mule suits for split with TTL?

2011-08-29 Thread Vitaliy Semochkin
Hello Mathieu, Some clients are in Python and some are in 1C (proprietary system popular in Russia). The last one is the main problem :-) Thank you for response I'll have a look on ActiveMQ + Camel for this problem, for 1C we will probably write a Com object in .NET. On Mon, Aug 29, 2011 at 2:59

Re: Problem with AWS-Component => accessKey + secretKey Parameters not working

2011-08-29 Thread megachucky
Thank you Brendan, I was not aware of this "+" issue... Best regards, Kai -- View this message in context: http://camel.465427.n5.nabble.com/Problem-with-AWS-Component-accessKey-secretKey-Parameters-not-working-tp4745604p4746719.html Sent from the Camel - Users mailing list archive at Nabble.c

Re: Problem with AWS-Component => accessKey + secretKey Parameters not working

2011-08-29 Thread Brendan Long
You'll need to URL encode any +'s in your secret key (otherwise, they'll be treated as spaces). + = %2B, so if your secretkey was "my+secret\key", your Camel URL should have "secretKey=my%2Bsecret\key". "Within the query string, the plus sign is reserved as shorthand notation for a space. Therefor

Re: Does onException not support multiple statements?

2011-08-29 Thread koseki nonuyuki
Hi, I encountered the same trouble when I got SOAP fault. The first processor in the onException route, I put "exchange.getOut().setBody(null)" , then multiple process worked. When onException route received SOAP fault, the outMessage already contains Exception info, that cause another Exception

Re: redeliveryPolicyProfile and onException@redeliveryPolicyRef

2011-08-29 Thread RavshanKos
Mon 29-Aug-2011 12:11:40.914 [main] WARN [o.a.c.p.UnitOfWorkProcessor] Caught unhandled exception while processing ExchangeId: ID-dblonws21776-4923-1314605498726-0-1 java.lang.IllegalArgumentException: Defensive copy of Exchange is null must be specified on: DeadLetterChannel[Debug[TraceIntercepto

RE: How much mule suits for split with TTL?

2011-08-29 Thread Mathieu Lalonde
Hello Vitaly, In what languages are the recipient apps written?   ActiveMQ has clients for many languages.  Also, it supports a text based protocol (STOMP) which makes it easy to write your own client if needed. http://activemq.apache.org/ http://activemq.apache.org/stomp.html http://activemq.

Re: 答复: How to test routes in exported OSGI bundles using Camel Test Framework

2011-08-29 Thread Willem Jiang
You can get the mock endpoint from camel context. If you want to replace it with real component with mock enpdoint, you may need to change the route yourself. On 8/29/11 11:22 AM, XiaoPeng Li wrote: Hi Jiang Thanks for your reply. Sorry about the unclear description. I mean someone has fini

Re: Socket-based Asynchronous Calls...

2011-08-29 Thread James Carman
I am a commons committer so don't think it hasn't crossed my mind. :) On Aug 28, 2011 11:48 PM, "Claus Ibsen" wrote: > On Sat, Aug 27, 2011 at 10:19 AM, James Carman > wrote: >> Well, I can tell you that it certainly didn't seem to work the way I >> need it to work. I need a persistent connectio

答复: Problem when using Camel Load Balancer

2011-08-29 Thread XiaoPeng Li
Hi Claus Ibsen, According to you, the codes should be to("idempotentConsumer ...").to("direct:c ").to("direct:d "); However, I want to("idempotentConsumer ...").to("direct:c ").end().to("direct:d "); It seems there are different understandings in load balancer component. Thanks Xiaopeng Li --

Problem with AWS-Component => accessKey + secretKey Parameters not working

2011-08-29 Thread megachucky
Hello, I am playing around with the Camel AWS component. The problems exist for SQS and S3, same problem! Everything works fine if I use the AmazonSQSClient as it is used in the source code of the aws component tests: @Test public void testFileToAmazonSQSToFileRoute() throws Exception {

Re: How much mule suits for split with TTL?

2011-08-29 Thread Vitaliy Semochkin
Hello Mathieu, Thank you very much for fast reply. My problem is the actual recipients are not written in java (most of them). For java we can use jms and if they all be in java i'd use activemq and that will be all i needed. But we have to integrate recipients which include an application whic

Re: Problem when using Camel Load Balancer

2011-08-29 Thread Claus Ibsen
On Mon, Aug 29, 2011 at 10:39 AM, XiaoPeng Li wrote: > Hi > > Here is a piece of CamelContext Spring XML: > >         >             >             >                 >                 >                 >                    ${'sss'} >                     >                 >                 >        

Problem when using Camel Load Balancer

2011-08-29 Thread XiaoPeng Li
Hi Here is a piece of CamelContext Spring XML: ${'sss'} I got a problem in load balancer, about the

An improved Simple Language on the way - Any feedback

2011-08-29 Thread Claus Ibsen
Hi If you have been using the simple language with Camel http://camel.apache.org/simple Then we, the Camel team, would like to hear any feedback you may have about this language. - Do you see something missing? - Did you have trouble getting the syntax correct and have the language do as expected