Announcement Announcement Module
Collapse
No announcement yet.
Need advice: zip files support Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      I'll try with a service activator.

      Thanks for the reply.

      Comment


      • #4
        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

        Comment


        • #5
          Please vote for this issue: https://jira.springsource.org/browse/INTEXT-40

          Comment

          Working...
          X