aggi001

MessageEventListener not working

Discussion created by aggi001 on Dec 7, 2006
Latest reply on Dec 19, 2006 by aggi001

Hi guys,

 

I''m implementing a plugin and wanted to make use of MessageEventListener Interface.  However, it seems that receivingMessage is never called.  A code snip is here

 

final MessageEventListener messageListener = new MessageEventListener() {

                        public void sendingMessage(Message message) {

                          System.err.print( "Msg: " + message.getBody() + " to " + message.getTo());

                        }

 

                        public void receivingMessage(Message message) {

                            System.err.print( Msg:  " + message.getBody() + " to " + message.getFrom());

                        }

                    };

                    roomImpl.addMessageEventListener(messageListener);

 

Is there something I''m missing here?

 

TIA Aggi

Outcomes