0
我得在resource.groovy定義如下變化ActiveMQConnectionFactory brokerURL在Grails運行時的
beans = {
jmsConnectionFactory(org.apache.activemq.pool.PooledConnectionFactory) {bean ->
connectionFactory = {org.apache.activemq.ActiveMQConnectionFactory cf ->
brokerURL = brokerDestination
}
}
}
現在豆,有沒有辦法來動態改變brokerURL在運行,因此也重啓ActiveMQ的連接?