Standalone Http Server
Is there any chance to configure tigase-http-api as a standalone http server? If there is any could you guide me on how to do it?
The reason is that I would prefer not to use the main instance of Tigase Server to manage the http request. I need to access some data stored on database, like registered users, roster list, create users, etc. And I would prefer http communication rather than the tclmt.
Added by Artur Hefczyc over 5 years ago
You could run tigase-http-api as a standalone http server but it would be of no use to you. tigase-http-api (which is mainly a jetty) is using other Tigase component's APIs to perform actions. It does not access DB directly it does not know how to access DB directly. It can only execute Tigase APIs to do some actions. And it must be THE running Tigase for which you want to make changes via REST. Tigase keeps lots of data in memory in different cache systems to make sure performance is good enough. So direct DB changes could cause problems with that.
Think of the HTTP API as a feature of a running Tigase server which can be switched on/off. Not as a separate HTTP server to modify DB.