home}/components" includes="*shared*"/>
Execute ant to build the sample as shown as follows:
cd ch07\CustomComponent
ant
We can bring up ServiceMix by running the following commands:
cd ch07\CustomComponent
%SERVICEMIX_HOME%/bin/servicemix servicemix.xml
When we start ServiceMix, the JBI container is configured using the above
servicemix.xml file. To run the demo, there is a Client.html file provided again
in the top folder.
Chapter 7
[ 145 ]
Summary
In this chapter, we looked at the core API from ServiceMix as well as from the
JBI specification, which will function as useful helper classes using which we can
develop lightweight components quickly.
We have also custom coded a JBI component and deployed it into the JBI bus. You
may not want to always custom code components. Many times, JBI components will
be available as off-the-shelf-libraries. Such components can take part in the message
exchanges through the ESB and can provide integration with external services like
CICS and CORBA, for example. If by any chance you want to create your own
JBI components, then you can follow the guidelines presented in this chapter as a
starting point.
Pages:
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213