Results 1 to 5 of 5

Thread: Need advice: zip files support

  1. #1
    Join Date
    May 2006
    Location
    Madrid
    Posts
    382

    Default Need advice: zip files support

    Hello,

    I'm considering using Spring Integration (SI) in a flow process that clearly fits in this kind of technology.

    I only have a basic knowledge of SI but I think I could manage the project.

    However, the business logic is based on ZIP files that contains XML descriptors.

    There is good support for XML files, but I didn't found any reference to ZIP files.

    Can anybody give me some advice for treating ZIP files in SI?

    Thank you very much.

  2. #2
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    Zipping and Unzipping files is not a straight forward process since we don't really know how far in the hierarchy do you want to go, that is why its left up to the developer to provide a custom implementation of the transformer or service-activator and refer to it using 'ref' attribuite. For example:
    Code:
    <bean id="myUnzipTransformer" class="foo.bar.MyTransformer"/>
    
     <int:transformer . . . ref="myUnzipTransformer"/>
    An implementation of such transformer would be using java.util.zip API to process ZIP files. Here is a good getting started point: http://www.exampledepot.com/egs/java...CreateZip.html

  3. #3
    Join Date
    May 2006
    Location
    Madrid
    Posts
    382

    Default

    I'll try with a service activator.

    Thanks for the reply.

  4. #4
    Join Date
    Apr 2012
    Location
    chennai
    Posts
    17

    Default

    Hi Oleg,

    Was wondering if there is out of box support for handling zip/archive files part of spring-integration-file implementation or elsewhere? Or still we have to write custom transformer?

    Thanks,
    An

  5. #5
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •