From the entire discussion we have had in this chapter, let us build a POJO binding sample. The codebase for the sample is located in the folder ch09\Jsr181BindPojo
.
In this POJO binding sample use case, we will integrate POJO components with ServiceMix JBI components so that they will take part in message exchanges with the NMR. The POJO class used in the sample can be replaced with your code performing transformation, depending upon your business scenario. In our sample here, we will use a set of components integrated in the ESB as shown in the following figure:
A simple POJO class alone is enough to demonstrate the binding sample. However, we will also expose POJO as a normal web service, access WSDL (yes, really), and run an Axis client against the WSDL to generate client stubs to access the POJO service remotely. To facilitate all this, we will first integrate our POJO class (HelloServicePojo) with a servicemix-jsr181
component. Now as we know, HTTP...