Let me explain my requirement. we are using Jboss as the application server. for the xmpp stuff ,we are using openfire. I have installed the openfire and I am able to communicate between two java clients over openfire server. Now the requirement is a webapplication deployed in Jboss server should listen to the xmpp messages coming through openfire from other clients. Like wise the webapplication in Jboss should be able to send notifications to mulitple clients through the openfire server. Can anyone tell me what is the best way to implement a notification listener in a webapplication in Jboss for listening to the xmpp messages?