0 Replies Latest reply on Aug 21, 2001 12:14 PM by Alex Lee

    Cannot write a persistence message to a temporary destinatio

    Alex Lee Newbie

      hi,
      i was trying to publish a message to a temporary topic with the following call:

      publisher.publish(textMsg,
      javax.jms.DeliveryMode.PERSISTENT,
      javax.jms.Message.DEFAULT_PRIORITY,
      1800000);

      i got the following exception:
      java.rmi.RemoteException: ; nested exception is:
      javax.jms.JMSException: Cannot write a persistent message to a temporary destination!
      javax.jms.JMSException: Cannot write a persistent message to a temporary destination!

      However, when i set the DeliveryMode to NON_PERSISTENT, everything works fine.

      Is it legal to write persistence messgae to a temporary queue ?

      alex