Hi Aaron,

Thanks for your input here I am attaching the activemq.xml I am using.
Please let me know if there is any change needed. This is the same
activemq.xml I was using for previous release and it worked fine. 

I am using Java 5.

Vik

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron
Mulder
Sent: Friday, September 22, 2006 2:39 PM
To: [email protected]
Subject: Re: JMX inteface is not running on latest release of AMQ 4.0.1

I didn't have that problem in ActiveMQ 4.0.1.  Are you sure you have
<broker useJmx="true" in your config file?  Also, if you're running
under Java 5, you may be using the JMX environment from the JVM which
would prevent ActiveMQ from emitting the message about how its binding
JMX to port such-and-such (because it doesn't create it's own JMX
listener if it uses the JVM MBeanServer).  You can force ActiveMQ to
use its own JMX listener with the managementContext settings, if you
want to.

Thanks,
    Aaron

On 9/22/06, Dhawan, Vikram (LNG-DAY) <[EMAIL PROTECTED]>
wrote:
> Hi,
>
>
>
> I think this is a real problem; I looked over few times before I am
> posting it. In the activemq.xml I uncommented the managementContext
> section too.
>
>
>
> On my activemq console I don't see a message which used to be there
> saying that JMX connection be made.
>
>
>
> Thanks!
>
>
>
> Vik
>
>
>
>
>
<!-- START SNIPPET: example -->
<beans xmlns="http://activemq.org/config/1.0";>

	<!-- Allows us to use system properties as variables in this configuration file -->
	<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>

	<broker useJmx="true" brokerName="BROKER_1">

		<!--  Use the following to set the broker memory limit (in bytes)
    <memoryManager>  
        <usageManager id="memory-manager" limit="1048576"/>
    </memoryManager>
    -->

		<!-- Use the following to configure how ActiveMQ is exposed in JMX -->
    <managementContext>
       <managementContext connectorPort="1099" jmxDomainName="org.apache.activemq" useMBeanServer="true"/>
    </managementContext>
   

		<!-- In ActiveMQ 4, you can setup destination policies -->
		<destinationPolicy>
			<policyMap>
				<policyEntries>

					<policyEntry topic="FOO.&gt;">
						<dispatchPolicy>
							<strictOrderDispatchPolicy/>
						</dispatchPolicy>
						<subscriptionRecoveryPolicy>
							<lastImageSubscriptionRecoveryPolicy/>
						</subscriptionRecoveryPolicy>
					</policyEntry>
				</policyEntries>
			</policyMap>
		</destinationPolicy>


		<persistenceAdapter>
			<jdbcPersistenceAdapter cleanupPeriod="60000">
				<dataSource>#mysql-ds</dataSource>
			</jdbcPersistenceAdapter>
			<!--<journaledJDBC journalLogFiles="5" dataDirectory="${activemq.home}/activemq-data"/>-->
			<!-- To use a different datasource, use th following syntax : -->
			<!-- 
      <journaledJDBC journalLogFiles="5" dataDirectory="../activemq-data" dataSource="#postgres-ds"/>
       -->
		</persistenceAdapter>

		<transportConnectors>
			<transportConnector name="default" uri="tcp://localhost:61616" discoveryUri="multicast://default"/>
			<transportConnector name="stomp" uri="stomp://localhost:61613"/>
		</transportConnectors>

		<networkConnectors>
			<!-- by default just auto discover the other brokers -->
			<!--<networkConnector name="default" uri="multicast://default"/>-->
			<!--
      <networkConnector name="host1 and host2" uri="static://(tcp://host1:61616,tcp://host2:61616)" failover="true"/>
      -->
		</networkConnectors>
	</broker>

	<!--  This xbean configuration file supports all the standard spring xml configuration options -->

	<!-- Postgres DataSource Sample Setup -->
	<!-- 
  <bean id="postgres-ds" class="org.postgresql.ds.PGPoolingDataSource">
    <property name="serverName" value="localhost"/>
    <property name="databaseName" value="activemq"/>
    <property name="portNumber" value="0"/>
    <property name="user" value="activemq"/>
    <property name="password" value="activemq"/>
    <property name="dataSourceName" value="postgres"/>
    <property name="initialConnections" value="1"/>
    <property name="maxConnections" value="10"/>
  </bean>
  -->

	<!-- MySql DataSource Sample Setup -->
	 
  <bean id="mysql-ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
    <property name="driverClassName" value="com.mysql.jdbc.Driver"/>
    <property name="url" value="jdbc:mysql://localhost/activemq?relaxAutoCommit=true"/>
    <property name="username" value="XXXXX"/>
    <property name="password" value="XXXXXX"/>
    <property name="poolPreparedStatements" value="true"/>
  </bean>
  

	<!-- Embedded Derby DataSource Sample Setup -->
	<!-- 
  <bean id="derby-ds" class="org.apache.derby.jdbc.EmbeddedDataSource">
    <property name="databaseName" value="derbydb"/>
    <property name="createDatabase" value="create"/>
  </bean>
  -->
</beans>
<!-- END SNIPPET: example -->

Reply via email to