activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Xie <ant_mira...@163.com>
Subject client hanged while using Spring2.0Rc2 mdp supporting feature
Date Mon, 07 Aug 2006 09:56:46 GMT

i meet a problem that client hang while using Spring2.0Rc2 mdp supporting
feature on starting client if AMQ server is not start.

I am using Tomcat 5.5.17 servlet server. spring 2.0Rc2.
following is my spring xml configuration:
  <!-- bellow is for JMS mdp usage -->
  <bean id="jmsRecieveFactory"
class="org.apache.activemq.pool.PooledConnectionFactory">
	<property name="connectionFactory">
		<bean class="org.apache.activemq.ActiveMQConnectionFactory"> <!--
;jms.useAsyncSend=true -->
			<property name="brokerURL"
value="failover:(tcp://ip1:61616,tcp://ip261616)?randomize=false"/>
		</bean>
	</property>
  </bean>
  
  <bean id="jmsRecieveTransactionManager"
class="org.springframework.jms.connection.JmsTransactionManager"> 
    <property name="connectionFactory"> 
        <ref local="jmsRecieveFactory"/> 
    </property> 
  </bean>
<!-- test message recieve from localhost -->
  <!-- Let's define MBPOJOs here -->
  <bean id="sc_mdpojo"
class="com.jl.framework.jms.util.support.JMSRecieveBean" singleton="false">
    <property name="jmsCallbackable">
        <bean class="com.jl.framework.jms.support.JMSCallbackTest"/>   
    </property>
  </bean>

  <!-- and this is the default message listener container for sc.
  	   for more litenerContainers setting pls append prefix eg.
sc_listenerContainerB, sc_listenerContainerC ...-->
  <bean id="sc_listenerContainerA"
  			class="com.jl.framework.jms.util.listener.JLMessageListenerContainer">
     <property name="concurrentConsumers" value="5"/>
     <property name="connectionFactory" ref="jmsRecieveFactory" />
     <property name="destinationName" value="DM_BJTD.Queue" />
     <property name="messageListener" ref="sc_mdpojo" />
     <property name="transactionManager" ref="jmsRecieveTransactionManager"
/>
  </bean>

on starting tomcat server, it will hang as repeating reconnect to the amq
server.
could anyone meet such problem before?Appreciating any replies!
Thx!

Matt.
-- 
View this message in context: http://www.nabble.com/client-hanged-while-using-Spring2.0Rc2-mdp-supporting-feature-tf2062687.html#a5682253
Sent from the ActiveMQ - User forum at Nabble.com.


Mime
View raw message