Not sure if the file got uploaded, here is the xml file:
<?xml version="1.0"?>
<beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0";
       xmlns:demo="urn:servicemix:soap-binding"
       xmlns:sm="http://servicemix.apache.org/config/1.0";>

  <classpath>
    <location>.</location>
  </classpath>
  
 <sm:container id="jbi"
    useMBeanServer="true"
    createMBeanServer="true"
    dumpStats="true"
    statsInterval="10">
    
    <sm:activationSpecs>
    
   <sm:activationSpec componentName="servicemix-jsr181"  
            endpoint="test-TESTEP"
            service="demo:TESTS"
            destinationService="NewBindingComponent">
    <sm:component>
     <jsr181:component 
      >
      <jsr181:endpoints>
       <jsr181:endpoint pojoClass="class1" 
        annotations="none" 
        service="demo:TESTS" 
        endpoint="bcgi-TESTEP">
       </jsr181:endpoint>
      </jsr181:endpoints>
     </jsr181:component>
    </sm:component>
   </sm:activationSpec>    
   <sm:activationSpec componentName="NewBindingComponent"  
            endpoint="NewBindingComponent"
            service="NewBindingComponent" >
    <sm:component>
          <bean class="NewClass.NewBindingComponent" />
    </sm:component>
   </sm:activationSpec> 
   
  </sm:activationSpecs>
 </sm:container>  
</beans>



ajayk_goel wrote:
> 
> I am trying to send message to the BUS from within the pojo but I keep
> getting "Cannot find an instance of the service: <serviceName>".  I am
> using the soap-binding example from "apache-servicemix-3.0-M2-incubating".
> My xbean file is submitted as an attachment, I was hoping I could set the
> destination address in the xlm file but seems like adding
> destinationService here dpes not do anything so my code in the pojo looks
> like this 
> 
> ServiceMixClient client = new ServiceMixClientFacade(this.context);
> QName service = new QName("", "RTBBindingComponent");
> EndpointResolver resolver = client.createResolverForService(service);
> InOut exchange = client.createInOutExchange();
> NormalizedMessage inMessage = exchange.createMessage();
> inMessage.setProperty("Test","Test");
> exchange.setService(service);
> client.send(exchange);
> 
> What am I missing?
> 

-- 
View this message in context: 
http://www.nabble.com/Accessing-JBI-from-jsr181-pojo-tf2794472s12049.html#a7796237
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.

Reply via email to