Tag Archives: J2EE

How to reload an application WAR in JBoss using twiddle utility?

Enabling JMX in JBoss To enable JMX access to JBoss, add the following arguments to JBoss VM args: -Dcom.sun.management.jmxremote The above line will enable only local monitoring. To enable remote JMX connection we need to specify the port which the JMX server will listen for remote connections. -Dcom.sun.management.jmxremote.port=9004 (or any other port number) The JMX […]

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, […]