Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section
Column

All endpoints must inherit the Endpoint class, but you will usually prefer a more specialized derived class from the following hierarchy:

Column
Code Block
titleProvide endpoint
package com.foo;

import javax.jbi.messaging.MessageExchange;
import javax.jbi.messaging.NormalizedMessage;

import org.apache.servicemix.common.endpoints.ProviderEndpoint;

/**
 * @org.apache.xbean.XBean element="provider"
 */
public class MyProviderEndpoint extends ProviderEndpoint {

    protected void processInOut(
                  MessageExchange exchange, 
                  NormalizedMessage in, 
                  NormalizedMessage out) throws Exception {
      // TODO: process in message and populate out message
    }

}

...

Other concepts

  • Deployer
  • Bootstrap
  • Endpoint resolution
  • URI support
  • XBean deployment
  • Lightweight configuration
  • Configuration MBean
  • Multiple endpoints (=> marker interface)

Tutorials

Service Engines

This tutorial will help you creating a Service Engine using ServiceMix JCF.

...