On Sat, Mar 26, 2011 at 1:04 PM, Claus Straube <claus.stra...@catify.com> wrote: > Hi Claus, > > I know thats deprecated and I'm using their stuff. The post to the camel > list was because it's still 'camel' and there is a chance that anybody > community has used it before ;) >
Yeah thats fine. I would assume Smooks would be able to deal with big files in a streaming fashion. So I wonder what's the issue. Maybe there is a switch/option you need to enable? Or maybe that payload result has a different type for streaming instead of StringResult? > On 26.03.2011 11:37, Claus Ibsen wrote: >> >> Hi >> >> If you refer to the old smooks component from camel-extra then that's >> @deprecated. >> >> Smooks framework now provides Camel integration out of the box, so use >> their stuff for that. >> >> >> On Fri, Mar 25, 2011 at 6:19 PM, Claus Straube<claus.stra...@catify.com> >> wrote: >>> >>> Hi all. >>> >>> I've posted this on the smooks list, but there was nobody who could give >>> me >>> a hint... >>> >>> I'm trying to transform a huge edi file to xml. For reading the file I'm >>> using camel. Here is my route: >>> >>> <snip> >>> from("file://target/in?noop=true") >>> .to("smooks://src/main/resources/smooks-config.xml") >>> .to("file://target/processing"); >>> <snip> >>> >>> My smooks config looks like this: >>> >>> <snip> >>> <smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" >>> xmlns:core="http://www.milyn.org/xsd/smooks/smooks-core-1.4.xsd" >>> xmlns:edi="http://www.milyn.org/xsd/smooks/edi-1.4.xsd"> >>> >>> <!-- Configure the EDI Reader to process the message stream into a stream >>> of SAX events. --> >>> <edi:reader mappingModel="mappingmodels/foo.xml" ignoreNewLines="true" /> >>> >>> <core:exports> >>> <core:result type="org.milyn.payload.StringResult"/> >>> </core:exports> >>> >>> </smooks-resource-list> >>> <snip> >>> >>> I'm getting a out of memory with a 30 MB edi file, but have to transform >>> 250 >>> MB files. So I need a hint how to get a data stream into smooks and out >>> again. Is there a sample who to handle big EDI files? Is smooks the right >>> tool for this? >>> >>> Thanks in advance - Claus >>> >> >> > -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/