Re: Using AdviceWith not intercepting when I send real Files through

2014-04-04 Thread Claus Ibsen
You should see an INFO logging with the endpoints being mocked during the advice process. Don't you see that? On Fri, Apr 4, 2014 at 9:09 PM, Doug Turnbull wrote: > Hello, > > I'm attempting to use AdviceWith for testing a route The route looks like: > > from("file:inbox?doneFile=done") >

Re: Camel XPath....Parsing a part of message Body...

2014-04-04 Thread Claus Ibsen
Hi The xpath should not have " " around it On Fri, Apr 4, 2014 at 8:45 PM, npa wrote: > I have a simple flow that reads from an activemq1 and parses an id from the > message and sends the id across to another activemq2. > > Here is an example of message that gets written to activemq1: > > >

Re: add SAML TOKEN to SOAP header

2014-04-04 Thread chaij
I may not be able to change the SAML token. I will see if I can work around it. I implemented this the validator class. import org.apache.ws.security.WSSecurityException; import org.apache.ws.security.saml.ext.AssertionWrapper; import org.apache.ws.security.validate.SamlAssertionValidator; publi

Re: Camel CXF Jaxrs service implementation class's methods are not executing

2014-04-04 Thread Willem Jiang
It could be more easy if we just use the SimpleConsumer binding which can let us deal with REST message in a simple generic way in Camel route. Please check out Simple Binding Style[1] page for more information. [1]http://camel.apache.org/cxfrs.html#CXFRS-ConsumingaRESTRequest-SimpleBindingStyl

Re: Camel CXF Jaxrs service implementation class's methods are not executing

2014-04-04 Thread Sergey Beryozkin
Willem pointed earlier on to the possibility of using ProducerTemplate. I saw the example somewhere today of using the native CXF JAX-WS declarations with the endpoint implementations additionally being injected with CamelContext -> getting ProducerTemplate and invoking on the route - the same

Camel XPath....Parsing a part of message Body...

2014-04-04 Thread npa
I have a simple flow that reads from an activemq1 and parses an id from the message and sends the id across to another activemq2. Here is an example of message that gets written to activemq1: 123 I need to parse out the id from the above message body and send the below message to ac

Re: Camel Succesful delivery acknowledgements..

2014-04-04 Thread npa
Hello, I remember reading somewhere that XA transactions are slow, overkill and not reliable. Do you think a regular transaction would do the job for me here. A single transaction which would cover the 2 "to" uri's. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Succ

Using AdviceWith not intercepting when I send real Files through

2014-04-04 Thread Doug Turnbull
Hello, I'm attempting to use AdviceWith for testing a route The route looks like: from("file:inbox?doneFile=done") .unmarshall(csv) .split(body()) .to("direct:csvRecords") I've written a test that attempts to confirm that files get unmarshalled to csv correctly and are sent

camel cxf (wsdl first) pojo: Can't find the BindingOperationInfo

2014-04-04 Thread Nicolas74
Hello camel guys :-) I'm trying to invoke my CXF Web Service (contract first) from a camel route. I would like to invoke the method "updateJobsStatus(String)" However I get an IllegalArgumentException: Stacktrace

Re: Help Understanding Apache Camel main concepts!

2014-04-04 Thread kraythe .
Endpoints are locations from which input data is consumed or output data is sent to. So if you call to(endpoint) then you are sending data to that endpoint. If you have a from(endpoint) you are consuming data produced by that endpoint. The confusion can be magnified by the fact that we configure th

AMQ Partially Transacted Client?

2014-04-04 Thread kraythe .
Greetings, I have an odd need. Basically I need to have a transactional client that only is transacted on sending messages but not consuming them. I have a route that polls a database on a quartz timer and then makes a SQL call. If the call returns any records, they get split up and put on an eve

Help Understanding Apache Camel main concepts!

2014-04-04 Thread pmp.martins
I am trying to learn Camel, and so I making an article that explain Camel's basic notions that a newbie has to know to understand Camel. For this purpose, I am reading the book Camel in Action, where the authors define the following main concepts: - Messages - Exchanges - - Processors?

Re: camel xpath

2014-04-04 Thread Lydie
ok I got it I used the value of the header instead of the header name. Thanks, Lydie -- View this message in context: http://camel.465427.n5.nabble.com/camel-xpath-tp5749754p5749817.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel xpath

2014-04-04 Thread Lydie
Thnaks Claus: So Itried this: /authorizationCheck='enabled' but I still get an error: Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 50; The markup in the document following the root element must be well-f

