1 Reply Latest reply on May 16, 2008 1:12 PM by adrian.brock

    Message Consumed several Times

    priyarao234

      i'm using JBOSS as App Server and in my publisher program i'm using PERSISTENT like below.... but while running the consumer program the same message is consumed at first time and that is fine.. and i'm closing the consumer program and then again i'm running the consumer program but the same message is again consumed. But actually ones the message is consumed after that it has to be expired so please provide the solution...and how the publisher program knows that the message was consumed or not ? plz fell free to giv reply..
      publisher.publish(msg,
      javax.jms.DeliveryMode.PERSISTENT,
      javax.jms.Message.DEFAULT_PRIORITY, 0);