the Openfire server/* java files may be interesting for you. Anyhow one may still wonder whether a component or a plugin would be better than a “virtual” server.
For your use case with “A” calling “B” but only if “A” is “good” you may consider using two servers, server A with a plugin which checks various things before routing the packets to server B.
This means that each user who want to use my future plugin needs to install openfire on his local machine, because i want to separate the client and the actual server from the processing of the messages, right?
Greetz
P.S.: i already build the openfire source in eclipse and i am trying to build a connection to my server but i don’t know how.
you must host the server with the plugin, otherwise you can not know that the remote server uses the plugin. So you want to host both servers, the one with the plugin for public access, maybe also with web-based chat enabled / anonymous access.