[ openjms-Bugs-669025 ] exception if PERSISTENT msg sent to non-administered dest
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.java.openjms.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #669025, was opened at 2003-01-16 13:00 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=474136&aid=669025&group_id=54559 Category: server Group: v0.7.4 Status: Open Resolution: None Priority: 5 Submitted By: Tim Anderson (tanderson) Assigned to: Nobody/Anonymous (nobody) Summary: exception if PERSISTENT msg sent to non-administered dest Initial Comment: If a message is sent using DeliveryMode.PERSISTENT to a non-administered destination, an exception is thrown. I don't think this should be invalid - if the destination isn't administered, then it should behave as though the message is NON_PERSISTENT. If this is intentional, an InvalidDestinationException should be propagated back to the client. Sample stack trace: 23:14:19.149 ERROR [RMI TCP Connection(9)- 203.45.10.26] - javax.jms.JMSException: Failed to addPersistentMessage : javax.jms.JMSException: Failed to addPersistentMessage : org.exolab.jms.persistence.PersistenceException: add msg Cannot add message=ID:P3430314416766320908, destination=0: destination does not exist javax.jms.JMSException: Failed to addPersistentMessage : javax.jms.JMSException: Failed to addPersistentMessage : org.exolab.jms.persistence.PersistenceException: add msg Cannot add message=ID:P3430314416766320908, destination=0: destination does not exist at org.exolab.jms.messagemgr.MessageMgr.addPersist entMessage(MessageMgr.java:431) at org.exolab.jms.messagemgr.MessageMgr.add (MessageMgr.java:311) at org.exolab.jms.server.JmsServerSession.sendMessag es(JmsServerSession.java:396) ---------------------------------------------------------------------- >Comment By: Tim Anderson (tanderson) Date: 2003-01-16 13:03 Message: Logged In: YES user_id=557161 Note that this has been highlighted by the fix to http://sourceforge.net/tracker/index.php? func=detail&aid=667595&group_id=54559&atid=47413 6 Previously, messages were incorrectly sent with DeliveryMode.NON_PERSISTENT by default. The fix to the above makes the default delivery mode PERSISTENT. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=474136&aid=669025&group_id=54559