Tag Archives: ActiveMQ

Using CachingConnectionFactory with Spring JmsTemplate: What problem does it solve?


From Spring framework API docs for org.springframework.jms.core.JmsTemplate, “…The ConnectionFactory used with this template should return pooled Connections (or a single shared Connection) as well as pooled Sessions and MessageProducers. Otherwise, performance of ad-hoc JMS operations is going to suffer. The simplest option is to use the Spring-provided SingleConnectionFactory as a decorator for your target ConnectionFactory, […]

Apache ActiveMQ – How to resolve java.io.IOException: Too many open files exception?


Have worked on ActiveMQ for quite a while, and there’s one annoying exception – java.io.IOException: Too many open files – which we see time to time. [localhost:61613] ERROR TransportConnector – Could not accept connection : Too many open files [or@0.0.0.0:8161] WARN  log – EXCEPTION java.io.IOException: Too many open files at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method) at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:145) at […]

How to quickly configure authorization settings in ActiveMQ?


Configuration file: ACTIVEMQ_HOME/conf/activemq.xml Here’s a sample snippet to show you how authentication / authorization can be handled in ActiveMQ. For advanced users – ActiveMQ provides pluggable security through various different providers. Have a look at http://activemq.apache.org/security.html Related articles Spring 3.x – ActiveMQ 5.5 Integration ( JMS Point to Point ) (apachebite.com) ActiveMQ IS Ready For […]