Apache Camel now has OFTP2 support
Bruno Borges | September 21, 2010
B2B requires software developers to be aware of Enterprise Integration Patterns, better know as EIPs. One, if not the only, great framework to develop and architect EIPs is Apache Camel. The Accord MFT suite is 100%-tied to this framework due to the nature of the business problem we try to solve: Managed File Transfer and Data Processing. Because of that, it was a requirement on our roadmap to implement a Camel Component to provide OFTP2 support.
The component has the ability to send and receive files as well delivery notifications, also know as End-to-End Responses (EERP) in the OFTP2 specification – RFC 5024. It was implemented with the Accord Odette OFTP2 Java library.
Routes for the Apache Camel can be defined to receive and save incoming files as follow:
from(“oftp://[username[:password]]@server[:port]?delay=5000“)
.to(“file:/home/odette/inbox”);
It is also possible to process incoming delivery notifications (EERP):
from(“oftp://[username[:password]]@server[:port]?delay=5000″)
.filter(header(OdetteEndpoint.ODETTE_DELIVERY_NOTIFICATION).isNotNull())
.to(“bean:storeDeliveryNotification”);
For more information, please go to the Accord Odette OFTP2 project website or join our mailing lists.