有一个MessageListener在监听来自用户A的processMessage,当sendMsg从另一个用户发送到用户A时,我看到processMessage被调用了两次:
public void sendMsg(message){
Message msg = new Message();
mess.setBody(message);
// userid is the userid to whom the message will be sent to and chmanage is an instance of Chat Manager
Chat chat = chmanage.