Java Integration
Transform Anything with Java
The example is to create a simple WS operation based routing.
1. Open Eclipse > New > Oracle Service Bus Project > Name it as routing.
2. Create the folders ProxyService, BusinessService, xsd, wsdl
3. Let us start with creating a Business service by right clicking BusinessService > New > Business Service. (Name it as bsRouting)
4. On the General Tab > Choose WSDL Based Service > Select any service with minimum 2 operation that you may have.
For the ease I have used an existing project which you can find from
SOA Project Math Two Operation
Operation based Routing in OSB



5. Move the xsd, wsdl files to their respective folders as above.
6. Now Right click on bsRouting.biz(BusinessService) > Oracle Service Bus > Generate Proxy Service
7. Goto the Message flow directly and remove the routing and let us place an operational Branch.

8. Add an additional operational Branch as Add.
10. For each branch add a Route like below.

11. After the route is created, we have to add Routing to each route. Now we have to handle the default route which should be an invalid route.
12. Add a Pipeline Pair to the default, then a Stage and a Raise Error. and on its properties, place a custom error code for you to understand.
13. Deploy the same to OSB and test it.




This completes our OSB basic routing example.