Unmarshalling serialization fails with ClassNotFoundException

2015-06-17 Thread Gustav Sinder
Hi, I'm working on converting a flow (consists of 2 camel contexts) to use Amazon SQS instead of ActiveMQ (which worked just fine). Setup: File -> Camel context 1 -> AWS SQS -> Camel context 2 -> Databsae Connectivity isn't an issue but I need to marshal/unmarshal the messages using base64 sinc

Re: Apache Camel Routing and Apache CXF Rest with Proxy

2015-06-17 Thread Aki Yoshida
1. If it is a cxf's jaxrs service, you can use the cxf-bean component to directly call that service. http://camel.apache.org/cxf-bean-component.html 2. you can just add your headers as Camel headers in the route using setHeader By the way, you don't need to add dev for usage questions. 2015-06-

Intercepting Bindy setter actions

2015-06-17 Thread Giorgio Vespucci
Hi everybody :) I'm wondering how Bindy is setting values from a CSV file to Java fields. It looks that it's not using setter methods the POJO exposes. Is there a way to intercept Bindy setter actions, so that an additional behavior could be executed? I'm using Camel 2.14.3. Best regards and tha

Re: Intercepting Bindy setter actions

2015-06-17 Thread Claus Ibsen
Hi Sorry but I would refer to looking at the source code. But yeah ideally it should use setter over direct fields if possible. But the source code will tell what it does today. On Wed, Jun 17, 2015 at 12:01 PM, Giorgio Vespucci wrote: > Hi everybody :) > I'm wondering how Bindy is setting valu

Re: Intercepting Bindy setter actions

2015-06-17 Thread Giorgio Vespucci
Thank you for the hint Claus Indeed I found the following sentences in the source code: // Get Field to be setted Field field = annotatedFields.get(pos); field.setAccessible(true); [...] field.set(modelField, value); Then it would mean today it definitively uses reflection. On Wed, Jun 17, 20

Re: Intercepting Bindy setter actions

2015-06-17 Thread Claus Ibsen
Yeah there is some ReflectionHelper in camel-core it could reuse instead, then we could add logic for checking for setter first and use that, and if not fallback on direct fields. On Wed, Jun 17, 2015 at 2:04 PM, Giorgio Vespucci wrote: > Thank you for the hint Claus > Indeed I found the follo

Hexadecimal converter

2015-06-17 Thread sobha
I need to convert hexadecimal payload to a structured xml. How to convert by reading each byte is in another xml rule. also some of the fields might involve hexadecimal to binary , decimal etc . so say a hexidecimal payload is 456757585930. so it shud be converted to 6745 * 5857 * 000

Rest DSL URI template wildcards?

2015-06-17 Thread swissSteve
Hi, I'm using the Java DSL to define a REST endpoint and I have a use case where I'd like to specify a wildcard for the verb URI template i.e ..*: rest("/api/now/v1/").description("APIProxy").bindingMode(RestBindingMode.off).produces("application/xml") .get("..*").to("direct:invokeApi") Can this

Re: Rest DSL URI template wildcards?

2015-06-17 Thread Claus Ibsen
Hi No well it depends on what underlying component you use. If you use camel-spark-java then it support * as wildcard. For jetty you can likely set its component / endpoint option matchOnUriPrefix=true which is its "weird name" for wildcard. But the * in the get is not understood by jetty. Thoug

Re: Rest DSL URI template wildcards?

2015-06-17 Thread swissSteve
Brilliant, just what I need. Thanks Claus! -- View this message in context: http://camel.465427.n5.nabble.com/Rest-DSL-URI-template-wildcards-tp5768332p5768336.html Sent from the Camel - Users mailing list archive at Nabble.com.

org.apache.camel.FailedToCreateRouteException: Failed to create route with SNMP component

2015-06-17 Thread jspyeatt
I'm using Camel 2.15.2 and suddenly find that context.addRoutes() is throwing the following exception. org.apache.camel.FailedToCreateRouteException: Failed to create route SNMPPoll:udp:172.30.227.153:1.3.6.1.4.1.17491.1.1.2.1.2.201: Route(SNMPPoll:udp:172.30.227.153:1.3.6.1.4.1.17491.1.1.2.1

2.15 - Can we configure endpoint using bean property style in blueprint?

2015-06-17 Thread mabady
Hi, Is this supposed to work in blueprint.xml? ftp://foo@myserver";> ... -- View this message in context: http://camel.465427.n5.nabble.com/2-15-Can-we-configure-endpoint-using-bean-property-style-in-blueprint-tp5768342.html Sent from the Camel - U

Camel-Stomp: how to do durable topic subscription?

2015-06-17 Thread SchlauFuchs
Hello, I can't see a way to configure the stomp endpoint to give me a durable topic subscription? Cheers, Kai -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Stomp-how-to-do-durable-topic-subscription-tp5768343.html Sent from the Camel - Users mailing list archive at

Re: 2.15 - Can we configure endpoint using bean property style in blueprint?

2015-06-17 Thread Claus Ibsen
Hi Yeah there is a test here https://github.com/apache/camel/blob/master/components/camel-test-blueprint/src/test/resources/org/apache/camel/test/blueprint/EndpointPropertyTest.xml On Wed, Jun 17, 2015 at 9:51 PM, mabady wrote: > Hi, > Is this supposed to work in blueprint.xml? > > >ftp://f

Re: Camel-Stomp: how to do durable topic subscription?

2015-06-17 Thread contactreji
Refer http://activemq.apache.org/stomp.html - Reji Mathews Sr. Developer - Middleware Integration / SOA ( Open Source - Apache Camel & Jboss Fuse ESB | Mule ESB ) LinkedIn - http://in.linkedin.com/pub/reji-mathews/31/9a2/40a Twitter - reji_mathews -- View this message in context: http://ca

Re: Camel-Stomp: how to do durable topic subscription?

2015-06-17 Thread SchlauFuchs
My fault, I didn't mention that I have read that page there and didn't find the answer I need Cheers Kai On Thu, Jun 18, 2015, 18:19 contactreji [via Camel] < ml-node+s465427n5768345...@n5.nabble.com> wrote: > Refer http://activemq.apache.org/stomp.html > Reji Mathews > Sr. Developer - Middlewar