Handle packet for specific domain

Hi All,

Is there possible to handle all packet for specific domain?

The idea is to connect the openfire to another IM that using non XMPP protocol such as yahoo messenger.

I want to make it not by creating Component, since component are only handle subdomain.

I want this just like yahoo.com, so when adding user to roster or sending message is simply send to address me@yahoo.com. By recognize the domain is yahoo.com then I will handle the packet myself, translate the packet as other IM protocol and send to yahoo server.

Any answer, example, material, or even clue would be great.

Regards,

uudashr