Book Image

Service Oriented Java Business Integration

Book Image

Service Oriented Java Business Integration

Overview of this book

Table of Contents (23 chapters)
Service Oriented Java Business Integration
Credits
About the Author
Acknowledgement
About the Reviewers
Preface

Chapter 13. 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. 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...