Given the code fragment:
How can you get all property names of a JMS message in the JMS consumer onMessage operation?
Given the code fragment:
How can you get all property names of a JMS message in the JMS consumer onMessage operation?
The correct way to get all property names of a JMS message in the JMS consumer onMessage operation is by using the getPropertyNames method, which returns an Enumeration. Therefore, the correct answer is: Enumeration props = msg.getPropertyNames();
B https://docs.oracle.com/javaee/7/api/javax/jms/Message.html#getPropertyNames--
Answer B