2

org.springframework.jms.core.JmsTemplate only supports one queue using defaultDestination.....

what do I need to do when I have different in and out bound queue?

thanks

john
  • 219
  • 2
  • 5
  • 12

1 Answers1

2

You've answered your own question - yes, JmsTemplate only provides one default destination.

However, all of the various send/receive methods on JmsTemplate are overloaded with versions that allow you to specify a different destination.

For example, as well as send(MessageCreator) there is also send(Destination, MessageCreator). All of the methods are overloaded like this.

skaffman
  • 398,947
  • 96
  • 818
  • 769