Openfire plugin thread safety


I am writing a plugin that needs to have atomical access to a custom database table. That is, with multiple simultaneous requests being sent to the plugin, it needs to service them one by one, or, if inside a multi-threaded model, then it needs to process each by locking, updating, and unlocking a database table. Is this something that is safe/possible under Openfire? If so, can someone point me to some guides/documentation about custom database and/or about threading operations within the plugin. What’s the suggested approach if the atomic processing is paramount?


Bump. I’d really appreciate some suggestion…