Windows Service Example?

Is there a demo that illustrates setting up the XData server as a windows service and using a datamodule as connections container?

The Datamodule/Container is currently part of a VCL app, so the example created by the legacy wizard in TMS Business is quite what I'm looking for as it doesn't use class methods. The Datamodule is instantiated and handles the listening etc

All you have to do is to add Sparkle.App unit to your .dpr file in your project, and the application will be compiled as Windows Service in Release config.

The BIZ Boilerplate project shows it:

1 Like

Thanks @wlandgraf, that's great.

It would be useful to be able to set the TServerMainForm instance in the Sparkle.App to be a descendant of TServerMainForm, a bit like the using a TUser descendant in Sphinx.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.