AW: AW: camel xpath

2014-04-10 Thread jhm
> in camel example here : > > > /invoice/@orderType = 'premium' Means a header "invoiceDetails" with data like > > authorizationCheck/text()='enabled'< /xpath> Which header do you want to access? - RouteConfiguration - ROUT

mongodb - component - ClassNotFoundException

2014-04-10 Thread sanbhat
Hi, I would like to use mongodb component in my camelContext. I have already installed feature *camel-mongodb* and when I do *bundle:list * I get Here's my camelContext When I deploy this exception, I get following exception Please help me. I am not sure what is missing here. -- View t

RE: JTA Transactions Rollback of Routes using Directs?

2014-04-10 Thread Siano, Stephan
Hi, What kind of transaction manager are you using? Rolling back over a JMS queue and a database would require XA resources that are participating in the same transaction. I am also not entirely sure how the transacted interacts with the onException handler. You also don't write what the rollb

AW: Async Http Client link broken

2014-04-10 Thread jhm
Thanks for pointing, in the meanwhile someone has fixed that, so I couldnt reproduce that ;) Jan > -Ursprüngliche Nachricht- > Von: Goyal, Arpit [mailto:arpit.go...@sap.com] > Gesendet: Freitag, 11. April 2014 04:53 > An: users@camel.apache.org > Betreff: Async Http Client link broken >

Re: Loading Camel Context from Spring XML

2014-04-10 Thread Pavan Naganna
Hi , I have problems in copying the files from data/inbox to data/outbox using Camel with Spring DSL . Below are my beans.xml and Java Programs. Also I am not seeing processor getting added. Please help me on this. beans.xml http://www.springframework.org/schema/beans"; xmlns:xs

Re: Camel with ActiveMQ

2014-04-10 Thread kraythe .
We run it standalone. That way you can cluster AMQ servers to increase fault tolerance and throughput. With the Zookeeper based database of AMQ 5.9.0 this is even more powerful. *Robert Simmons Jr. MSc. - Lead Java Architect @ EA* *Author of: Hardcore Java (2003) and Maintainable Java (2012)* *Lin

Re: Camel with ActiveMQ

2014-04-10 Thread chaij
Do people normally run ActiveMQ within Karaf or outside of the container? If to run it inside of Karaf, what are commands to have AcitveMQ installed and start? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-with-ActiveMQ-tp5750002p5750088.html Sent from the Camel - Us

Re: add SAML TOKEN to SOAP header

2014-04-10 Thread chaij
Thanks for your help. It makes sense. Everything is working now! -- View this message in context: http://camel.465427.n5.nabble.com/add-SAML-TOKEN-to-SOAP-header-tp5749520p5750087.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: exception handling across routes

2014-04-10 Thread Minh Tran
Solution was to use the no error handler on the inner route. http://stackoverflow.com/questions/7407105/camel-exception-handling-in-sub-routes On 11/04/2014, at 12:53 PM, Minh Tran wrote: > Hi > > I'm attempting to catch an exception thrown from another route as follows. > > > >

exception handling across routes

2014-04-10 Thread Minh Tran
Hi I'm attempting to catch an exception thrown from another route as follows. BlahException true Is this actually possible? The help pages at htt

Async Http Client link broken

2014-04-10 Thread Goyal, Arpit
Hi Colleagues, https://camel.apache.org/ahc.html ->Async Http Client link is broken. Points to https://github.com/sonatype/async-http-client but should be changed to https://github.com/AsyncHttpClient/async-http-client Regards, Arpit.

Route started race condition

2014-04-10 Thread Minh Tran
Hi I have a camel route that consumes from a topic and sends to a queue. from("activemq:topic:mytopic?transacted=true&lazyCreateTransactionManager=true") .log("${body}") .to("activemq:queue:myqueue"); I've written some unit tests around it and sometimes it passes and on rare occasions it fails

Re: simple predicate header

2014-04-10 Thread Willem Jiang
Hi You need to add space between the equals, just like this  ${header.Authorization} == 'enabled'  -- 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 11, 20

simple predicate header

