nerdexam
Oracle

1Z0-895 · Question #87

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…

The correct answer is D. The developer can use a messageSelector to receive only the car and life data message if the header. A JMS message selector allows a client to specify, by header field references and property match the selector are delivered. What it means for a message not to be delivered depends on the MessageConsumer being used (see QueueReceiver and TopicSubscriber). javax.jms Interface…

JMS and Message-Driven Beans

Question

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?

Options

  • AThe developer will NOT succeed because all messages will be consumed from the queue.
  • BThe developer can implement a push-back mechanism if the message is of the wrong type.
  • CThe developer can use a messageSelector to receive only the car and life data message if the JMS body
  • DThe developer can use a messageSelector to receive only the car and life data message if the header

How the community answered

(39 responses)
  • A
    10% (4)
  • B
    5% (2)
  • C
    3% (1)
  • D
    82% (32)

Explanation

A JMS message selector allows a client to specify, by header field references and property match the selector are delivered. What it means for a message not to be delivered depends on the MessageConsumer being used (see QueueReceiver and TopicSubscriber). javax.jms Interface Message

Topics

#JMS message selector#message filtering#header properties#queue consumer

Community Discussion

No community discussion yet for this question.

Full 1Z0-895 Practice