So, we will cover the following in this chapter:
Need for custom JBI components
ServiceMix component helper classes
Create, deploy, and run JBI components
Build and run a sample
Need for Custom JBI Components
We have already seen many ServiceMix components, both JBI compliant and
lightweight. Many of them are available inside the components folder in the
ServiceMix installation. A natural query in this context is "Why does one need
to develop custom components in ServiceMix?". Often I see myself as a lazy
programmer, trying to reuse codes, components, or services rather than hand code
them every time.
??? ??? ??? ???
Developing JBI Components
[ 136 ]
Going by that trend, I am also compelled to look at ServiceMix with an aim to reuse
anything and everything, and not to hand code anything. The proposition looks fine,
but the truth is that the world is not ideal all the time. In an ideal world, we will have
all the ServiceMix components, tools, and hooks available, so that we can assemble
or reconfigure the components to suit our needs. This makes sense in a pure
integration initiative where we only integrate, and do not develop anything??”after
all, JBI and ServiceMix is all about integration.
Pages:
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202