client hanged while using Spring2.0Rc2 mdp supporting feature

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

client hanged while using Spring2.0Rc2 mdp supporting feature

Matthew Xie
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:
 
  <bean id="jmsRecieveFactory" class="org.apache.activemq.pool.PooledConnectionFactory">
        <property name="connectionFactory">
                <bean class="org.apache.activemq.ActiveMQConnectionFactory"> 
                        <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>

 
  <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>

 
  <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.
Reply | Threaded
Open this post in threaded view
|

Re: client hanged while using Spring2.0Rc2 mdp supporting feature

chirino
any time something hangs.. stack traces of all the threads in the
system usualy helps.

On 8/7/06, Matthew Xie <[hidden email]> wrote:

>
> 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.
>
>


--
Regards,
Hiram

Blog: http://hiramchirino.com