Re: Issues with cxfrs using json

2014-03-31 Thread Sergey Beryozkin
Hi, If you need CXF help converting the data into POJO then add DeltaRequestPOJO into the signature, instead of String/InputStream. This will work assuming a JAX-RS JSON provider is registered with the endpoint. Otherwise, if you prefer it done at the Camel level, then I guess you will need to s

Re: whenAnyExchangeReceived is never called

2014-03-31 Thread Olaf
template.sendBody("direct:in", body); was called before mock assertions definitions. -- View this message in context: http://camel.465427.n5.nabble.com/whenAnyExchangeReceived-is-never-called-tp5749491p5749558.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Issues with cxfrs using json

2014-03-31 Thread Raul Kripalani
Exactly. Currently you are telling Camel that you want a String. That's why you're not getting a POJO. *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Open Source Integration specialist http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani http://blo

org.xml.sax.SAXParseEException: schema_reference.4: Failed to read schema document

2014-03-31 Thread ramana
org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://camel.apache.org/schema/spring/camel-spring.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not . org.springframework.beans.factory.xml

how set dynamic header values

2014-03-31 Thread Olaf
Hello! what is the correct way to set dynamic header values? I often need to set value concatenated form a prefix and xpath result. But it seems not work; setHeader("ISBN", getMyGetter() + ns.xpath("c:book/isbn", String.class)) So as workaround I do> .setHeader("ISBNValue", ns.xpath("c:book/isb

Re: Camel AWS-DDB scan/query

2014-03-31 Thread dev1
And another question - is is possible to search only by Hash Key? Thanks, Patty -- View this message in context: http://camel.465427.n5.nabble.com/Camel-AWS-DDB-scan-query-tp5749255p5749564.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel, concurrent consumers, message groups and prefetch size

2014-03-31 Thread Claus Ibsen
Hi I suggest to check the AMQ docs, and ask on their user forum as the questions is more AMQ specific than Camel. There is also some people who have blogged about AMQ you can find valuable information form, such as blogs from Torsten Mielke and Christian Posta. On Fri, Mar 28, 2014 at 6:06 PM,

Re: add SAML TOKEN to SOAP header

2014-03-31 Thread Colm O hEigeartaigh
When you are inserting the SAML token, do you also need to create it, or is it obtained from a third-party (e.g. STS)? SAML tokens are included in the security header of a SOAP request. With CXF you can use either WS-SecurityPolicy or else manually configure WSS4J to add a SAML Token. In either cas

What are your Camel Best Practices?

2014-03-31 Thread Max Bridgewater
Hey Guys, I am just wondering what your best practices are. Despite the marvelous job in "Apache Camel Developer's Cookbook", and in http://camel.apache.org/cookbook.html, there are still things that one comes up with that simplify one's life wi

Re: Issues with cxfrs using json

2014-03-31 Thread akcameluser
Hi Just a brief comment. I wonder why people would expose a REST service through Camel Route? camel-http (jetty) would do the Job of exposing an HTTP endpoint. You will have to do the serialization and deserialization of JSON yourself, but much simpler way of exposing the endpoint. If you are loo

Re: Issues with cxfrs using json

2014-03-31 Thread Sergey Beryozkin
On 31/03/14 16:24, akcameluser wrote: Hi Just a brief comment. I wonder why people would expose a REST service through Camel Route? camel-http (jetty) would do the Job of exposing an HTTP endpoint. You will have to do the serialization and deserialization of JSON yourself, but much simpler way o

Re: Issues with cxfrs using json

2014-03-31 Thread Raul Kripalani
It depends on what you're exposing the endpoint for. If the REST endpoint is a gateway to a business process / service orchestration / aggregation / scatter-gather / etc. (replace with any kind of EIP or combination of EIPs), speaking to 10+ systems over different protocols (SOAP, plain HTTP, JMS,

Howto delete file from FTP-Endpoint direct

2014-03-31 Thread eddi
Hi, How I can send direct a file operation to the File-/FTP-Endpoint? How I can delete Files over FileEndpointProducer? I can create/change Files easy. I not find a Way to delete only a created Files. Inside my Example is the last Route, but can not delete the "fromJetty.txt" File. Best Rega

Re: WSS4JInInterceptor: The signature or decryption was invalid

2014-03-31 Thread Colm O hEigeartaigh
Ok I've looked into it. It appears to be a bug in SOAP UI, where it is digesting only the reference to the attachment in the SOAP Body, even though it is actually sending the correctly inlined attachment. For example, from the logs: http://schemas.xmlsoap.org/soap/envelope/"; xmlns:wsu=" http://do

Re: WSS4JInInterceptor: The signature or decryption was invalid

2014-03-31 Thread chaij
Thanks, that solves the mystery! -- View this message in context: http://camel.465427.n5.nabble.com/WSS4JInInterceptor-The-signature-or-decryption-was-invalid-tp5749409p5749573.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: add SAML TOKEN to SOAP header

2014-03-31 Thread chaij
I don't need to create a SAML token. I already have it in xml format. I am not using WS-SecurityPolicy. I am using WSS4J to add a SAML token. I will take a look the example in the second link. Thanks! -- View this message in context: http://camel.465427.n5.nabble.com/add-SAML-TOKEN-to-SOAP-h

Re: Logging into the bundle log file via to("log:...")

2014-03-31 Thread Grzegorz Grzybek
Hello I did some investigation and I think it's almost impossible to properly set the bundle in org.ops4j.pax.logging.slf4j.Slf4jLogger which is used by CamelLogger. The problem is described here

Re: Camel, concurrent consumers, message groups and prefetch size

2014-03-31 Thread Christian Posta
On Fri, Mar 28, 2014 at 10:06 AM, Paul Gale wrote: > Hi, > > I have an embedded Camel client that contains a single route. All messages > the route consumes have their JMSXGroupID property set. > > What I need to know is how message grouping behaves in the context of > concurrent consumers and how

Camel routing based on an xpath value in an XML message.

2014-03-31 Thread mtod09
I would like to perform a Camel route based on an xpath value in an XML message. The XML Message example: 1 Event App1 topic.A AppA ActiveMQ example: http

Re: Camel routing based on an xpath value in an XML message.

2014-03-31 Thread Christian Posta
why, yes it is possible :) You can use an xpath expression to get the value of the node you like.. then use a recipient list or dynamic router to get it to the queue/topic you like: http://camel.apache.org/recipient-list.html On Mon, Mar 31, 2014 at 2:33 PM, mtod09 wrote: > I would like to per

Re: Camel, concurrent consumers, message groups and prefetch size

2014-03-31 Thread Paul Gale
claus.takeLeafFrom(christian.getBook()); :) On Mon, Mar 31, 2014 at 5:09 PM, Christian Posta wrote: > On Fri, Mar 28, 2014 at 10:06 AM, Paul Gale wrote: > > Hi, > > > > I have an embedded Camel client that contains a single route. All > messages > > the route consumes have their JMSXGroupID p

