Hi Turick,

Actually the server was not designed with this usage in mind and is not a kind of usage Lightstreamer officially support, but you could give it a try.
Conflicts with your code may arise because of Server side-effects and global references; perhaps, you could avoid them by playing with the classloaders.
An other issue, as you already pointed out, is the fact that the Server needs to access the file system to gather its own configuration, and is it's not possible to inject the configuration in other ways.
Last but not least, the server is meant to shutdown with the VM, and the cleanup is very rough, as it relies on the VM termination. So, it could be a problem if you need to restart the Lightstreamer server from within your application.
Please, let us know the results of your efforts, since this is a topic that now and then comes up, and it will be probably a direction for future improvements.

regards,
Marco