Glassfish/JMS: Does each Destinatation Resource require its own Connection Factory?
I'm learning about JMS/Glassfish. I plan on having multiple message queues (JMS destination resource) set up in the same Glassfish instance. Do I require a separate JMS connection factory for each queue? All the examples I found only use o开发者_StackOverflowne queue, so it's not clear.
Thanks!
No you can create multiple destinations with one factory.
Definitely can reuse a connection factory for multiple destinations. Its interesting how unclear some of the jms basics are. I remember googling for quite a while and I had to try it out myself to verify this.
精彩评论