Camel-Hazelcast: Configuring Consumer

2014-03-31 Thread doug5791
I have a route that fills a Hazelcast IList "hlist" already running. The next thing I would like to do is set up an additional route (seperate class) that uses the Camel Hazelcast Consumer; listening for additions to the Hazelcast instance already running and then continue to other endpoints. I ha

Re: whenAnyExchangeReceived is never called

2014-03-31 Thread kraythe .
Your code is odd. You are replacing "mock:http" with the same thing? Why? I think you should post your whole test case. I don't think you are getting the right mock endpoint so the mock endpoint you are accessing is not actually in the route. Try assertNotNull("mock:http"); before you get the mock

Re: Camel-Hazelcast: Configuring Consumer

2014-03-31 Thread Willem Jiang
Can you double check the hazelcast jars in your class path? I bet the jars’ versions were massed.  -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On April 1, 2014 a

Re: Camel XSLT Param - Issue ( Body is null )

2014-03-31 Thread Gnanaguru S
It worked after adding some dummy payload :) VS Cheers Guru gnanaguru.com -- View thi

Re: camel-rabbitmq

2014-03-31 Thread muthukumara...@gmail.com
Thank you Willem. After upgrading to 2.13.0 and adding BridgeEndpoint=true to the URI solved this issue. I ended up using "addresses" as we have 2 RabbitMQ in a cluster. Thanks, Muthu -- View this message in context: http://camel.465427.n5.nabble.com/camel-rabbitmq-routing-issue-tp5744371p574

Re: Camel-Hazelcast: Configuring Consumer

2014-03-31 Thread doug5791
These are the Hazelcast entries in my classpath, do you think that having the Java Hazelcast jars (top two highlighted) included is messing with it? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Hazelca

Camel-cxf rs client bean

2014-03-31 Thread ravi.4indra
Hi, I am having trouble defining a cxf rs client bean. can anyone point me the example of defining a cxf client bean using the http client. Any Help is appreciated Thanks Ravi -- View this message in context: http://camel.465427.n5.nabble.com/Camel-cxf-rs-client-bean-tp5749587.html Sent fro

Re: Camel-cxf rs client bean

2014-03-31 Thread Christian Posta
I think a better way to start is what do you have so far? And what is not working? On Mon, Mar 31, 2014 at 7:36 PM, ravi.4indra wrote: > Hi, > > I am having trouble defining a cxf rs client bean. can anyone point me the > example of defining a cxf client bean using the http client. > > Any Help i

Re: Camel XSLT Param - Issue ( Body is null )

2014-03-31 Thread Gnanaguru S
What will happen in case if I use a JMS endpoint ? 1. I have a request message from a JMS queue, once the message is received I want to pass a parameter to the XSL file. 2. But I dont want to send the payload from the JMS queue to the xsl ! Any thoughts ? Regards Guru -- View this message

Re: Camel-Hazelcast: Configuring Consumer

2014-03-31 Thread Willem Jiang
Can you downgrade the Hazelcast to 2.6 which is tests with camel-2.12.x? -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On April 1, 2014 at 11:30:48 AM, doug5791 (

Exception unmarshalling XML with jaxb

2014-03-31 Thread edhansen42
I am trying to unmarshal XML from a WMQ endpoint and getting the following exception: *Error during type conversion from type: java.io.ByteArrayInputStream to the required type: javax.xml.stream.XMLStreamReader with value java.io.ByteArrayInputStream@3fb8b912 due Could not instantiate an instance

Camel XSLT Param - Issue ( Body is null )

2014-03-31 Thread Gnanaguru S
Hi, I am passing a parameter to the XSL through the header. But since the body is null it is not generating the XML. Any ideas ? I went through the documentations and sample, but I couldnt really find a good example for using XSLT Parameters in Camel. This is my route.

Re: Camel XSLT Param - Issue ( Body is null )

2014-03-31 Thread Claus Ibsen
The xstl component expects the body to contain XML which is used for the XML transformation. On Tue, Apr 1, 2014 at 2:45 AM, Gnanaguru S wrote: > Hi, > > I am passing a parameter to the XSL through the header. But since the body > is null it is not generating the XML. Any ideas ? I went through