Thanks for your answer. As I see that there are a lot of tools I can use, I will explain here what I want to achieve for you to advice me on the component to use.
I have an open fire server to which I connect through asmack. It works quite well. The issue is that I need to store information about users, like location and I can't use vcards as at some point of time I'll need to execute Sql query to retrieve users between some location.
So what I have now is a custom table in mysql with a foreign key on the username field of ofusers table. I'd like to be able to get all users between a location via asmack. So basically, send a request through my XMPP connection, intercept that specific request, execute the sql query and send the result to asmack.
What would be the best approach for that ?