2014-04-10 Thread Lydie
I am trying to get a choice based on the value in a header: ${header.Authorization} == 'enabled' where when I log the value with : I get 3:55:05,022 INFO [proxy] (qt

Re: AW: camel xpath

2014-04-10 Thread Lydie
in camel example here : xmlns="http://camel.apache.org/schema/blueprint"*> /invoice/@orderType = 'premium' /invoice/@orderType = 'standard' my example uses xmlns="http:/

Re: AW: camel xpath

2014-04-10 Thread Lydie
I understand but my issue is that it is in the header I can do it otherwise My issue is in combining xpath with headername Lydie -- View this message in context: http://camel.465427.n5.nabble.com/camel-xpath-tp5749754p5750065.html Sent from the Camel - Users mailing list archive at Nabble.com

Will web request be intercepted by CAMEL with this configuration?

2014-04-10 Thread scottmiles
I see below configuration at http://java.dzone.com/articles/open-source-integration-apache http://0.0.0.0:/placeorder"; /> OK Does it mean that any we request with URL http://0.0.0.0:/placeorder will be intercepted by CAMEL and output(in the form of JMS

JTA Transactions Rollback of Routes using Directs?

2014-04-10 Thread kraythe .
Greetings, I have an interesting use case I was wondering if anyone had ideas on. Essentially there is a notifications table in a database that has essentially the following structure: CREATE TABLE "etl_case_notification" ( "process_id" int(11) NOT NULL DEFAULT '0', "table_name" varchar(100)

Re: inter-bundle camel routing

2014-04-10 Thread samslara
Thanks for the information. One other question, though, what about nmr? What are your thoughts on using NMR for interbundle routing? -- View this message in context: http://camel.465427.n5.nabble.com/inter-bundle-camel-routing-tp5750021p5750061.html Sent from the Camel - Users mailing list ar

Re: Java heap space with FILE producer and larges files

2014-04-10 Thread Claus Ibsen
Hi You would either have to wait for the issue to be fixed and upgrade to that Camel release. Or try implement your own tracer formatter where you do not read the data if its a file. See the section_Using Custom Formatter_ at http://camel.apache.org/tracer On Thu, Apr 10, 2014 at 3:59 PM, bbk

Re: AW: camel xpath

2014-04-10 Thread Claus Ibsen
I suggest to use some xpath eval tool or write some java code using the java xpath api to make sure you get your xpath expression correct, and the namespaces working (if used) - as that is like 95% of the problems ppl have with xpath is to get the expression correct and return the data you want.

Re: AW: camel xpath

2014-04-10 Thread Lydie
Thanks Jan, I understand this example but my problem is that the XML piece with the header name as the root and authorizatiobCheck as a element under the header Lydie -- View this message in context: http://camel.465427.n5.nabble.com/camel-xpath-tp5749754p5750058.html Sent from the Camel

Re: Java heap space with FILE producer and larges files

2014-04-10 Thread bbk
You're right. The problem is when I do: tracer.setDestinationUri("direct:traced"); this.from("direct:traced") .to("file://"); How can I resolve the problem please? -- View this message in context: http://camel.465427.n5.nabble.com/Java-heap-space-with-FILE-producer-and-larges-files-tp5

Re: camel xpath

2014-04-10 Thread Lydie
I added steam cache =true: but I t still does not work Any idea? -- View this message in context: http://camel.465427.n5.nabble.com/camel-xpath-tp5749754p5750057.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Disable DTD validation on XPATH

2014-04-10 Thread Ayache Khettar
By the way, I am removing the DocType declaration from the XML prior to applying Xpath. It really makes sense to disable validation and if the latest version does this then it is great. Ayache On 10 April 2014 15:04, Ayache Khettar wrote: > Hi > > Thanks guys for your reply. I am using 2.10.7 a

Re: Disable DTD validation on XPATH

2014-04-10 Thread Ayache Khettar
Hi Thanks guys for your reply. I am using 2.10.7 at the moment. Regards, akhettar On 10 April 2014 14:18, Claus Ibsen wrote: > Hi > > What Camel version are you using? > > I think the DTD validation has been turned off out of the box in the > latest releases. > > > On Thu, Apr 10, 2014 at 1

Re: Disable DTD validation on XPATH

2014-04-10 Thread Claus Ibsen
Hi What Camel version are you using? I think the DTD validation has been turned off out of the box in the latest releases. On Thu, Apr 10, 2014 at 1:05 PM, Ayache Khettar wrote: > Hi > > We get XML from third party API which has Doctype declaration ( x_request SYSTEM "https://hostname/dtd/xreq

Re: AW: How to use CAMEL to send the acknowledgement and xml output to vendors on different platform ?

2014-04-10 Thread Claus Ibsen
On Thu, Apr 10, 2014 at 3:14 PM, scottmiles wrote: > Assume i have below ValidateOrder > > public class ValidateOrder { > public void check1(String body) throws ValidationException { > // body is the value of Exchange.getIn().getBody(String.class) and > provided by bean-binding. >

Re: AW: How to use CAMEL to send the acknowledgement and xml output to vendors on different platform ?

2014-04-10 Thread scottmiles
Assume i have below ValidateOrder public class ValidateOrder { public void check1(String body) throws ValidationException { // body is the value of Exchange.getIn().getBody(String.class) and provided by bean-binding. } public void check2(String body) throws ValidationExcept

Edit the attachement content using camel mail

2014-04-10 Thread karthik
Hi Team, Is there any way possible that we can edit the attachment content on the way using camel api. I am facing an issue where additional junk characters are getting introduced in the attachement due to which i am getting an getting an exception like this. com.sun.mail.util.DecodingException: B

Re: Camel with ActiveMQ

2014-04-10 Thread Henryk Konsek
> But ActiveMQ alone can send/receive JMS message. What specific camel will do > in this case ? Provide EIP goodness. Plus easy integration with the other endpoints [1]. Cheers. [1] http://camel.apache.org/components.html -- Henryk Konsek http://henryk-konsek.blogspot.com

AW: Disable DTD validation on XPATH

2014-04-10 Thread jhm
You could try setting the factory like described for Saxon in https://camel.apache.org/xpath.html#XPath-UsingSaxonwithXPathBuilder https://camel.apache.org/xpath.html#XPath-EnablingSaxonfromSpringDSL Jan > -Ursprüngliche Nachricht- > Von: Ayache Khettar [mailto:ayache.khet...@googlemail.

Disable DTD validation on XPATH

2014-04-10 Thread Ayache Khettar
Hi We get XML from third party API which has Doctype declaration (https://hostname/dtd/xrequest.dtd";>). When XPATH is invoked it tries to download schema which requires SSL connection and fails with 403 error code (authentication error). How do we stop Xpath or SaxParser validating the XML.? I

Re: Problem with exception handler (onException) on Camel 2.12.X routes.

2014-04-10 Thread jguerra
Hi, I am pretty much inclined to say that the transacted routes the exception handler doesn't work. I am not sure whether anybody else has checked this out. Apparently no transacted routes, the handler works fine. -- View this message in context: http://camel.465427.n5.nabble.com/Problem-with-

Re: SFTP producer cannot delete the exesting donefilename

2014-04-10 Thread Claus Ibsen
Hi Do you have any chance to test with Camel 2.13.0 and see if its still a problem in that release? If it is, you are welcome to log a JIRA ticket about this issue http://camel.apache.org/support On Thu, Apr 10, 2014 at 8:58 AM, Ali, Mohammad wrote: > Hi, > > I am facing issue with Sftp producer

Re: Camel with ActiveMQ

2014-04-10 Thread anujkhandelwal
>Well, actually whenever you want to receive/send message to JMS you should consider using Camel :) . JMS >usage usually involves using Enterprise Integration Patterns [2]. And whenever you need to use EIP, you >should consider using Camel for that purpose. But ActiveMQ alone can send/receive JMS

Re: Java heap space with FILE producer and larges files

2014-04-10 Thread Claus Ibsen
On Thu, Apr 10, 2014 at 8:20 AM, Claus Ibsen wrote: > That is because you have enabled tracing, you should turn that off. > http://camel.apache.org/tracer.html > I logged a ticket to improve the tracer, so it wont load the file into memory by deafult https://issues.apache.org/jira/browse/CAMEL-73

SFTP producer cannot delete the exesting donefilename

2014-04-10 Thread Ali, Mohammad
Hi, I am facing issue with Sftp producer while using done file name option with stepwise option as false. Previously it was not creating the done files in SFTP destination, I googled and found the solution to make stepwise as true and it works and created the done file stepwise=false doesnot c