Customizing OpenFire

Hi,

I am new to OpenFire and XMPP.

What we want to achieve is:

  • a Client (Flex/XIFF or Java/Smack) wants to register and chat, transfer files, and so on. Much like any known instant messenger.

  • on the server, we want to provide our own logic however. So e.g. when a user registers, we want to implement our own logic here. We probably want to ask another database/system, if the user is already known to our system. Or for example, if User A chats with User B, we want to store their conversation in our system.

The question is, how can we achieve this?

I read a little bit about OpenFire plugins, but they seem to only alter the Admin UI.

What we probably need is, if a client calls XMPPConnection.addContact(), that OUR logic is called instead, which in turn calls some logic of OpenFire (e.g.org.jivesoftware.openfire.user.UserManager.createUser).

How can I approach this goal?

**
**