PDA

View Full Version : JndiDestinationResolver "resolveDestinationName"


bhickey
Aug 20th, 2004, 08:04 PM
resolve Destination breaks with a JMS 1.0.2 jar. session in 1.0.2 requires a caste to Queue or Topic Session. For now I've subclassed resolver and overridden "resolveDestinationName". Would like this incorporated in Spring JMS code. Thanks.[/code]

Juergen Hoeller
Aug 21st, 2004, 11:28 AM
Thanks for reporting this - I've just reworked DynamicDestinationResolver and JndiDestinationResolver accordingly: They cast to QueueSession respectively TopicSession and invoke the method there, if possible, falling back to the generic JMS 1.1 method. This should work on both JMS 1.1 and JMS 1.0.2 now, without special subclasses.

The change is already committed to CVS; it would be great if you could give a try, once it's visible in public CVS!

Juergen

bhickey
Aug 22nd, 2004, 06:34 PM
I'll pull the change from CVS and try it out. Thanks for the assist.