Sunday 5 June 2016

Call Back Behavior, with new default version.



In this post we did some experiment with the callback process.  First to understand the callback, normally service can be sync or async. Sync when output is been received from the service in a very short span and same port will be responsible for the service input and ouput, also calling process has to wait for the response till calling flow return.

 Now to async service does not return the output at the same time, can compare with the batch jobs. Once batch job completed, it will then callback the flow.


 Now with these two projects you can very well play with the composite and its behavior with callback.


Observations

1. If you redeploy the main  process again then all the running composite, will be aborted.

2.  If you redeploy the new version of main process, new process will start taking the request. On the other side if there is any old process is waiting for the callback in the old version it will continue and will wait till call back.

With the above observation you can very well construct the logic for the other issues.


Please download the application from the url. Open in the jdeveloper and deploy on the integrated server, first

Redeployment of Same version, while process is waiting.

1. First create two three instances, these instances will be waiting on the callback process.




2. Now redeploy the same version of the CorrlationPrimaryProcess to the weblogic server and see the see the EM console. Now see this all the running instances are been aborted.





Redeployment a new Version as default

 1. Now again create two three instances and keep them waiting.

 2. Now deploy a new version 1.2 to the server.



3. Now create 2-3 instances for new version and check these instances.


   
4. Again go back to the 1,0 instance see these process are still running.



5. Now wait for some time and then you will be able to see the instances of old process will also be completed.


Which mean that process which was waiting still will complete the old version, which is now not default.




Play with application to learn more. Post your question, we will be happy to resolve.