activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From christophe blin <>
Subject JMS messages send to a topic are not persisted
Date Wed, 18 Oct 2006 10:18:18 GMT


With the following application context, I setup a topic and attach it a
producer (or correct me if I am wrong) :

  <bean id="ds"
    <!-- skip for clarity -->

  <!-- configure a pure JDBC broker (i.e no journal on file system) -->
  <bean id="broker" class="org.apache.activemq.xbean.XBeanBrokerService">
    <property name="persistenceAdapter">
      <bean class="">
        <property name="dataSource" ref="ds" />

  <bean id="jmsFactory"
    <property name="targetConnectionFactory">
      <bean class="org.apache.activemq.ActiveMQConnectionFactory">
        <property name="brokerURL">
    <property name="clientId" value="t3" />

  <bean id="destination" class="org.apache.activemq.command.ActiveMQTopic">
    <constructor-arg value="tennaxiaTopic" />

  <bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
    <property name="connectionFactory">
      <ref local="jmsFactory" />
    <property name="defaultDestination" ref="destination" />
    <property name="pubSubDomain" value="true" />
    <property name="deliveryPersistent" value="true" />

  <bean id="messagingInterceptor"
    <property name="jmsTemplate">
      <ref local="jmsTemplate" />

The problem is that I never have any INSERT sql request that it is send to
my datasource !
(note : I use a mysql datasource and the mysql server has log turn on so I
can see for example the cleaning DELETE sql request)

My question is : why the messages are not persisted (i.e why the sending of
a message is not followed by a INSERT sql request) ?

Hope that someone has already solves a similar problem.


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

View raw message