Versions Compared

Key

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

...

Creating the JBI Service Engine

Let's examine the classes created by the servicemix-service-engine Maven archetype in this simple SE we're developing:

MyBootstrap.java - Implements javax.jbi.component.Boostrap which is called by the JBI container when the component is installed and uninstalled. This is where you place logic to set up and tear down things when the component is started and stopped.

MyComponent.java - Extends the DefaultComponent, a convience class that makes creating JBI components much easier and provides lifecycle management of components deployed to the JBI container. This is where the

MyEndpoint.java - 1)

Creating the Maven Subprojects For the Service Unit and Service Assembly

...