vm protocol threading behaviour

2015-04-17 Thread vdhawan
I have a camel context which has a cxf endpoint to accept messages. The same camel context has a camel route(route A) which invokes another camel route(route B). I executed a small load test (sent 10 request with 3 threads) using soap ui on the cxf endpoint. The average response time of the camel

Camel process evaluates XPath to a DTMNodeList object

2015-04-07 Thread vdhawan
Hello, i have a process with a method signature public void process(Exchange exchange,@XPath(value=//MyXpath) Object value, @XPath(value=//MyXpath1)Object value1) Both the xpath return 1 match when a xml is fed to this processor. I am expecting the processor to evaluate the xpath and convert to

Re: How to pass multiple custom objects to processor

2014-07-29 Thread vdhawan
Thanks arnaudeprez. This sounds like that this could work. 1. Splitting - i understand , i can unmarshal header and body via xpath separately and i am good. Any specific way to collect these two objects and in collection ? And, if i manage to put my two objects in a collection, in what format

Re: How to pass multiple custom objects to processor

2014-07-29 Thread vdhawan
Thanks Matt. //MyXpath And the corresponding getter i.e exchange.getProperties().get("bodyPart") gives me null. Same with Result. -- View this message in context: http://camel.465427.n5.nabble.com/How-to-pass-multiple-custom-objects-to-processor-tp5754502p57

How to pass multiple custom objects to processor

2014-07-28 Thread vdhawan
I have a wsdl with multiple operations and the typical structure of the message looks like . . .. Can i unmarshal camel context and send MyHeader and MyBody objects to the processor in proper

Re: XSLT transformation produces junk charachters

2014-07-24 Thread vdhawan
Fixed it finally. I did not intend to use xalan for my transformations however Fuse was being forced to use this because of one the dependencies in my pom Saxon-HE. I upgraded to 9.5.1.1, and the maven dependency tree depicted that it no longer depended on xalan. I then used ?saxon=ture in my

Re: XSLT transformation produces junk charachters

2014-07-24 Thread vdhawan
Bingo!! Exactly what i am facing. . I am using camel 2.12. As per the bug definition, this issue is a known issue for Xalan 2.7.1. Just checked my maven dependency tree, i can see *xalan:xalan:jar:2.7.0:compile* net.sf.saxon:Saxon-HE:jar:9.4:compile [INFO] | +- org.jdom:jdom:jar:1.1:compile

Re: XSLT transformation produces junk charachters

2014-07-24 Thread vdhawan
Thanks again Franz. Debugged a little bit more and it doesnt look like a type conversion issue. If i pass just tinker with input xml to the xslt, it works in some cases. More specifically *does not* work and http://mynamespace> works. P.S - I am using xsl:copy-of select=*node()|@* in my XS

Re: XSLT transformation produces junk charachters

2014-07-24 Thread vdhawan
Thanks for response Franz. Bean returns an object of javax.xml.transform.Source. Source s = new DOMSource(myObj) exchange.getOut().setBody(s); Thanks -- View this message in context: http://camel.465427.n5.nabble.com/XSLT-transformation-produces-junk-charachters-tp5754357p5754366.html Sent

XSLT transformation produces junk charachters

2014-07-24 Thread vdhawan
Hello, In my camel context, i invoke a java bean (which does some processing) and returns the body in the exchange. So far so good. The second log message prints shows the XSLT transformation results in some junk charachters like and i can see an error in the logs javax.xml.transform.Tr