groovy - Connecting to ActiveMQ form grails -
i trying connect remote activemq server grails app. error:
error failover.failovertransport - failed connect transport after: 5 attempt(s) not refresh jms connection destination 'queue' - retrying in 5000 ms. cause: jms connection has failed: connect timed out
transport configuration of actievmq server :
<transportconnector name="openwire" uri="tcp://0.0.0.0:61616?maximumconnections=1000&wireformat.maxframesize=104857600"/> <transportconnector name="amqp" uri="amqp://0.0.0.0:5672?maximumconnections=1000&wireformat.maxframesize=104857600"/> <transportconnector name="stomp" uri="stomp://0.0.0.0:61613?maximumconnections=1000&wireformat.maxframesize=104857600"/> <transportconnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumconnections=1000&wireformat.maxframesize=104857600"/> <transportconnector name="ws" uri="ws://0.0.0.0:61614?maximumconnections=1000&wireformat.maxframesize=104857600"/>
resources.groovy:
beans = { jmsconnectionfactory(singleconnectionfactory) { targetconnectionfactory = { activemqconnectionfactory cf -> brokerurl = "failover:(tcp://brokeripaddress:61616?connectiontimeout=5000)?maxreconnectdelay=5000&startupmaxreconnectattempts=5" } }}
it network problem activemq server not accessible machine. , working conf posted originally.
Comments
Post a Comment