activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omoumen <omou...@micropole-univers.com>
Subject Spring2.0 and ActiveMQ4.1.0
Date Mon, 09 Mar 2009 16:42:18 GMT

Hi,
I have chenged the Spring configuration of my producer, and I was implements
the PooledConnectionFactory classe.
My configuration is the folowing:
Spring 2.0
ActiveMQ4.1.0
Tomcat6.0
JDK 5.0.15
when the producer try to send the message I has the folowing error: 
java.lang.NoSuchMethodError:
javax.jms.ConnectionFactory.createConnection()Ljavax/jms/Connection;

My Spring configuration is the following:

<beans>
	<bean id="producteur" class="parcours.dude.jmsactivemq102.Producteur"
singleton="false">		
		<property name="jmsTemplate" ref="jmsTemplate" />
		<property name="appelDudeLogger" ref="appelDudeLogger" />
	</bean>
	
	<bean id="jmsFactory"
class="org.apache.activemq.pool.PooledConnectionFactory"
destroy-method="stop">
    <property name="connectionFactory">
      <bean class="org.apache.activemq.ActiveMQConnectionFactory">
		<property name="brokerURL" value="tcp://localhost:61611" />
		<property name="useAsyncSend" value="true" />
		<property name="copyMessageOnSend" value="false" />
		<property name="disableTimeStampsByDefault" value="true" />
      </bean>
    </property>
    <property name="maximumActive" value="128" /> 
 </bean>
 <bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">    
        <property name="connectionFactory">        
            <ref local="jmsFactory"/>    
        </property>
        <property name="defaultDestination" ref="defaultDestination" />
    </bean>
    
    <!--  ActiveMQ destination to use  by default -->
  <bean id="defaultDestination"
        class="org.apache.activemq.command.ActiveMQQueue">
    <constructor-arg value="DUDE.QUEUE"/>
  </bean>

</beans>

Can you tel me please how can I resolve this problem?
Thank you very match.

-- 
View this message in context: http://www.nabble.com/Spring2.0-and-ActiveMQ4.1.0-tp22413687p22413687.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.


Mime
View raw message