You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by kermitt <he...@genesys.com> on 2007/01/29 17:51:09 UTC
Registration error
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.
Re: Registration error
Posted by Guillaume Nodet <gn...@gmail.com>.
The information on the activationSpec for the target destination
are not used when you use a standard JBI component like
servicemix-jms. Such informations are defined on the <jms:endpoint />
and in your case, they default to the service / endpoint attribute.
You need to specify the targetService attribute on the endpoint:
<sm:activationSpec componentName="ConsumerQueueB">
<sm:component>
<jms:component>
<jms:endpoints>
<jms:endpoint
service="gen:ConsumerQueueB"
endpoint="gen:ConsumerQueueB"
targetService="gen:trace"
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>
On 1/29/07, kermitt <he...@genesys.com> wrote:
>
> 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.
>
>
--
Cheers,
Guillaume Nodet
------------------------
Architect, LogicBlaze (http://www.logicblaze.com/)
Blog: http://gnodet.blogspot.com/