Converting output of Camel Exec to String
I have a route where i execute a curl command using Camel exec, which returns a JSON as response. I try convert the JSON to XML using But i get an error about type conversion. This is my route XML, This is the error i get Error during type conversion from type: org.apache.camel.component.exec.ExecResult to the required type: java.lang.String with value org.apache.camel.component.exec.ExecResult@62a65066 due java.lang.NullPointerException: org.apache.camel.TypeConversionException: Error during type conversion from type: org.apache.camel.component.exec.ExecResult to the required type: java.lang.String with value org.apache.camel.component.exec.ExecResult@62a65066 due java.lang.NullPointerException Can anyone please let me know how to convert the output of exec command to String? -- View this message in context: http://camel.465427.n5.nabble.com/Converting-output-of-Camel-Exec-to-String-tp5771687.html Sent from the Camel - Users mailing list archive at Nabble.com.
out.body empty with CXF dataFormat=PAYLOAD
I have a simple route receiving soap request via cxf endpoint: How can I create message body for response? If I add a bean with following code: I'm still getting empty soap body: Even thou out body seems to be ok: I'm using java2wsdl cxf-codegen-plugin maven plugin. How can i tell camel to simply put this piece of message into webservice response? -- View this message in context: http://camel.465427.n5.nabble.com/out-body-empty-with-CXF-dataFormat-PAYLOAD-tp5771673.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Zookeeper Route Policy not respected on route with sftp consumer?
Hi Ah good to hear, though maybe the route policy could do this logic a bit earlier on route startup or something - though I havent looked if that would be possible. You are welcome to dive into the code. On Fri, Sep 18, 2015 at 10:59 PM, ablevine1wrote: > After further findings, it turns out that the route policy is respected. The > reason I thought it wasn't is because the route is not stopped on the > non-master servers until the first time the ftp consumer actually finds a > qualifying file to download. I was seeing logging from my filter code > running on all servers which led me to believe that the routes were actually > running on all servers. Once there is a qualifying file present, the route > actually runs and fails on all servers except the one to get the zookeeper > lock. The route is then stopped on all servers except the master and after > that, the filter logging only appears on the master. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Zookeeper-Route-Policy-not-respected-on-route-with-sftp-consumer-tp5771610p5771675.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2nd edition: https://www.manning.com/books/camel-in-action-second-edition
Re: Need help getting Camel ActiveMQComponent working in Tomcat web app
Your pojo class CamelSender must be created by spring so it can trigger the dependency injection. You may need to add a @Component or whatever the spring annotation is to mark a class for dependency injection. On Fri, Sep 18, 2015 at 9:24 PM, jcraw62wrote: > Claus, > > thank you for the prompt reply. So now I understand ProducerTemplate should > be instantiated via Spring. I've configured: > > > defaultEndpoint="activemq:start"/> > > > and still I do not get injection when I code: > > @Produce(uri = "activemq:start") > protected ProducerTemplate template; > public void sendToQueue(String name, String msg) { > for (int i = 0; i < 3; i++) { > template.sendBody("activemq:queue:" + name, msg); > } > } > > I see my configured beans in the app context but injection seems to fail > regardless of which bean I try to inject using different injection > annotations. > > I'm still conceptually missing something. > > Thanks. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Need-help-getting-Camel-ActiveMQComponent-working-in-Tomcat-web-app-tp5771612p5771672.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2nd edition: https://www.manning.com/books/camel-in-action-second-edition
Re: Can I config a JMS routing app w/multiple PlatformTransactionManagers?
Thanks, I'd been trying to set the transactionManager property on the JMS Component initially but still saw the exception. It was setting the transaction-policy on the route that finally fixed it. For those interested: -- View this message in context: http://camel.465427.n5.nabble.com/Can-I-config-a-JMS-routing-app-w-multiple-PlatformTransactionManagers-tp5771589p5771683.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Unit testing Fuse (Karaf) with camel implemented in blueprint (shortcoming 1)
If you are talking about inter-bundle dependencies, than it's not an unit test, right. What kind of issues do you face (details please). Best, Christian Am 18.09.2015 16:13 schrieb "ywang9009": > This is one of the 2 shortcoming I discovered with Fuse/Karaf > > I have been using Fuse for only 1 year. What I have encountered is it lacks > the ability to do unit testing because of inter-bundle dependencies. The > concept is great, or better than the monlithic WAR/EAR deployment. Maybe > someone else has figured out a way to do this. Please share. Thank you > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Unit-testing-Fuse-Karaf-with-camel-implemented-in-blueprint-shortcoming-1-tp5771641.html > Sent from the Camel - Users mailing list archive at Nabble.com. >
Re: rabbitMQ message forwarding from one queue to another
Facing which problem? Best, Christian Am 18.09.2015 13:20 schrieb "prajath": > Hi All, > could you please help me to resolve the problem I am facing when forwarding > message from one queue to another , please see the spring xml. > thanks in advance > prajath > http://camel.apache.org/schema/spring;> > > > uri="rabbitmq://localhost:5672/outBox?sername=guestpassword=guest" > /> > > > > > uri="rabbitmq://localhost:5672/inbox?username=guestpassword=guest" > /> > > uri="rabbitmq://localhost:5672/outBox?username=guestpassword=guest" /> > > > > > > ${body}Message at > ${date:now:-MM-dd HH:mm:ss} > > > uri="rabbitmq://localhost:5672/inbox?username=guestpassword=guest" /> > > > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/rabbitMQ-message-forwarding-from-one-queue-to-another-tp5771632.html > Sent from the Camel - Users mailing list archive at Nabble.com. >