A developer impalements an asynchronous implementation for calculating insurance proposals. The input data for the calculations is made available on a single message queue. Two types of insurance proposals will be calculated: car and life. Message with data for other insurance types are posted on the queue but should be left on the queue by this implementation. Which statement is true?
The developer will NOT succeed because all messages will be consumed from the queue.
The developer can implement a push-back mechanism if the message is of the wrong type.
The developer can use a messageSelector to receive only the car and life data message if the JMS body contains selectable data.
The developer can use a messageSelector to receive only the car and life data message if the header contains properties to make selection.
Want to practice for 1Z0-895 - Java Platform, Enterprise Edition 6 Enterprise JavaBeans Developer Certified Expert Exam ?