This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I'm training with a simulator and I received this question:
Your application sends three messages with no delivery failures to a JMS destination, where two consumers consume messages from the destination.
How do both consumers ensure they receive all messages?
A. Consumers listen to a JMS queue without message selectors.
B. Consumers listen to a JMS queue with message selectors.
C. Consumers subscribe to a JMS topic with message selectors.
D. Consumers subscribe to a JMS topic without message selectors.
The correct answer in my simulator is D (without any explanation), for me the correct answer is C !
If I must receive all the messages I don't need a message selector, what do you think ?
Which is the correct answer ?