#1 2014-10-06 17:50:08

AArhin
Member
Registered: 2013-12-30
Posts: 10

Server App Samples

Dear All,
           I have just been looking at samples that are bundled with  this framework.
And have noticed that they are all implemented as console applications.
I am wondering if there is a particular reason for this ?
I intend to use this framework for a new application and I need to have the server implemented as Windows service with a GUI.
That has full app logging.
Actually I am looking at the possibility of using this framework for a document management system.
Any insights is highly welcomed.

Thanks

Offline

#2 2014-10-06 18:46:54

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: Server App Samples

Most sample servers are indeed console apps, but it is only to ease testing.
In fact, most servers would be debugged as console applications (easy to start/kill/stop), then installed as Windows service on production environment.
So for samples, console applications are the easiest way of testing.
Note that some samples can also optionally log everything on the console - it is very handy for debugging any project.

There are a dedicated sample folder with a mORMot server running as a Windows service (or as a console, on need).
Note that you need a separate GUI when a program runs as a Windows service.
Note also that the Main Demo is a stand-alone GUI application.
In fact, you can create a single mORMot executable which runs as a stand-alone app, as console server, as service server, or as client GUI.

Ensure you did search in the latest 1.18 SAD pdf, which has dedicated chapters on hosting and high-level presentation of the framework.
All this is already clearly stated in the pdf.

Offline

#3 2014-10-06 22:06:57

AArhin
Member
Registered: 2013-12-30
Posts: 10

Re: Server App Samples

Thanks.

Offline

Board footer

Powered by FluxBB