Thanks James. If you don't mind, a couple more questions. The builds we are using are: AMQ 5.0.0 Spring 2.5.1 Tomcat 5.5.25 Java 1.5.0 Hibernate 3.2.5 (any risk of conflicting libs?)
Does this jive? And, the url in the documentation linking to a sample Spring 2 XML is http 404. Believe it was in reference to a post/online ref for Spring and xbeans. Thanks for the response. Brian b_w wrote: > > 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"?> > <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" > "http://www.springframework.org/dtd/spring-beans.dtd"> > > <beans> > > <bean id="propertyConfigurer" > class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> > <property name="locations"> > <list> > <value>file://app.properties</value> > </list> > </property> > </bean> > > <bean id="jmsFactory" destroy-method="stop" > class="org.apache.activemq.pool.PooledConnectionFactory"> > <property name="connectionFactory"> > <bean > class="org.apache.activemq.ActiveMQConnectionFactory"> > <property name="brokerURL" > value="failover:(vm://localhost?brokerConfig=xbean:/activemq.xml)?wireFormat.maxInactivityDuration=1000"/> > <property name="optimizeAcknowledge" value="false"/> > <property name="copyMessageOnSend" value="false"/> > <property name="useAsyncSend" value="true"/> > <property name="useCompression" value="true"/> > </bean> > </property> > </bean> > > <bean id="myJmsTemplate" > class="org.springframework.jms.core.JmsTemplate"> > <property name="connectionFactory"> > <ref local="jmsFactory"/> > </property> > <property name="pubSubDomain"> > <value>true</value> > </property> > <property name="timeToLive" value="60000"/> > </bean> > > 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: {wireFormat.maxInactivityDuration=1000} > at > org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:289 > > 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 > Brian > > > -- View this message in context: http://www.nabble.com/Migration-from-Spring-1-AMQ-4.1-to-Spring-2-AMQ-5.0-tp15013046s2354p15016616.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.