Versions Compared

Key

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

...

  1. The ServiceMix container reads the servicemix.xml file and instantiates the components specified through SpringJBIContainer.
  2. SpringJBIContainer registers the components and the activationSpecs in its afterPropertiesSet method. In this case, httpReceiver and stockQuote are registered as activationSpecs.
  3. SpringJBIContainer uses ActivationSpec class as the container for component specific properties such as routing information.

Some of its ActivationSpec's methods are:
setId - takes the spring:id=jbi and sets the id of the container to "jbi"
setcomponentName = sets componentName to httpReceiver on one invocation and "stockQuote" when the other component is instantiated.
setEndpoint - sets the endpoint properties from the servicemix.xml file
setService - sets the service properties from xml file setDestinationService = sets the destinationService for each component

...