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&amp;wireformat.maxframesize=104857600"/>         <transportconnector name="amqp" uri="amqp://0.0.0.0:5672?maximumconnections=1000&amp;wireformat.maxframesize=104857600"/>         <transportconnector name="stomp" uri="stomp://0.0.0.0:61613?maximumconnections=1000&amp;wireformat.maxframesize=104857600"/>         <transportconnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumconnections=1000&amp;wireformat.maxframesize=104857600"/>         <transportconnector name="ws" uri="ws://0.0.0.0:61614?maximumconnections=1000&amp;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

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -