Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which use cases make temporary JMS queues a better choice than persistent queues?

Tags:

java

jms

When you are designing a JMS application, which use cases make you pick temporary queues over persistent queues?

We use temporary queues for response messages. We're having some issues maintaining connections to the temp queues, though, so I am testing persistent response queues, instead. One clear disadvantage of persistent queues is that your application has to "know" about them beforehand. If that's not a big deal, though, are there use cases where temp queues are the obvious choice?

like image 873
Stephen Harmon Avatar asked Dec 22 '25 07:12

Stephen Harmon


1 Answers

Like you said, I use temps for responses. Perms are good if you have a known fixed system because like you said you have to know before hand or using a naming directory.

The real question is, why are you having trouble maintaining connections?

like image 190
Nick Avatar answered Dec 23 '25 22:12

Nick