activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From patsfan <apvei...@gmail.com>
Subject Specifying JMX Port for Embedded Broker without external configuration
Date Wed, 25 Jul 2012 15:10:08 GMT
Hi,

We have an application that is deployed in JBoss that utilizes Spring.  Our
spring configuration has the following for ActiveMQ configuration.  For our
development environment, the following is what the configuration looks like
(after property substitution):

	<bean id="internalJmsFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
		<property name="brokerURL"
value="vm://localhost?broker.useJmx=true&amp;broker.persistent=false&amp;broker.useShutdownHook=false"/>
	</bean>

and then we rely on ActiveMQ to create the broker upon creating a
connection.  As you can tell, we have broker.useJmx set to true.  When
deploying the application in JBoss (4.x) this is problematic, because JBoss
grabs port 1099 for naming and ActiveMQ then cannot start it's own JMX.

Is there a way to set the JMX port number for JMX within the URL above or
somehow otherwise inject it without additional configuration?  

We are trying to avoid having to explicitly create a broker either via
spring or code, because in production, we are connecting to an externally
deployed ActiveMQ instance using the failover:// URL and we do not run into
this issue when ActiveMQ is not embedded in JBoss.

Thanks in advance,
A







--
View this message in context: http://activemq.2283324.n4.nabble.com/Specifying-JMX-Port-for-Embedded-Broker-without-external-configuration-tp4654353.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message