Yes, I tried both this morning after your reply (what you advised, didn't work, 
then went to the website, didn't work neither)

So I was learning about spring and amq from the website you gave me and some 
others. Could not make it work this morning. Sorry I did not answer, I wanted 
to have significant things to say when I do. finally, I got another task to do 
this afternoon (quite urgent, so I forgot about the feedback), I don't know If 
I will be able to get back to my ESB prototype before Monday. I'll keep you 
updated about this, and ask for more help by then if I can't manage to find the 
answer myself.

Thanks for your consideration! ;)
Vivian
        

-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:[email protected]] 
Envoyé : vendredi 7 août 2009 11:55
À : [email protected]
Objet : Re: JMS - NoSuchBeanDefinitionException connectionFactory

Be careful, it's brokerURL (with URL in caps).

Regards
JB

Jean-Baptiste Onofré wrote:
> Hi Vivian,
> 
> Try to replace the url property by the brokerUrl.
> 
> I think that the documentation is not correct. Refering to the 
> ActiveMQ
> documentation:
> http://activemq.apache.org/spring-support.html
> 
> the connection factory expects a brokerUrl property and not url.
> 
> Regards
> JB
> 
> Madesclair Vivian wrote:
>> 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