-
Book Overview & Buying
-
Table Of Contents
Service Oriented Java Business Integration
This section covers from end to end, the creation, deployment, and running of a sample JBI component in ServiceMix. Following the basics demonstrated in this chapter, readers can code JBI components to suit their own requirements. We will also see many such components in the examples in coming chapters. The code for this sample is kept in ch07\CustomComponent folder.

HttpInterceptor, as the name implies, will intercept messages coming in the HTTP channel. It then prints out the message to the console, and sends some message back through the response channel. To quickly code our component, we will extend the ServiceMix component helper class namely TransformComponentSupport.
This is demonstrated in the following code:
public class HttpInterceptor extends TransformComponentSupport
{
public HttpInterceptor(){}
protected boolean transform(MessageExchange exchange, NormalizedMessage in,NormalizedMessage out) throws MessagingException...
Change the font size
Change margin width
Change background colour