activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jiunjiunma <>
Subject cannot get connection when using activemq on ec2
Date Tue, 06 Nov 2012 02:33:10 GMT
    I was running activemq with JMS transaction. When I ran activemq on my
localhost, I could get the jms connection and everything worked fine, but
when I tried to use an activemq on EC2, the connection always hang. (If I
turned off the JMS transaction and use no-transactioned route, I have no
problem getting connection from the EC2 activemq so that kind of ruled out
my security group setting.) 
    Had anybody tried to run JMS xa against instance on EC2? Is there any
special setting I have to do? I'd really appreciate your help.


P.S. snippets of my camel setting are as follows:

    <bean id="jmsConnectionFactory"
        <property name="brokerURL" value="${activeMQBrokerURL}"/> 

    <bean id="pooledConnectionFactory"
init-method="start" destroy-method="stop">
        <property name="maxConnections" value="8" />
        <property name="connectionFactory" ref="jmsConnectionFactory" />

    <bean id="jmsConfig"
        <property name="connectionFactory" ref="pooledConnectionFactory"/>
        <property name="concurrentConsumers" value="10"/>

    <bean id="transactionManager"
        <property name="connectionFactory" ref="pooledConnectionFactory"/>

    <bean id="activemq"
        <property name="transacted" value="true"/>
        <property name="transactionManager" ref="transactionManager"/>
        <property name="concurrentConsumers" value="5"/>

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

View raw message