Hi Pawel,

Yes you can add listeners to react on service unit and assembly startup.

The listener interfaces you might find helpfull are:
org.apache.servicemix.jbi.event.ServiceAssemblyListener
org.apache.servicemix.jbi.event.ServiceUnitListener

Once you implement your listeners you register them inside servicemix.xml
with a declaration like:

  <!-- Iniside the sm:container element you register your listeners -->
  <sm:listeners>
            <bean cass="net.pawel.PawlListenerImpl" >
               <!-- Pass the id of your container iniside the implementation
-->
                <property name="container" ref="jbi"/> 
            </bean>
  </sm:listeners>

Hope that helps.
-- 
View this message in context: 
http://old.nabble.com/custom-service-unit-initialization-on-started-event-tp28191268p28226173.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to