Need suggestion to implement PULL model within application
In our application, we manage asset lifecycle through workflow manager. The assets after processed by workflow manager, are pushed into middleware server. Since workflow manger PUSHES them to middleware, it is called as PUSH model.
We have a requirement now, where middleware needs to PULL data from workflow manager. This can be done in three ways –
1. Middleware can call SOAP APIs of workflow manager
2. Simple JAVA methods provided by workflow manager
3. Shared directory between middleware and workflow manager which middleware will keep polling.
We are analyzing and judging these ways to implement PULL model. Any pointer for the pitfalls and advantages of implementing any one of these three or any other way apart from above 3 - would be appreciated.