Create Openfire plugin or implement all the other functionality on another server?

As we know, Openfire Plugin can extend its functionality, here is my question.

If we want to create some new features, for example, allow user upload images, or allow them to upload their GPS information, and server will do some sort to return client closest user.

How can achieve this?

  1. Create Openfire Plugin to implement these features.
  2. Use another tomcat server, implement on that, and only use Openfire server when user need to chat.
    Which one is better?

Thanks.
build.xml_chmod_executables.patch.zip (511 Bytes)