Re: Camel Bindy problem with separator

2014-04-25 Thread zen
davsclaus wrote > This has been fixed in Camel 2.7. I even add your car unit test to trunk > and the test passes. > > I remember we fixed something about CSV delimiter in bindy, which must > have been in the 2.7 release. > > If you must use Camel 2.6 and JDK 1.5, then you can use the FuseSource M

Intermittent STUCK threads in Weblogic Server due to camel application

2014-04-25 Thread cmy
Hello, I am seeing intermittent stuck threads in Weblogic 11g Application Server in Production environment. We created a ticket with Weblogic team and they said that the issue is caused by org.apache.camel.processor.DelegateAsysncProcessor.process in the Web Service we developed. I am unable to rep

Problem sending email through routing, in Apache's Report Incident tutorial

2014-04-25 Thread reseal05
I am trying to write an Apache Camel route for sending email to myself: from("file://target/subfolder") .setHeader("subject", constant("new incident reported")) .convertBodyTo(String.class) // send the email .to("smtp://myID@localhost?password=&to=myn...@mycompany.com"); But I'm getting this, and

Re: Using AdviceWith not intercepting when I send real Files through

2014-04-25 Thread Claus Ibsen
On Fri, Apr 25, 2014 at 4:42 PM, Doug Turnbull wrote: > Hey Claus, > > Sorry for my late reply. It turns out that I was not setting > "isUsingAdviceWith" in my Camel tests to prevent the routes from starting > before my mocking. Here's a blog post with this and other discoveries > writing unit tes

Re: Simple interceptor code not working

2014-04-25 Thread Claus Ibsen
Hi A Camel user wrote a blog about his experience with advice with. Its worth to take a look http://www.opensourceconnections.com/2014/04/24/correctly-using-camels-advicewith-in-unit-tests/ On Fri, Apr 25, 2014 at 4:24 PM, shreyaspurohit wrote: > > Thanks for the reply. Other than testing, where

Re: Camel-optaplanner

2014-04-25 Thread Geoffrey De Smet
On 25-04-14 08:36, Kenneth wrote: When I add a termination to the solverConfig I get an error because of a missing dependency? Exception in thread "main" org.apache.camel.FailedToCreateRouteException: Failed to create route route1 at: >>> To[optaplanner:/com/kingfoo/camel1/solverConfig.xml] <<

Sending payload from http to jms...Camel.

2014-04-25 Thread npa
I am trying to have a camel route, which would accept a payload on a http endpoint and then write that payload to a JMS queue. The route that I have so far is below. But an empty message gets delivered to the jms queue. A message gets there, but it has no body. Heres the route: http

Re: Using AdviceWith not intercepting when I send real Files through

2014-04-25 Thread Doug Turnbull
Hey Claus, Sorry for my late reply. It turns out that I was not setting "isUsingAdviceWith" in my Camel tests to prevent the routes from starting before my mocking. Here's a blog post with this and other discoveries writing unit tests: http://www.opensourceconnections.com/2014/04/24/correctly-usi

Re: Simple interceptor code not working

2014-04-25 Thread shreyaspurohit
Thanks for the reply. Other than testing, where else is this useful in real life scenario, esp since it has to be in the same RouteBuilder? I was thinking of using this concept externally to modify existing route. Any idea how I can achieve that if not for interceptors? Thanks, Shreyas -- Vie

Re: File content missing in Copied File using Camel XML DSL

2014-04-25 Thread Charles Moulliard
I have created a unit test and the tests succeeded import org.apache.camel.Exchange; import org.apache.camel.impl.JndiRegistry; import org.apache.camel.test.junit4.LanguageTestSupport; import org.junit.Test; public class SimpleLanguageTest extends LanguageTestSupport { @Test public void

Re: File content missing in Copied File using Camel XML DSL

2014-04-25 Thread j_pramanik_ind
Hi Claus, My Camel version is 2.10. I have set streamCache="true" in . My objective is to check incoming file content for a specific parameter in the content string and accordingly I need to copy original source file to output folder. Two output folders are there : 'atm' and 'neft' Common rec

Re: Camel-optaplanner

2014-04-25 Thread Kenneth
So I got the most of it working and I,m now using the SimpleConsumer. But I’m not sure what needs to be in the bean and where it needs to go to get optaplanner to work -- View this message in context: http://camel.465427.n5.nabble.com/Camel-optaplanner-tp5750534p5750611.html Sent from the Camel

Re: How to send file

2014-04-25 Thread Aki Yoshida
when you using POST, you probably need to set the content-type header as well so that the server can interpret the data. you can find some examples in the online documentation of the file and http components and you can just combine the two segments of the configuration that fit to your requiremen

ActiveMQ-Component doesn't return breadcrumbId

2014-04-25 Thread Hude
Hello, I don't know if I'm using breadcrumbId wrong, but in my opinion there is something wrong in how breadcrumbId will handled. I've taken the MDCWithBreadcrumbTest ( Test in Pastebin ) and added a third route-c. Now the test routes look like this: Route-A: dire

Re: File content missing in Copied File using Camel XML DSL

2014-04-25 Thread Claus Ibsen
Try enable stream caching See this FAQ http://camel.apache.org/why-is-my-message-body-empty.html And btw what Camel version do you use? On Fri, Apr 25, 2014 at 9:21 AM, j_pramanik_ind wrote: > Hi Charles, > > Thanks for your reply. I changed my DSL as below but it didn't work as what > I need.

Re: File content missing in Copied File using Camel XML DSL

2014-04-25 Thread j_pramanik_ind
Hi Charles, Thanks for your reply. I changed my DSL as below but it didn't work as what I need. The file is not copied to target folder. Can you please suggest any other way - *