First of all, I’d like to thank the team behind openfire and all the libraries that come with it. I just came accross it in search for the right architecture to model my usecase, truly great piece of software!
I’m a newbie, but like to do things correctly from the start. The usecase is as follows:
User A sends a message over XMPP to a bot; the user himself does not know who this message is destined for (the bot decides that). The bot routes the message to user B who can then decide whether or not to start a chatsession with user A. Users do not have rosters, the only resource they know should be the bot.
I’m not sure what the best architecture would be to implement this usecase?
Should the bot be set up as just another XMPP client? Ideally, I’d like to minimize network traffic and have the bot live inside the openfire server.
I’ve thought of reworking the PacketListener to become the bot. It would intercept all Messages, decide who User B should be and send User B the message on behalf of User A. Is this the way to go?