0 Replies Latest reply on Apr 27, 2010 1:50 AM by Vishal Sharma

    ServiceName  specified for routing, but can't find it registered

    Vishal Sharma Newbie

      I have a wiretap in my eip project i am trying to use jmsconsumer service as an inlistener in the wiretap

       

      <eip:wire-tap service="replaceMe:wireTap" endpoint="wiretapendpoint">

          <eip:target>

            <eip:exchange-target service="replaceMe:camelservice1" />

          </eip:target>

          <eip:inListener>

            <eip:exchange-target service="replaceMe:MyConsumerService" />

          </eip:inListener>

        </eip:wire-tap>

       

       

      but i am getting the following exception while hitting it through the soapui.

       

       

       

      11:14:41,613 |WARN  - DefaultBroker                  - ServiceName (MyConsumerService) specified for routing, but can't find it registered

      11:14:41,613 |WARN  - DefaultBroker                  - ServiceName (MyConsumerService) specified for routing, but can't find it registered

      11:14:41,613 |ERROR - EIPComponent                   - Error processing exchange InOut[

        id: ID:172.16.80.83-1283d95094e-5:3

        status: Active

        role: provider

        service: wireTap

        endpoint: wiretapendpoint

        operation: CheckReservation

        in: <?xml version="1.0" encoding="UTF-8"?>

      ]

      javax.jbi.messaging.MessagingException: Could not find route for exchange: InOnly[

        id: ID:172.16.80.83-1283d95094e-9:6

        status: Active

        role: provider

        service: MyConsumerService

        in: <?xml version="1.0" encoding="UTF-8"?><sam:CheckReservationRequest xmlns:sam="http://servicemix.apache.org/sampleApp" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

               <sam:reservationElement>

                  <sam:Date>12/12/2010</sam:Date>

                  <sam:From>delhi</sam:From>

                  <sam:To>london</sam:To>

                  <sam:Passengers>2</sam:Passengers>

               </sam:reservationElement>

            </sam:CheckReservationRequest>

      ] for service: MyConsumerService and interface: null

              at org.apache.servicemix.jbi.nmr.DefaultBroker.sendExchangePacket(DefaultBroker.java:297)

              at org.apache.servicemix.jbi.security.SecuredBroker.sendExchangePacket(SecuredBroker.java:88)

              at org.apache.servicemix.jbi.container.JBIContainer.sendExchange(JBIContainer.java:830)

              at org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.doSend(DeliveryChannelImpl.java:395)

              at org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.send(DeliveryChannelImpl.java:431)

              at org.apache.servicemix.common.EndpointDeliveryChannel.send(EndpointDeliveryChannel.java:79)

              at org.apache.servicemix.common.endpoints.SimpleEndpoint.send(SimpleEndpoint.java:67)

              at org.apache.servicemix.eip.patterns.WireTap.sendToListenerAndTarget(WireTap.java:255)

              at org.apache.servicemix.eip.patterns.WireTap.processAsync(WireTap.java:205)

              at org.apache.servicemix.eip.EIPEndpoint.process(EIPEndpoint.java:161)

              at org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)

              at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)

              at org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)

              at org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)

              at org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)

              at org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)

              at org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)

              at java.lang.Thread.run(Thread.java:595)

       

       

       

       

       

      Can any body help me out in this. I have checked my SA and i have included it in the pom of sa. following are jms endpoints:

       

      <jms:endpoint service="replaceMe:MyConsumerService"

                        endpoint="jms2"

                        targetService="replaceMe:wireTap"

                         

                        role="consumer"

                        destinationStyle="queue"

                        jmsProviderDestinationName="queue/A"

                        jndiConnectionFactoryName="connectionFactory"

                         

                        defaultMep="http://www.w3.org/2004/08/wsdl/in-out"

                         

                        connectionFactory="#connectionFactory" />

       

       

        <jms:endpoint service="replaceMe:MyProviderService"

                        endpoint="myProvider"

                        role="provider"

                        targetService="replaceMe:MyConsumerService"

                        destinationStyle="queue"

                        jmsProviderDestinationName="queue/A"

                        connectionFactory="#connectionFactory"

                        wsdlResource="classpath:Reservation-ws.wsdl" />

       

       

       

      <amq:connectionFactory id="connectionFactory" brokerURL="tcp://localhost:61616" />

       

       

      Thanks

      Vishal