Hi folks,
Here is a code snipplet of my servicemix.xml, using a JMS client I want JMS
consumed being traced by my gen:trace component:
<sm:activationSpec
componentName="ConsumerQueueB"
service="gen:ConsumerQueueB"
destinationService="gen:trace">
<sm:component>
<jms:component>
<jms:endpoints>
<jms:endpoint
service="gen:ConsumerQueueB"
endpoint="gen:ConsumerQueueB"
role="consumer"
defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
destinationStyle="queue"
jmsProviderDestinationName="queue/B"
connectionFactory="#jmsFactory" />
</jms:endpoints>
</jms:component>
</sm:component>
</sm:activationSpec>
<sm:activationSpec
componentName="gen:trace"
service="gen:trace">
<sm:component>
<bean
class="org.apache.servicemix.components.util.TraceComponent" />
</sm:component>
</sm:activationSpec>
I got the following exception:
INFO - JBIContainer - ServiceMix JBI Container
(ServiceMix) started
WARN - DefaultBroker - ServiceName
({http://www.xxx.com/jbi/}ConsumerQueueB) specified for routing, but can't
find it registered
ERROR - MultiplexingConsumerProcessor - Error while handling jms message
javax.jbi.messaging.MessagingException: Failed to resolve endpoint:
org.apache.servicemix.jbi.NoServiceAvailableException: Cannot find an
instance of
the service: {http://www.xxx.com/jbi/}trace
at
org.apache.servicemix.jbi.nmr.DefaultBroker.resolveAddress(DefaultBroker.java:364)
at
org.apache.servicemix.jbi.nmr.DefaultBroker.sendExchangePacket(DefaultBroker.java:270)
at
org.apache.servicemix.jbi.container.JBIContainer.sendExchange(JBIContainer.java:793)
at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.doSend(DeliveryChannelImpl.java:381)
at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.send(DeliveryChannelImpl.java:417)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.sendConsumerExchange(AsyncBaseLifeCycle.java:546)
at
org.apache.servicemix.jms.multiplexing.MultiplexingConsumerProcessor$1.run(MultiplexingConsumerProcessor.java:98)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.servicemix.jbi.NoServiceAvailableException: Cannot
find an instance of the service: {http://www.xxx.com/jbi/}trace
at
org.apache.servicemix.jbi.resolver.ServiceNameEndpointResolver.createServiceUnavailableException(ServiceNameEndpointResolver.java:61)
at
org.apache.servicemix.jbi.resolver.EndpointResolverSupport.resolveEndpoint(EndpointResolverSupport.java:40)
at
org.apache.servicemix.jbi.nmr.DefaultBroker.resolveAddress(DefaultBroker.java:361)
... 9 more
what is wrong ?
--
View this message in context:
http://www.nabble.com/Registration-error-tf3136940s12049.html#a8692975
Sent from the ServiceMix - User mailing list archive at Nabble.com.