[JDEV] Muse Api Help

Chris Chen ckchris at idream.net
Fri Jun 27 14:16:39 CDT 2003


You need to keep a reference of the newly instantiated message listener.

DefaultConnectionListener clistener = new DefaultConnectionListener();
session.getConnection().addConnectionListener(clistener);
...
session.getConnection().removeConnectionListener(clistener);

Chris

----- Original Message ----- 
From: "Colin Bell" <colinb at gatewest.co.uk>
To: <jdev at jabber.org>
Sent: Friday, June 27, 2003 7:49 AM
Subject: [JDEV] Muse Api Help


> Does anyone know how to use the removeMessageListener method in the 
> muse api ?
> 
> Ie
> 
> session.getConnection().addConnectionListener(new 
> DefaultConnectionListener());
> jsession.removeMessageListener(???);
> session.getConnection().addMessageListener(new 
> DefaultMessageListener());
> jsession.removeMessageListener(???);
> 
> I can't seem to figure out what to put where the ??? are.
> 
> Thanks
> 
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
> 




More information about the JDev mailing list