Hi all. I deployed a SU with serivcemix-bean component. I want that a POJO
matches with a operation that it´s injecting at the BUS. The operation it is
a call to a endpoint that is serving a Web-Service.

The message in the BUS that i want to match is:
----------------------------------------------------------------------------------------------------------------------
15:35:23,339 | DEBUG | pool-flow.seda.servicemix-http-thread-23 | SedaQueue     
          
| .jbi.nmr.flow.seda.SedaQueue$1  132 | org.apache.servicemix.jbi.n
[EMAIL PROTECTED] dequeued exchange: InOut[
  id: ID:192.168.1.142-11690841e8e-3:7
  status: Active
  role: consumer
  service:
{http://platino.ignos.com/servicios/registro/recibo}ServicioJustificantePdfImplService
  endpoint: endpointJustificanteWs
  operation:
{http://platino.ignos.com/servicios/registro/recibo}generaJustificantePdf
  in: <?xml version="1.0" encoding="UTF-8"?><ns2:Justificante_Registro
xmlns:ns2="http://platino.ignos.com/servicios/registro";
xmlns:soap="http://schemas.xmls
oap.org/soap/envelope/" Versi?n="1.0"><Datos_Firmados>..........etc
----------------------------------------------------------------------------------------------------------------------

I have the next xbean.xml:
----------------------------------------------------------------------------------------------------------------------
<beans xmlns:bean="http://servicemix.apache.org/bean/1.0";
           xmlns:platino="http://com.ignos.platino.orquestacion/ejemplo";>

  <bean:endpoint service="platino:ServicioEjemploBean"
endpoint="ejemploEndPoint">
      <bean:bean>
          <bean class="com.ignos.platino.orquestacion.EjemploBean" />
      </bean:bean>
  </bean:endpoint>
</beans>
----------------------------------------------------------------------------------------------------------------------

And this POJO:
----------------------------------------------------------------------------------------------------------------------
public class EjemploBean {

    private static final Log log = LogFactory.getLog(EjemploBean.class);

    private MessageExchange generaJustificantePdf;

    @Resource
    DeliveryChannel channel;

    @Operation(name = "generaJustificantePdf")
    public void myMethod(MessageExchange messageExchange) {
        this.generaJustificantePdf = messageExchange;
        log.info("generaJustificantePdf() called with exchange: " +
messageExchange);
    }
}
----------------------------------------------------------------------------------------------------------------------
Why the POJO are not matching the operation? Any ideas?.
-- 
View this message in context: 
http://www.nabble.com/Servicemix-bean-operation-matches-tf4917821s12049.html#a14075109
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to