简体   繁体   中英

Prevent Temp Queue auto Topic creation in ActiveMQ

I have a Rest service that create temp queues on activeMQ for receive response.

Every request create a temp queue. When I go to Topics list, I view the next:

主题

For each temp queue, is created automatically a topic. The principal problem with it, is that topics have a limit for 1,000 topics.

Then, when limit is exceeded, no more messages is accepted from application in ActiveMQ.

Is posible avoid create automatically Topics for each temp queue ? I have try with tcp://localhost:61616?jms.watchTopicAdvisories=false Also with connectionFactory.setWatchTopicAdvisories(false); and not working.

Thanks

The cause was not close connections:

Connection connection = connectionFactory.createConnection();

I´ve added:

connection.close();

And not more topics are stored.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM