Skip to Content
avatar image
Former Member

Accessing File using FTP from Java Mapping

Hi,

There is a requirement to check certain files and move them to certain directories in a FTP server from PI on checking the payload of an outbound interface which is using FTP adapter. The question is whether it is advisable to open the FTP connection from Java mapping in PI and do the file processing as required or it should be done by an adapter module?

Any help will be highly appreciated.

Thanks,

Dipankar

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jun 08, 2009 at 06:53 AM

    It would be better to go with Adapter Module.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Ravi,

      By module are you suggesting writing the File I/O logic inside a module processor in the adapter engine? If yes then my question is as the module processor is an EJB is it at all recommended to do File I/O from an EJB?

      Thanks,

      Dipankar

  • avatar image
    Former Member
    Jun 09, 2009 at 12:05 AM

    >>payload of an outbound interface which is using FTP adapter

    why not do this via "Conditional Interface determination"

    That is the standards way through which we branch off message based upon the contents of payload,you can also use "Conditional receiver determination" if you have different receiver systems.

    Please update the thread if your requirement is different.

    Thanks

    Aamir

    Add comment
    10|10000 characters needed characters exceeded