BaseX as a Windows Service
Wednesday, 22 January 2014 · 7 messages · last reply 23 Jan 2014
SE
Sam Eklund22 Jan 2014 14:12 #
Is there a possibility to install BaseX server as a service under Windows?
The -S switch to start BaseX in the background is nice, however a proper windows service would be even better!
Anyone that has accomplished this?
Best regards,
Sam
CG
Christian Grün22 Jan 2014 14:15 #
I remember there has beer another thread on this:
http://www.mail-archive.com/basex-talk at mailman.uni-konstanz.de/msg01525.html
Feedback from evreryone is welcome,
Christian
Quoted text · Sam Eklund · 26 lines
On Wed, Jan 22, 2014 at 2:12 PM, Sam Eklund <sam.eklund at gluebox.se> wrote: > Is there a possibility to install BaseX server as a service under Windows? > > > > The –S switch to start BaseX in the background is nice, however a proper > windows service would be even better! > > > > Anyone that has accomplished this? > > > > Best regards, > > > > Sam > > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
HV
Hi Sam,
I don't know about any special tricks BaseX has up it's sleeve, but I have had succes running Solr, BigData and other Java server apps as a Windows service using YAJSW. It's fairly easy to accomplish. There are other applications that can run Java apps as a Windows Service for you as well.
Op 22 jan. 2014, om 14:12 heeft Sam Eklund <sam.eklund at gluebox.se<mailto:sam.eklund at gluebox.se>> het volgende geschreven:
Is there a possibility to install BaseX server as a service under Windows?
The –S switch to start BaseX in the background is nice, however a proper windows service would be even better!
Anyone that has accomplished this?
Hartelijke groet,
Huib Verweij
CG
Christian Grün22 Jan 2014 14:22 #
Hi Sam, hi Huib,
if one of you succeeds installing BaseX as service, would you be willing to contribute a little HowTo article for our Wiki?
Christian
Quoted text · Huib Verweij · 33 lines
On Wed, Jan 22, 2014 at 2:19 PM, Huib Verweij <Huib.Verweij at koop.overheid.nl> wrote: > Hi Sam, > > I don't know about any special tricks BaseX has up it's sleeve, but I have > had succes running Solr, BigData and other Java server apps as a Windows > service using YAJSW. It's fairly easy to accomplish. There are other > applications that can run Java apps as a Windows Service for you as well. > > Op 22 jan. 2014, om 14:12 heeft Sam Eklund <sam.eklund at gluebox.se> het > volgende geschreven: > > Is there a possibility to install BaseX server as a service under Windows? > > The –S switch to start BaseX in the background is nice, however a proper > windows service would be even better! > > Anyone that has accomplished this? > > > > Hartelijke groet, > > Huib Verweij > > > > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
JM
jean-marc Mercier22 Jan 2014 14:37 #
Hi,
Maybe I don't understand your needs, but there exists native tools to install services with windows. For instance the batch command sc, or the visual studio tool installutil.
Is there any incentive for not using them ?
2014/1/22 Christian Grün <christian.gruen at gmail.com>
Quoted text · Christian Grün · 48 lines
> Hi Sam, hi Huib, > > if one of you succeeds installing BaseX as service, would you be > willing to contribute a little HowTo article for our Wiki? > > Christian > > > On Wed, Jan 22, 2014 at 2:19 PM, Huib Verweij > <Huib.Verweij at koop.overheid.nl> wrote: > > Hi Sam, > > > > I don't know about any special tricks BaseX has up it's sleeve, but I > have > > had succes running Solr, BigData and other Java server apps as a Windows > > service using YAJSW. It's fairly easy to accomplish. There are other > > applications that can run Java apps as a Windows Service for you as well. > > > > Op 22 jan. 2014, om 14:12 heeft Sam Eklund <sam.eklund at gluebox.se> het > > volgende geschreven: > > > > Is there a possibility to install BaseX server as a service under > Windows? > > > > The –S switch to start BaseX in the background is nice, however a proper > > windows service would be even better! > > > > Anyone that has accomplished this? > > > > > > > > Hartelijke groet, > > > > Huib Verweij > > > > > > > > > > _______________________________________________ > > BaseX-Talk mailing list > > BaseX-Talk at mailman.uni-konstanz.de > > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
JM
jean-marc Mercier22 Jan 2014 15:03 #
Ok, I missed the point sorry : BaseX being a Java executable, we have to wrap it before registring it as a service with sc or installutil. Wrapping Java for windows servicing is quite easy, I did it some years ago with JSW. I had a look to YAJSW : it seems to be a better choice than JSW now. Flexible enough licensing, and most importantly support for windows 64 bits.
@Christian : Installing a service with YAJSW seems really straightforward (see : http://yajsw.sourceforge.net/). Is it worth writing a Wiki page ?
2014/1/22 jean-marc Mercier <jeanmarc.mercier at gmail.com>
Quoted text · jean-marc Mercier · 61 lines
> Hi, > > Maybe I don't understand your needs, but there exists native tools to > install services with windows. For instance the batch command sc, or the > visual studio tool installutil. > Is there any incentive for not using them ? > > > 2014/1/22 Christian Grün <christian.gruen at gmail.com> > >> Hi Sam, hi Huib, >> >> if one of you succeeds installing BaseX as service, would you be >> willing to contribute a little HowTo article for our Wiki? >> >> Christian >> >> >> On Wed, Jan 22, 2014 at 2:19 PM, Huib Verweij >> <Huib.Verweij at koop.overheid.nl> wrote: >> > Hi Sam, >> > >> > I don't know about any special tricks BaseX has up it's sleeve, but I >> have >> > had succes running Solr, BigData and other Java server apps as a Windows >> > service using YAJSW. It's fairly easy to accomplish. There are other >> > applications that can run Java apps as a Windows Service for you as >> well. >> > >> > Op 22 jan. 2014, om 14:12 heeft Sam Eklund <sam.eklund at gluebox.se> het >> > volgende geschreven: >> > >> > Is there a possibility to install BaseX server as a service under >> Windows? >> > >> > The –S switch to start BaseX in the background is nice, however a proper >> > windows service would be even better! >> > >> > Anyone that has accomplished this? >> > >> > >> > >> > Hartelijke groet, >> > >> > Huib Verweij >> > >> > >> > >> > >> > _______________________________________________ >> > BaseX-Talk mailing list >> > BaseX-Talk at mailman.uni-konstanz.de >> > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> > >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> > >
SE
Hi Huib,
Thanks, I will look into YAJSW, it seems like a pretty straight forward way of doing it, I'll write back with my findings!
Best regards,
Sam
Quoted text · Huib Verweij · 13 lines
From: Huib Verweij [mailto:Huib.Verweij at koop.overheid.nl] Sent: den 22 januari 2014 14:20 To: Sam Eklund Cc: basex-talk at mailman.uni-konstanz.de Subject: Re: [basex-talk] BaseX as a Windows Service Hi Sam, I don't know about any special tricks BaseX has up it's sleeve, but I have had succes running Solr, BigData and other Java server apps as a Windows service using YAJSW. It's fairly easy to accomplish. There are other applications that can run Java apps as a Windows Service for you as well. Op 22 jan. 2014, om 14:12 heeft Sam Eklund <sam.eklund at gluebox.se<mailto:sam.eklund at gluebox.se>> het volgende geschreven: Is there a possibility to install BaseX server as a service under Windows? The -S switch to start BaseX in the background is nice, however a proper windows service would be even better! Anyone that has accomplished this? Hartelijke groet, Huib Verweij
Written for BaseX 7.7. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery