Can I create a Windows-like service using the headless clien

The forum to discuss the Headless version of Servoy. Web, Java and Servlet development questions can all be posted here.

Can I create a Windows-like service using the headless clien

Postby craigcornish » Fri May 24, 2019 7:19 pm

I have a Windows service that runs every hour and fires a stored procedure.

A colleague asked me if it was possible to perform the same activity using Servoy's headless client.

So, can I create a service that is written using Servoy and runs like a Windows service?
craigcornish
 
Posts: 5
Joined: Fri May 24, 2019 7:17 pm

Re: Can I create a Windows-like service using the headless c

Postby Joas » Sat May 25, 2019 6:32 am

Look on the admin page under "Batch Processors". Here you can create a batch processor that starts when the Servoy server starts and opens a solution in the headless client.
When this happens the onOpen function of the solution is executed.
In the onOpen function you can use the scheduler plugin to create a (cron)job that runs on certain times.
Joas de Haan
Yield Software Development
Need help on your project? yieldsd.com
User avatar
Joas
Site Admin
 
Posts: 842
Joined: Mon Mar 20, 2006 4:07 pm
Location: Leusden, NL

Re: Can I create a Windows-like service using the headless c

Postby craigcornish » Tue May 28, 2019 3:35 pm

Thank you for the reply!
It is very helpful.
craigcornish
 
Posts: 5
Joined: Fri May 24, 2019 7:17 pm


Return to Servoy Headless Client

Who is online

Users browsing this forum: No registered users and 7 guests