[CDO] Installing server as windows service [message #1713349] |
Tue, 03 November 2015 09:38  |
Eclipse User |
|
|
|
I would like to deploy a CDO server as a windows service. This can easy be done Apache Procrun or another service wrapper. My concern is that as a DB application that does caching, it is preferable to close it gracefully from either the osgi console, or a telnet session.
A. Am I being overly concerned about performing a clean shutdown
B. Is anybody aware of a service runner that provides a hook into the shutdown event to allow a graceful shutdown.
Thanks,
Greg Babcock
|
|
|
|
Re: [CDO] Installing server as windows service [message #1713755 is a reply to message #1713736] |
Fri, 06 November 2015 07:52   |
Eclipse User |
|
|
|
Hi Greg,
I quickly searched the web and found http://yajsw.sourceforge.net/ , which I think looks quite promising. Are you
interested in evaluating it and, in case it's a good match, discussing your findings in a new bugzilla?
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Am 06.11.2015 um 11:29 schrieb Eike Stepper:
> Am 03.11.2015 um 15:38 schrieb Greg Babcock:
>> I would like to deploy a CDO server as a windows service. This can easy be done Apache Procrun or another service
>> wrapper. My concern is that as a DB application that does caching, it is preferable to close it gracefully from
>> either the osgi console, or a telnet session.
>>
>> A. Am I being overly concerned about performing a clean shutdown
> Yes and no.
>
> Yes, because the DBStore has automatic crash detection and damage repair at startup time built in. BTW., "damage"
> sounds more severe than it probably is. All damage that can happen is related to some internal counters that
> *optimize* the startup time; i.e., only information that can be recomputed from the "safe parts" of the overall data
> can be lost after ungraceful shutdown. Information such as the last ID that was assigned to an object.
>
> No, because I agree it would be great to be able to perform a clean shutdown when the service stops, but I'm not sure
> how that could be done. I suspect it depends on the concrete service wrapper. I'm not very familiar with the different
> technologies that are available, nor with what that would mean for CDO. Are you?
>
>> B. Is anybody aware of a service runner that provides a hook into the shutdown event to allow a graceful shutdown.
> Unfortunately I'm not. It would be great if others could share their expertise on service wrappers...
>
> Cheers
> /Eike
>
> ----
> http://www.esc-net.de
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>
>
|
|
|
|
|
Re: [CDO] Installing server as windows service [message #1714462 is a reply to message #1714374] |
Thu, 12 November 2015 14:52  |
Eclipse User |
|
|
|
I have been successful starting and stopping the CDO server using Apache procrun similar to what is described in this blog http://dentrassi.de/2014/02/28/eclipse-equinox-as-a-windows-service/ for the SCADA project, but have not been able to connect to the CDO server due to some configuration issue that I have not had the time to investigate. I will make another post with detailed instructions when I have it working.
The yajsw has an example for starting equinox as a service so it would also work, but I have decided not to pursue it because it requires more files and is more complicated to deploy than procrun.
|
|
|
Powered by
FUDForum. Page generated in 0.54897 seconds