Re: How to run a camel aplication with a cxf web service outside of osgi container

2014-09-17 Thread techybolek
Christian, Aki - thanks to your pointers I was able to get my web service endpoint to work: 1. I added the cxf-rt-transports-http-jetty dependency to my pom 2. I changed address below from /submitResponse to the full URL: http://localhost:8080/submitResponse. http://localhost:8080/submitResp

How to run a camel aplication with a cxf web service outside of osgi container

2014-09-16 Thread techybolek
I'm able to run most camel scenarios as a stand-alone java application indicating org.apache.camel.spring.Main as the main function. Spring Main automatically locates the xml bean file and initializes the camel context and the camel routes. I find it very convenient for quick testing an debugging.

Re: split and process message into many channels

2014-05-28 Thread techybolek
I'm thinking custom splitter bean, to split the message. -- View this message in context: http://camel.465427.n5.nabble.com/split-and-process-message-into-many-channels-tp5751677p5751678.html Sent from the Camel - Users mailing list archive at Nabble.com.

split and process message into many channels

2014-05-28 Thread techybolek
My input message: ... . . I want to: 1. Process the whole file using stylesheet and output to Dest A 2. For a few elements in the file (say, node1, node3 and node7) I want to extract them and output the content of each individually to Dest B I know how

Re: javax.xml.transform.TransformerException: Extension function: '{http://www.w3.org/2005/xpath-functions}format-dateTime' can not be invoked when the XMLConstants.FEATURE_SECURE_PROCESSING feature i

2014-05-16 Thread techybolek
I replaced the XPATH 2.0 calls with Xalan extensions and now I'm getting: javax.xml.transform.TransformerException: Extension function: '{http://exslt.org/dates-and-times}date-time' can not be invoked when the XMLConstants.FEATURE_SECURE_PROCESSING feature is set to true. Is there any way out of

Re: javax.xml.transform.TransformerException: Extension function: '{http://www.w3.org/2005/xpath-functions}format-dateTime' can not be invoked when the XMLConstants.FEATURE_SECURE_PROCESSING feature i

2014-05-16 Thread techybolek
Found the answer here: http://comments.gmane.org/gmane.comp.apache.camel.user/15776 Basically the solution is to declare a transformer factory instance as a spring bean, ensure it's nonsecure (by simply not setting FEATURE_SECURE_PROCESSING) and indicate to use that factory in the transformation s

javax.xml.transform.TransformerException: Extension function: '{http://www.w3.org/2005/xpath-functions}format-dateTime' can not be invoked when the XMLConstants.FEATURE_SECURE_PROCESSING feature is se

2014-05-16 Thread techybolek
I defined an XSLT transform in my route using: .to("xslt:mytransform.xsl") The stylesheet is XSL 2.0 and is invoking a few 2.0 functions including current-dateTime. But I'm getting: javax.xml.transform.TransformerException: Extension function: '{http://www.w3.org/2005/xpath-functions}f

Camel OSGI: how do I get the spring application context?

2014-05-16 Thread techybolek
Below is a snippet from the camle-osgi example. I can obtain the camel context but how do I get the original spring application context? Or how am I supposed to get a reference to "mybean"? MyRouteBuilder.java: public class MyRouteBuilder extends RouteBuilder { public static void main(S

how to serialize incoming message to XML

2014-05-16 Thread techybolek
Hello, I want to serialize the incoming message to XML. I'm starting from the camel-example-cxf-osgi example. My Route: JaxbDataFormat jaxb = new JaxbDataFormat(); jaxb.setPartClass("org.apache.camel.example.reportincident.InputReportIncident"); from("cxf:bean:reportIncident")