File content missing in Copied File using Camel XML DSL

2014-04-25 Thread j_pramanik_ind
Hello All, I used following route in XML DSL. The requirement is to read file content , which is a line of string delimited by '~', depending on specific pattern of a token I need to copy the file to respective folder with full content. It copies the file but the content is found only that

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

2014-04-25 Thread Charles Moulliard
Hi Jayanta, As you split your file using the tilde separator before to call the content base router EIP pattern (choice/when), only each token resulting from the split will be saved under the destination file. Instead of splitting the content of your file, you should just use the CBR with the

Re: Camel-optaplanner

2014-04-25 Thread Kenneth
Hi, I did check out the unit tests and got a pretty good start. Yet I'm having some issues. 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:

AW: AW: Splitting list of elements in a message body..

2014-04-25 Thread jhm
Yes..there is a comma... The message that would be returned from a processor Call in the route would be like this: [Cat xmlns=http://www.openapplications.org/oagis/9; xmlns:lw=http://www.org/oagis/9; nameCat1/name /Cat, Dog xmlns=http://www.openapplications.org/oagis/9;

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 - *route id=route1 from

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 jayanta.prama...@gmail.com wrote: Hi Charles, Thanks for your reply. I changed my DSL as below but it didn't

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 http://pastebin.com/q7A55GDn ) and added a third route-c. Now the test routes look like this: Route-A:

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

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

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 camelContext 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

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: 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 --

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:

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: route

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] in

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 shreyas.puro...@hotmail.com wrote: Thanks for the reply.

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 dturnb...@opensourceconnections.com 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

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 no email

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

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 MR 2.6