RE: Camel JAXB - ArrayList of Objects to XML

2014-04-18 Thread Ravindra.Godbole
You can definitely do it. Create route like this : protected RouteBuilder createRouteBuilder() throws Exception { return new RouteBuilder() { JAXBContext context = JAXBContext.newInstance(new Class[]{Orders.class});

RE: Camel JAXB - ArrayList of Objects to XML

2014-04-18 Thread contactreji
Hi Ravi Thanks .. That was helpful :-) -- View this message in context: http://camel.465427.n5.nabble.com/Camel-JAXB-ArrayList-of-Objects-to-XML-tp5750356p5750359.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Split XML with xmlTokenizer and add root element?

2014-04-18 Thread cgiera
Hi all, should we create a camel jira issue for this? kind regards, Christoph -- View this message in context: http://camel.465427.n5.nabble.com/Split-XML-with-xmlTokenizer-and-add-root-element-tp5750237p5750360.html Sent from the Camel - Users mailing list archive at Nabble.com.

Camel JMX attributes

2014-04-18 Thread Paul Gale
Hi, I have written an embedded Camel client in JRuby. I've been trying to use Camel's JMX annotations on my bean, without success. (I've implemented beans in Java (on Java projects) in the past using Camel's JMX annotations without a problem.) I was wondering how can I leverage Camel's built in

Out of Memory For huge Json Response

2014-04-18 Thread Karthik . Pothuru
Dear Team, We are facing Out of memory issue when receiving a huge json response (around 1 GB ) when hitting a REST webservice with in Target Enterprise. We are currently using camel Http component . Due to huge file, the entire data gets loaded into HEAP and the process is failing due to

Re: Out of Memory For huge Json Response

2014-04-18 Thread Fernando Ribeiro
Why is the payload so big? On Fri, Apr 18, 2014 at 9:32 AM, Karthik.Pothuru karthik.poth...@target.com wrote: Dear Team, We are facing Out of memory issue when receiving a huge json response (around 1 GB ) when hitting a REST webservice with in Target Enterprise. We are currently using

Re: Out of Memory For huge Json Response

2014-04-18 Thread Jason Stell
If you can't allocate enough java heap to support the 1GB JSON document, you'll have to switch to a Streaming JSON parser approach. Jackson supports this : http://wiki.fasterxml.com/JacksonStreamingApi Regards On Fri, Apr 18, 2014 at 7:32 AM, Karthik.Pothuru karthik.poth...@target.com wrote:

SJMS Component queue access with name/password

2014-04-18 Thread malcolm.davis
Name/password is required to access queues in some JMS environments. The Spring based JMS component supports name/password when accessing a queue. Is there a way that name/password pair can be used SJMS? Note: This is not factory access but the queue connection. createConnection(String

Re: Does Camel MongoDB use cursors on findAll ?

2014-04-18 Thread Raul Kripalani
There are unit tests that showcase this functionality of the component: https://github.com/apache/camel/blob/e7563a7611667fb9b449d8a7f8c3fa7e3a0524bd/components/camel-mongodb/src/test/java/org/apache/camel/component/mongodb/MongoDbFindOperationTest.java#L90 I think we could enhance it anyway to

Patch - camel-jetty - Allow for static file handlers

2014-04-18 Thread kuro
Hi I solved the issue of https://issues.apache.org/jira/browse/CAMEL-4363 http://camel.465427.n5.nabble.com/updload-server-multipart-td472630.html http://code.notsoclever.cc/writing-camel-component-camel-static-resource/ Example: from(jetty:http://localhost:{{port}}/myapp/myservice?; +