1 Reply Latest reply on Feb 23, 2006 4:36 PM by William DeCoste

    Disable JMS message persistance

    Hamdy Farid Newbie

      Setup: Jboss 4.03 + ejb3

      MDB configuration

      @MessageDriven(activateConfig =
       @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
       @ActivationConfigProperty(propertyName="destination", propertyValue="queue/queueX"),
       @ActivationConfigProperty(propertyName="durability", propertyValue="NON_DURABLE"), //NON_DURABLE
       @ActivationConfigProperty(propertyName="minPoolSize", propertyValue="10"),
       @ActivationConfigProperty(propertyName="maxPoolSize", propertyValue="20")
       public class MyMsgListener implements MessageListener

      I am using MySql as the persistance for JMS

      On my client side (msg genrator)

      By looking at mysql log, I can see every single message sent is being stored in the db before forwarding it to the MDB instance

      How can I stop this behavior completly, I want my msg to be in memory only?