I have a requirement where in, environemnt wise one property value changes, like if one element value is AAA then I need to run the message in Test environement only, if BBB then I need t run the message in production, so when xml with element value AAA comes, that should not be processed in Prod. the inoput with the element value will be retrieved in the body payload.
for this we are thing to store that element value in the JNDI tree and retrive it in the OSB using java callout(not very sure, whther java callout or any other function to use for this).
Please advice me how I can implement this.
Using if condition with OR is not advisable as it may process either of AAA and BBB, which is not acceptable.
Any ideas how to deal with this behaviour.
Thansk a lot.
no, how I can route from test system to production system, with the same osb flow.
Right now, we followed this way: correct me if this is fine.
in xquery file have customization entires, while doing the deployment to other environment fetch the values from customization params and use it in the flow, is that a good solution?
I would do it this way.
Find out the environment details - TEST or PROD.
Use this value and the XML indicator AAAA or BBBB in a and condition and invoke further processing.
If AAAA and TEST - process message or If BBBB and PROD - process the message.So in each environment only one of this will happen.
Have a look at Routing Actions, Routing Table Actions or Dynamic Routing Actions... It's probably a better approach to handle your case...
Hope this helps...