Hi there,
 
I am trying to use camel inside servicemix. So in order to send message
to camel, I used JMS queues.
It seems I am making mistakes in defining the JMS SU, because I am
getting this exception when deploying the SA on smx :
NoSuchBeanDefinitionException: No bean named 'connectionFactory' is
defined
 
Here is the bean from my JMS SU :
<?xml version="1.0" encoding="UTF-8"?>
<beans  xmlns="http://www.springframework.org/schema/beans";
  xmlns:jms="http://servicemix.apache.org/jms/1.0";
  xmlns:amq="http://activemq.org/config/1.0";
  xmlns:amqpool="http://jencks.org/amqpool/2.0";
  xmlns:routerRecherche="http://172.31.196.135:8192/jbi/RouterRecherche";
  xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://servicemix.apache.org/jms/1.0
http://servicemix.apache.org/schema/servicemix-jms-3.2.3.xsd
       http://activemq.org/config/1.0
http://activemq.apache.org/schema/core/activemq-core-4.1.1.xsd
       http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>
 
 <jms:provider  service="routerRecherche:AsyncRechercheRequestJMS"
     endpoint="provider"
     destinationName="queue.recherche.Request"
     connectionFactory="#connectionFactory" />
 
 <jms:consumer  service="routerRecherche:AsyncRechercheRequestJMS"
     endpoint="consumer"
     destinationName="queue.recherche.Response"
     connectionFactory="#connectionFactory"
     concurrentConsumers="8" />
 
 <jms:provider  service="routerRecherche:AsyncRechercheResponseJMS"
     endpoint="provider"
     destinationName="queue.recherche.Response"
     connectionFactory="#connectionFactory" />
 
 <jms:consumer  service="routerRecherche:AsyncRechercheResponseJMS"
     endpoint="consumer"
     destinationName="queue.recherche.Response"
     connectionFactory="#connectionFactory"
     concurrentConsumers="8" />
 
 
 <amqpool:xa-pool  id="connectionFactory" 
      url="tcp://localhost:61616" />
</beans>
 
I am quite sure I am doing a beginner's mistake. Anyone has any idea
about it?
 
Thanks
Vivian

Reply via email to