Card 19 / 24: Which is true about synchronous and asynchronous messaging in JMS?
A)
a QueueReceiver or a TopicSubscriber in JMS, use the receive() method to consume a message synchronously
B)
a QueueReceiver or a TopicSubscriber in JMS, must use a message listener to consume a message synchronously
C)
a QueueReceiver or a TopicSubscriber in JMS, can consume a message asynchronously by using a message listener
D)
in asynchronous messaging, the onMessage() method of the consumer is invoked when a message arrives
Answer:
A) a QueueReceiver or a TopicSubscriber in JMS, use the receive() method to consume a message synchronously
C) a QueueReceiver or a TopicSubscriber in JMS, can consume a message asynchronously by using a message listener
D) in asynchronous messaging, the onMessage() method of the consumer is invoked when a message arrives
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
|