Re: Camel - Test driven development

2014-04-04 Thread Claus Ibsen
On Fri, Apr 4, 2014 at 12:37 PM, Gnanaguru S wrote: > > Finally I ended up writing a article on Camel unit testing today :) > > http://bushorn.com/unit-testing-apache-camel/ > Hi Thanks for sharing your blog post. I added a link to it from our link collection at http://camel.apache.org/articles

Re: Camel Succesful delivery acknowledgements..

2014-04-04 Thread Raul Kripalani
Hello XA transactions are your friend in this scenario. Beware that the whole goal of leveraging a Message Broker is to decouple the producer from the consumer. In fact, when the producer sends the message, there may be a consumer there may be not, but if you've set the JMS delivery mode appropri

Re: Camel Succesful delivery acknowledgements..

2014-04-04 Thread npa
Does Camel have any indicators that the message has been succesfully delivered to the consumer. As a producer, how do I know that message has been delivered, so that I can issue out succesful acknowledgements. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Succesful-de

Camel Succesful delivery acknowledgements..

2014-04-04 Thread npa
I have been trying to come up with a camel route that would read from an activemq and write to Oracle AQ. However, when a message is written to Oracle-aq(all I care is succesfull delivery of the msg to Oracle aq), I have to write a successful message to another Active mq queue("something like mess

Re: Camel - Test driven development

2014-04-04 Thread Gnanaguru S
Finally I ended up writing a article on Camel unit testing today :) http://bushorn.com/unit-testing-apache-camel/ Cheers Guru gnanaguru.com -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Test-driven-development-tp5749539p5749791.html Sent from the Camel - Users mail

Re: How to disable initial file rollback strategy

2014-04-04 Thread a746076drdrb
Thanks for suggestions! Setting option waitForTaskToComplete=Never on both to(seda) from(seda) didn't change anything. Seda thread still trying to delete the input file. I've also tried wireTap("seda:remote?waitForTaskToComplete=Never") but id didn't work at all. Seda did not receive any exchange

Re: Camel CXF Jaxrs service implementation class's methods are not executing

2014-04-04 Thread Sergey Beryozkin
Hi It is not possible to use jaxrs:server in combination with cxfrs, it is only possible to do and then direct to from the camel route typically starting from a servlet. This approach is somewhat limited unless one is prepared to have JAX-RS server implementation be written with Camel API

Re: How to ignore all error on some parts in a route

2014-04-04 Thread kraythe .
Check out this page https://camel.apache.org/exception-clause.html Specifically look for the section: *Handle and continue exceptions* *Robert Simmons Jr. MSc. - Lead Java Architect @ EA* *Author of: Hardcore Java (2003) and Maintainable Java (2012)* *LinkedIn: **http://www.linkedin.com/pub/rober

Exception not thrown while doing sftp inside consumer.receive

2014-04-04 Thread geetha
Hi, If i use sftp inside from uri, am getting exceptions like this *For invalid username *- org.apache.camel.component.file.GenericFileOperationFailedException: Cannot connect to sftp://abcd@localhost:22 at org.apache.camel.component.file.remote.SftpOperations.connect(SftpOperations.java

Re: Camel CXF Jaxrs service implementation class's methods are not executing

2014-04-04 Thread vrahul
Thanks Sergey, I have also tried by creating services using cxf jaxrs server endpoint as below and used in camel I might consider experimenting with camel restlet , http and jetty but also those will come under the scope of

How to ignore all error on some parts in a route

2014-04-04 Thread a746076drdrb
Hello, I have a route with onException clause. Additionally, I'd like to ignore all exception on some not so important parts of the route while saving exception policy on the rest of the route. If an exception occurs while enriching the message with results of to("http://notimportant).to("ftp:noti

Camel - camelContext - RabbitMQ component - what should be the value for exchangeName?

2014-04-04 Thread sanbhat
I am using RabbitMQ component of Camel, for Camel routing. While creating a queue from RabbitMQ console I have not explicitly mentioned any exchange name. But the url expects the exchangeName rabbitmq://hostname[:port]/exchangeName?[options] What should be the value of exchangeName for a default

Re: add SAML TOKEN to SOAP header

2014-04-04 Thread Colm O hEigeartaigh
As the error message says, "IssueInstant" is a required attribute of a SAML 2.0 assertion. Do you have control over the generation of the SAML token? The SAML Token is technically invalid without this attribute. If not, then an alternative is for you to extend the SamlAssertionValidator in WSS4J +