Hi,

  1) Iam having a simple POJO which implements
ComponentLifeCycle,MessageExchangeListener interfaces
  2) This POJO is configured using servicemix.xml for this component(Not the
servicemix.xml shipped with servicemix)
  3) Iam using servicemix3.1.0
 
I have given service name for the POJO both in servicemix.xml and init
method as follows

in init method

  context.activateEndpoint(new QName("http://xxx.com/bescocr_031807";,
"POJOServ"), "endpoint");

in servicemix.xml for this component

  <sm:serviceunit id="jbi">
    <sm:activationSpecs>
      <!-- Put lw components here -->
      <sm:activationSpec service="bescocr:POJOServ">
        <sm:component>
          <bean class="com.xxx.MyPOJO">
          </bean>
        </sm:component>
      </sm:activationSpec>
    </sm:activationSpecs>
  </sm:serviceunit>

Problem:

   If i don't give service name in init method of POJO, this component is
not being registered.

  but ideally i should not give the service name here in init method.


-- 
View this message in context: 
http://www.nabble.com/How-to-configure-servicename-in-servicemix.xml-LW-container-component-tf3999211s12049.html#a11358068
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to