This helps us to implement many
functionalities such as:
Intercepting and re-routing the services.
Wrapping and unwrapping messages targeted to a service.
Using request-message, formatted for a particular service type, for a different
service type.
In this chapter, we will first revisit JDK Proxy classes. This will set a background
for further reading wherein we will explain JBI Proxy in detail with examples for
multiple scenarios. Then the developer will be able to make use of Proxy pattern
within the JBI-based ESB, to suit their technical requirements.
We will cover the following in this chapter:
Proxy design pattern in general
Proxy support in Java SDK with examples
ServiceMix JBI Proxy
A few samples of defining and exposing proxies to services in the JBI bus
A practical use of JBI Proxy??”to proxy external web services in the JBI bus
??? ??? ??? ??? ??? ??? ??? ???
JBI Proxy
[ 238 ]
Proxy??”A Primer
Wikipedia defines Proxy as:
Proxy may refer to something which acts on behalf of something else.
In the software a proxy is a substitute for a target instance and is a general pattern
which appears in many other patterns in different variants.
Pages:
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330