1
如果我的MessageConsumer正在實現MessageListener(JBoss JMS 1.1 API),是否有消息可能在Method onMessage(消息)中爲空的情況?JMS:可以是MessageListener的onMessage中的消息null?
import javax.jms.MapMessage;
import javax.jms.Message;
import javax.jms.MessageListener;
@MessageDriven(...)
public class MyMessageConsumer implements MessageListener {
@Override
public void onMessage(final Message message) {
// is there any case, where message could be null here?
}
}