activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From HU <>
Subject Re: Don't need a journal for the BrokerService
Date Thu, 05 Oct 2006 02:06:54 GMT

The activemq.xml that I am using shown as below:

<!-- START SNIPPET: example -->
<beans xmlns="">
  <!-- Allows us to use system properties as variables in this configuration
file -->
  <broker useJmx="true">
    <!-- In ActiveMQ 4, you can setup destination policies -->
          <policyEntry topic="FOO.>">
              <strictOrderDispatchPolicy />
              <lastImageSubscriptionRecoveryPolicy />

      <jdbcPersistenceAdapter dataSource="#mysql-ds"/>
       <transportConnector name="default" uri="tcp://localhost:61616"
       <transportConnector name="stomp"   uri="stomp://localhost:61613"/>
      <!-- by default just auto discover the other brokers -->
      <networkConnector name="default" uri="multicast://default"/>
  <!--  This xbean configuration file supports all the standard spring xml
configuration options -->
  <!-- MySql DataSource Sample Setup -->
  <bean id="mysql-ds" class="org.apache.commons.dbcp.BasicDataSource"
    <property name="driverClassName" value="com.mysql.jdbc.Driver"/>
    <property name="url"
    <property name="username" value="activemq"/>
    <property name="password" value="activemq"/>
    <property name="poolPreparedStatements" value="true"/>
<!-- END SNIPPET: example -->

Pico Florin wrote:
> Hi!
>    Can you send me the exactly code that you  wrote in the  xml-file where
> you set up this funxtionality? Also, I would like to  know if it is
> possible to set up this configuration programatically not  in a
> configuration file.
>    Thanks,
>     Florin
> ---------------------------------
>  The all-new Yahoo! Mail goes wherever you go - free your email address
> from your Internet provider.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message