camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: Transforming large XML files
Date Tue, 04 May 2010 13:40:09 GMT
Hi,

You can find Apache snapshot here[1]

[1]https://repository.apache.org/content/groups/snapshots-group

Willem

Ralf Petersilka wrote:
> Hi Willem,
> 
> thanks for the reply. We are using maven and our configured repositories do
> not include the 2.3.0 snapshot. (It took us quite some time to put the
> repositories together for 2.2 ;-)). 
> 
> Is there a repository for 2.3. which we may include?
> 
> Thanks Ralf
> 
> willem.jiang wrote:
>> Hi,
>>
>> Can you try out the latest Camel 2.3-SNAPSHOT?
>> There is output option which can specify the output type that xslt 
>> component endpoint.
>> You can find more information here[1]
>>
>> [1] http://camel.apache.org/xslt.html
>>
>> Willem
>>
>> Ralf Petersilka wrote:
>>> Hi, 
>>>
>>> we receive large XML messages (several tens of MB. Sometimes up to
>>> 500MB). I
>>> would like to convert these messages using the xslt transformer.
>>> Unfortunately it seems that the result will always be a string which
>>> results
>>> in a OutOfMemory error.
>>>
>>> My route looks something like this
>>>
>>> from(file:/c:/in/largefiles?filename=large.xml").to("xslt:my_large_converter.xslt").bean(MyBusinessService.class)
>>>
>>> Within the MyBusinessService the XML file is deserialised and the content
>>> is
>>> processed.
>>>
>>> Is there a workaround for this? I thought about providing a file option.
>>> But
>>> this would require to create a temporary file whenever the route is
>>> executed. 
>>>
>>>
>>> Thanks Ralf
>>
>>
> 


Mime
View raw message