Prev | Current Page 317 | Next

Binildas A Christudas

"Service-Oriented Java Business Integration"

At times, you may also need to deal with
non-SOAP formatted, but plain XML messages. We also need to stream such
messages too through firewalls to the bus and get them processed.
This chapter showed you how we can do this using XStream. Some legacy
integration scenario might warrant this approach. You might also have noted the
fact that we can replace the XStream used in this sample with any other Java XML
binding framework such as Castor or XMLBeans, but XStream's advantage is the
built-in integration XStream has with the ServiceMix JBI.
The ServiceMix JBI bus provides a framework for many lightweight integration
libraries like XStream. It also realizes many design patterns used in software
engineering like the well known Proxy pattern which we will explore in the
next chapter.
JBI Proxy
One of the most useful classes introduced by JDK 1.3 is the Proxy class in the
java.lang.reflect package. It allows us to create classes implementing a
particular type (interface) on the fly. ServiceMix provides a similar API in JBI so that
we can proxy a particular service in the JBI bus.


Pages:
305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329