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