Re: Simple Not Evaluating Complex Exression
Hi I have an issue that iam not able to embed recipient list inside choice. I have scenario to call recipientlist1 if some condition is true and recipientlist2 if the condition is false.How to achieve this? -- View this message in context: http://camel.465427.n5.nabble.com/Simple-Not-Evaluating-Complex-Exression-tp5715408p5773366.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Simple Not Evaluating Complex Exression
Thanks clas.It works -- View this message in context: http://camel.465427.n5.nabble.com/Simple-Not-Evaluating-Complex-Exression-tp5715408p5773365.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: How to access payload from REST 404 reply in cxfrs?
Thank you for the idea, Kalyan, but that didn’t work. Is it true that there’s no access to the payload one it’s touched? I can see the payload if no exception is thrown (e.g., a normal 200 response). Thanks, -Steve > On Nov 3, 2015, at 1:56 AM, calyan.bandi wrote: > > Hi, > > I am not sure if its works, but you can try enabling the option streamCache > on the route from which the web service is invoked. When using cxfrs > component with trace/debug enabled the payload (stream) received from server > is flushed once it is displayed - be it in logs or in your application. In > order to preserve it you can enable stream caching on the route. > > Thanks, > Kalyan > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/How-to-access-payload-from-REST-404-reply-in-cxfrs-tp5773325p5773336.html > Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Rest DSL Jetty multiple handlers causes java.lang.StackOverflowError
FYI as a workaround to this issue, I put the securityHandler in the restConfiguration and simply added an empty route with the other handler to my camel context: http://localhost:8080?handlers=jettyRequestLog"/> -- View this message in context: http://camel.465427.n5.nabble.com/Rest-DSL-Jetty-multiple-handlers-causes-java-lang-StackOverflowError-tp5772952p5773363.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Can Camel VM be used in Karaf cross contexts in different bundles?
Take a look at direct-vm http://camel.apache.org/direct-vm.html Thanks, *Chris Odom | Sr Consultant | Media Driver* 512.799.0270 | chris.o...@mediadriver.com 810 Hester's Crossing, Suite 165, Round Rock, TX 78681 On Tue, Nov 3, 2015 at 12:40 PM, bocamel wrote: > I am running a few bundles in Karaf, each has its own Camel context. I > tried > to use VM to communicate between them, i.e. one bundle (B1) is a producer > to > a VM endpoint, and another (B2) is the consumer of the VM endpoint. In the > Camel route in B2, the route first tests a properties value in a . > I received an error saying that the property was not defined (even though > it > is defined in B2). After I repeated its definition in B1 as well, that > error went away. Now it complains that some of the bean > injected/referenced > in the vm route is not defined (though it is defined in B2's > camel-context.xml). > > So my question is, when using vm across Camel contexts, do we have to > define > all the properties, beans (that are used by the consumer) on the producer > side as well? I am running this in Karaf 4.0.2, with Camel 2.15.2. Any > insight would be greatly appreciated. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Can-Camel-VM-be-used-in-Karaf-cross-contexts-in-different-bundles-tp5773359.html > Sent from the Camel - Users mailing list archive at Nabble.com. >
Re: Camel 2.16 Spring 3.x support
Yeah I think it should, but there may be some camel spring components that may require spring 4.x such as spring integration, spring boot and others. But for OSGi users on Karaf then its using spring 3.x for spring-dm to work. And we have an integration test that uses spring 3.2.x. On Tue, Nov 3, 2015 at 7:11 PM, Lowell wrote: > Will came 2.16 run correctly using Spring 3.x? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-2-16-Spring-3-x-support-tp5773358.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
Can Camel VM be used in Karaf cross contexts in different bundles?
I am running a few bundles in Karaf, each has its own Camel context. I tried to use VM to communicate between them, i.e. one bundle (B1) is a producer to a VM endpoint, and another (B2) is the consumer of the VM endpoint. In the Camel route in B2, the route first tests a properties value in a . I received an error saying that the property was not defined (even though it is defined in B2). After I repeated its definition in B1 as well, that error went away. Now it complains that some of the bean injected/referenced in the vm route is not defined (though it is defined in B2's camel-context.xml). So my question is, when using vm across Camel contexts, do we have to define all the properties, beans (that are used by the consumer) on the producer side as well? I am running this in Karaf 4.0.2, with Camel 2.15.2. Any insight would be greatly appreciated. -- View this message in context: http://camel.465427.n5.nabble.com/Can-Camel-VM-be-used-in-Karaf-cross-contexts-in-different-bundles-tp5773359.html Sent from the Camel - Users mailing list archive at Nabble.com.
Camel 2.16 Spring 3.x support
Will came 2.16 run correctly using Spring 3.x? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-2-16-Spring-3-x-support-tp5773358.html Sent from the Camel - Users mailing list archive at Nabble.com.
Rest with restlet works within eclipse but fails on command line
I created a little camel app that creates some rest endpoints. If i run the main method from within eclipse all is fine: [main] INFO org.apache.camel.impl.DefaultCamelContext - Route: route3 started and consuming from: Endpoint[http://localhost:8082/hello/(para)?restletMethods=GET] [main] INFO org.apache.camel.impl.DefaultCamelContext - Route: route4 started and consuming from: Endpoint[http://localhost:8082/count?restletMethods=GET] [main] INFO org.apache.camel.impl.DefaultCamelContext - Route: route5 started and consuming from: Endpoint[http://localhost:8082/delete?restletMethods=GET] but if i run the main method from cli (jar with dependencies) i get this exception: Exception in thread "main" org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: restlet://http://localhost:8082/hello/%7Bpara%7D?restletMethod=GET due to: Could not find a suitable setter for property: restletMethod as there isn't a setter method with same type: java.lang.String nor type conversion possible: No type converter available to convert from type: java.lang.String to the required type: org.restlet.data.Method with value GET ... Caused by: java.lang.IllegalArgumentException: Could not find a suitable setter for property: restletMethod as there isn't a setter method with same type: java.lang.String nor type conversion possible: No type converter available to convert from type: java.lang.String to the required type: org.restlet.data.Method with value GET What could possibly went wrong here? -- View this message in context: http://camel.465427.n5.nabble.com/Rest-with-restlet-works-within-eclipse-but-fails-on-command-line-tp5773357.html Sent from the Camel - Users mailing list archive at Nabble.com.
Converting camel project getting error
We have an application written with camel v1.5 running on Tomcatyes this is very old. The app has a constant listener on a given port that will process requests with services. After receiving data from the service, it will return the data to the original sender...somehow (this is my question). This works today. We are removing the Tomcat server and moving the application onto websphere 8.5 restructuring the app into an ear file to run/listen. We've been able to successfully do this and the app gets the messages, processes, then however something breaks and nothing gets sent back to the client. Here's a sample system.out 007b DefaultCamelC I org.apache.camel.impl.DefaultCamelContext JMX enabled. Using InstrumentationLifecycleStrategy. 007b AnnotationTyp I org.apache.camel.impl.converter.AnnotationTypeConverterLoader Using WebSphere specific ResolverUtil 007b MinaConsumer I org.apache.camel.component.mina.MinaConsumer doStart Binding to server address: /0.0.0.0:2998 using acceptor: org.apache.mina.transport.socket.nio.SocketAcceptor@e55475e 009e MinaConsumer$ I org.apache.mina.util.SessionLog info [/123.92:58118] CREATED 009f MinaConsumer$ I org.apache.mina.util.SessionLog info [/123.16.238.92:58118] OPENED 00a0 MinaConsumer$ I org.apache.mina.util.SessionLog info [/123.16.238.92:58118] RECEIVED: the request data in hex] 00a0 DefaultTypeCo W org.apache.camel.impl.converter.DefaultTypeConverter addTypeConverter Overriding type converter from: StaticMethodTypeConverter: public static java.lang.String org.apache.camel.converter.IOConverter.toString(javax.xml.transform.Source) throws javax.xml.transform.TransformerException,java.io.IOException to: InstanceMethodTypeConverter: public java.lang.String org.apache.camel.converter.jaxp.XmlConverter.toString(javax.xml.transform.Source) throws javax.xml.transform.TransformerException 00a0 SystemOut O Executing http POST method: https://blah.blah 00a0 SystemOut O Http responseCode: 200 00a0 SystemOut O Html response buffer: HeapBuffer[pos=0 lim=4584 cap=4584: lots of hex in here to be returned] 00a0 MinaConsumer$ I org.apache.mina.util.SessionLog info [/123.16.238.92:58118] CLOSED 00a0 MinaConsumer$ W org.apache.mina.util.SessionLog warn [/123.16.238.92:58118] Unexpected exception from exceptionCaught handler. org.apache.camel.CamelException: org.apache.camel.CamelExchangeException: Could not write body on the exchange: Exchange[Message: lots of hex data in here] at org.apache.camel.component.mina.MinaConsumer$ReceiveHandler.exceptionCaught(MinaConsumer.java:88) at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.exceptionCaught(AbstractIoFilterChain.java:564) at org.apache.mina.common.support.AbstractIoFilterChain.callNextExceptionCaught(AbstractIoFilterChain.java:345) at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:53) at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.exceptionCaught(AbstractIoFilterChain.java:643) at org.apache.mina.common.IoFilterAdapter.exceptionCaught(IoFilterAdapter.java:75) at org.apache.mina.common.support.AbstractIoFilterChain.callNextExceptionCaught(AbstractIoFilterChain.java:345) at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:53) at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.exceptionCaught(AbstractIoFilterChain.java:643) at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:224) at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(ExecutorFilter.java:264) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51) at java.lang.Thread.run(Thread.java:790) -- View this message in context: http://camel.465427.n5.nabble.com/Converting-camel-project-getting-error-tp5773352.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: How to read XML Payload
Hi, Have you taken a look at the XPath splitter by any chance? Cheers! wt., 3.11.2015 o 12:31 użytkownik calyan.bandi napisał: > Hi, > > Could someone please provide me the syntax for reading the XML payload with > only the relevant tags. My input XML contains data as below: > > > > ... > > > > > > > > > > > > > > > I need to split the input XML and do custom processing for each individual > customer. The XML after splitting should look as below i.e., from the > entire > XML i should split only the 'customer' tags contained in the Body and the > non-body tags should remain untouched and added to the output XML. > > > > ... > > > > > > > > > > Any thoughts, please share. > > Thanks, > Kalyan > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/How-to-read-XML-Payload-tp5773337.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Henryk Konsek http://about.me/hekonsek
How to improve throughput by grouping messages in a Transaction
All, I have a simple bridge between ActiveMQ and TibcoEMS. There are 2 routes. 1st Route moves messages into ActiveMQ Queue. (thisroute reads messages from Disk and publishes to ActiveMQ). 2nd Route consumes messages from ActiveMQ and publish to a Topic in TibcoEMS. For both the routes, because of limitations, I can use only one thread. i.e. one thread publishing to ActiveMQ, one thread consuming from ActivemQ and publishig to TIBCO EMS. In JMSTemplate I have set sessionTransacted is set to True (to enable redelivery in case of exception thrown) In each transaction I am moving one message via bridge. I want to know how can I group a bunch of messages in each transaction? and receive a single ACK for that group of messages? This way I can increase the throughput (since I will be sending bulk of messages instead of one message in a Transaction) regards D -- View this message in context: http://camel.465427.n5.nabble.com/How-to-improve-throughput-by-grouping-messages-in-a-Transaction-tp5773344.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: How to access payload from REST 404 reply in cxfrs?
Hi, I am not sure if its works, but you can try enabling the option streamCache on the route from which the web service is invoked. When using cxfrs component with trace/debug enabled the payload (stream) received from server is flushed once it is displayed - be it in logs or in your application. In order to preserve it you can enable stream caching on the route. Thanks, Kalyan -- View this message in context: http://camel.465427.n5.nabble.com/How-to-access-payload-from-REST-404-reply-in-cxfrs-tp5773325p5773336.html Sent from the Camel - Users mailing list archive at Nabble.com.
How to read XML Payload
Hi, Could someone please provide me the syntax for reading the XML payload with only the relevant tags. My input XML contains data as below: ... I need to split the input XML and do custom processing for each individual customer. The XML after splitting should look as below i.e., from the entire XML i should split only the 'customer' tags contained in the Body and the non-body tags should remain untouched and added to the output XML. ... Any thoughts, please share. Thanks, Kalyan -- View this message in context: http://camel.465427.n5.nabble.com/How-to-read-XML-Payload-tp5773337.html Sent from the Camel - Users mailing list archive at Nabble.com.
RE: javax.net.ssl.SSLException: hostname in certificate didn't match
Hi, However you should NEVER do this with a productive scenario as this setting will allow Man-in-the-middle attacks to your HTTPS communication. The root cause for the issue is that the hostname in the server certificate does not match the URL you are calling (from the error message I would guess that the certificate contains a hostname and you use an IP address). You should try to use the hostname in the URL, then this issue should go away even when using a proper hostname verifier. Best regards Stephan -Original Message- From: ramnar [mailto:raam.s...@gmail.com] Sent: Dienstag, 3. November 2015 10:11 To: users@camel.apache.org Subject: Re: javax.net.ssl.SSLException: hostname in certificate didn't match Hi Use the http component to allow all hosts like the following httpcomponent.setX509HostnameVerifier(new AllowAllHostnameVerifier()); -- View this message in context: http://camel.465427.n5.nabble.com/javax-net-ssl-SSLException-hostname-in-certificate-didn-t-match-tp5754018p5773339.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: javax.net.ssl.SSLException: hostname in certificate didn't match
Hi Use the http component to allow all hosts like the following httpcomponent.setX509HostnameVerifier(new AllowAllHostnameVerifier()); -- View this message in context: http://camel.465427.n5.nabble.com/javax-net-ssl-SSLException-hostname-in-certificate-didn-t-match-tp5754018p5773339.html Sent from the Camel - Users mailing list archive at Nabble.com.
RE: Characters getting escaped when read from properties file
Beautiful, that did the trick. Thanks! Thanks /Gustav -Original Message- From: Hans Orbaan [mailto:hans.orb...@docdata.eu] Sent: den 2 november 2015 15:52 To: users@camel.apache.org Subject: RE: Characters getting escaped when read from properties file Hi, Use: RAW(yourPassword) See: http://camel.apache.org/configuring-camel.html With kind regards -Oorspronkelijk bericht- Van: Gustav Sinder [mailto:gustav.sin...@ferrologic.se] Verzonden: Monday 2 November 2015 14:46 Aan: users@camel.apache.org Onderwerp: Characters getting escaped when read from properties file Hi, I've got a password in a properties file configured as (simplified): password=H+r/GbP8 The properties file is refered to in the blueprint as: The property is used for a bean with: The password is read from the file but as "H+r%2FGbP8" (encoded) How could I get the literal value from the properties file? If that's not possible, how do I properly escape the forward slash in the value? I've tried backslash, double backslash and so on without any success. Thanks /Gustav