-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to combine Smooks with OpenAS2 for EDIFact processing #76
Comments
It looks like Smooks has file directory pooler for inbound files and writer
for processed files that are easily programmed into a smooks executiable so
it should be easy enough to cross correlate the directories that OpensAS2
uses to send and receive with the Smooks directories:
Essentially you would have :
- OpenAS2 receved files writes to Smooks polled folder for inbound files
- Smooks outbound file writes to OpenAS2 outbound folder
You would implement it entirely in Smooks tis way.
Alternatively you could define an API for file interchange between the 2
apps and write a file handler modulefor OpenAS2 to write files to the
Smooks API for inbound files See
org.openas2.processor.storage.MessageFileModule class for example structure
as a starting point where it extends BaseStorageModule.
For outbound files you would write a handler that would implement the API
you have defined in OpenAS2 to accept files from Smooks and implement the
file writer in Smooks to write to the implemented API in OpenAS2. See
org.openas2.processor.receiver.AS2DirectoryPollingModule as an example
where it extends MessageBuilderModule via intermediate classes. Your class
would simply extend MessageBuilderModule class.
For these new modules you would then simply add them to the config.xml in
the same way the example classes mentioned above are.
…On Fri, Apr 6, 2018 at 4:18 PM, sumitsijaria ***@***.***> wrote:
Hi,
Where can I add the logic to transform the file from another framework
such as Smooks.
Thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#76>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMtsMlrmyWD-lV1mgi14uosciJmgX3DZks5tl4c4gaJpZM4TKPLo>
.
|
Thank you |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Where can I add the logic to transform the file from another framework such as Smooks.
Thanks
The text was updated successfully, but these errors were encountered: