activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b_w>
Subject Migration from Spring 1/AMQ 4.1 to Spring 2/AMQ 5.0
Date Tue, 22 Jan 2008 05:43:09 GMT

Thought this would have been a pain free exercise...  
Although replacing the libs and building the project is clean, running the
app results in runtime exceptions.

Should our existing Spring 1 XML configuration files work with Spring 2/AMQ
5.0 libs?

Using the following:
<?xml version="1.0" encoding="UTF-8"?>


  <bean id="propertyConfigurer"
    <property name="locations">

	<bean id="jmsFactory" destroy-method="stop"
    <property name="connectionFactory">
			<bean class="org.apache.activemq.ActiveMQConnectionFactory">
				<property name="brokerURL"
        <property name="optimizeAcknowledge" value="false"/>
        <property name="copyMessageOnSend" value="false"/>
        <property name="useAsyncSend" value="true"/>
        <property name="useCompression" value="true"/>

	<bean id="myJmsTemplate" class="org.springframework.jms.core.JmsTemplate">
		<property name="connectionFactory">
			<ref local="jmsFactory"/>
		<property name="pubSubDomain">
    <property name="timeToLive" value="60000"/>
 Results in the following exception:
org.springframework.jms.UncategorizedJmsException: Uncategorized exception
occured during JMS processing; nested exception is javax.jms.JMSException:
Could not create Transport. Reason: java.lang.IllegalArgumentException:
Invalid connect parameters: {wireFormat.maxInactivityDuration=1000}; nested
exception is java.lang.IllegalArgumentException: Invalid connect parameters:

Any ideas, why this occurs?  Have been through the online references and
searched the forum but have not been able to find a similar problem.

Thanks in advance

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message