Re: [basex-talk] Startup hooks or persisting jobs

2017-09-18 Thread Christian Grün
Hi Kendall,

Coincidentally, we had a similar discussion in our team. I have added
a little issue; more feedback is welcome.

Cheers,
Christian

PS: Thanks everyone for keeping the mailing list alive!

[1] https://github.com/BaseXdb/basex/issues/1498



On Mon, Aug 28, 2017 at 9:28 PM, Kendall Shaw <kendall.s...@workday.com> wrote:
> Thanks. I would think that being able to schedule jobs would fit nicely with
> having scheduled jobs persist after restart.
>
>
>
> Kendall
>
>
>
> From: "Kirsten, Dirk" <dirk.kirs...@senacor.com>
> Date: Monday, August 28, 2017 at 12:21 PM
> To: Kendall Shaw <kendall.s...@workday.com>, BaseX
> <basex-talk@mailman.uni-konstanz.de>
> Subject: AW: Startup hooks or persisting jobs
>
>
>
> Hi Kendall,
>
>
>
> there is currently no way to do this using BaseX itself. But I also don’t
> think that should be the job of BaseX. Instead you can write a servlet and
> deploy it using Tomcat which runs some Java application, e.g. which could
> trigger some BaseXX command. See
> http://crunchify.com/how-to-run-java-program-automatically-on-tomcat-startup/
> for an example how to do this.
>
>
>
> Cheers
>
> Dirk
>
>
>
>
> Senacor Technologies Aktiengesellschaft - Sitz: Eschborn - Amtsgericht
> Frankfurt am Main - Reg.-Nr.: HRB 105546
> Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender: Daniel
> Grözinger
>
> Von: basex-talk-boun...@mailman.uni-konstanz.de
> [mailto:basex-talk-boun...@mailman.uni-konstanz.de] Im Auftrag von Kendall
> Shaw
> Gesendet: Montag, 28. August 2017 06:46
> An: BaseX <basex-talk@mailman.uni-konstanz.de>
> Betreff: [basex-talk] Startup hooks or persisting jobs
>
>
>
> Am I missing an existing way to run xquery at startup (basex web service
> running under tomcat)? I have jobs that I schedule, but I have to schedule
> them again if basex is shutdown.
>
>
>
> I can test for basex being started outside of basex and then execute
> queries, but if there is already a way to do this within basex, I would
> rather do that.
>
>
>
> Kendall
>
>


Re: [basex-talk] Startup hooks or persisting jobs

2017-08-28 Thread Kendall Shaw
Thanks. I would think that being able to schedule jobs would fit nicely with 
having scheduled jobs persist after restart.

Kendall

From: "Kirsten, Dirk" <dirk.kirs...@senacor.com>
Date: Monday, August 28, 2017 at 12:21 PM
To: Kendall Shaw <kendall.s...@workday.com>, BaseX 
<basex-talk@mailman.uni-konstanz.de>
Subject: AW: Startup hooks or persisting jobs

Hi Kendall,

there is currently no way to do this using BaseX itself. But I also don’t think 
that should be the job of BaseX. Instead you can write a servlet and deploy it 
using Tomcat which runs some Java application, e.g. which could trigger some 
BaseXX command. See 
http://crunchify.com/how-to-run-java-program-automatically-on-tomcat-startup/<https://urldefense.proofpoint.com/v2/url?u=http-3A__crunchify.com_how-2Dto-2Drun-2Djava-2Dprogram-2Dautomatically-2Don-2Dtomcat-2Dstartup_=DwMGaQ=DS6PUFBBr_KiLo7Sjt3ljp5jaW5k2i9ijVXllEdOozc=JgwnBEpN1c-DDmq-Up2QMq9rrGyfWK0KtSpT7dxRglA=gOpscG7vkDRSI_XslDmh4eqaDUWLl-AlYsKjjD9n7Rs=H3i0AH5LU5JYG_1guelBQPwLs9FgFlNKzT3qnkjQvbI=>
 for an example how to do this.

Cheers
Dirk


Senacor Technologies Aktiengesellschaft - Sitz: Eschborn - Amtsgericht 
Frankfurt am Main - Reg.-Nr.: HRB 105546
Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender: Daniel 
Grözinger
Von: basex-talk-boun...@mailman.uni-konstanz.de 
[mailto:basex-talk-boun...@mailman.uni-konstanz.de] Im Auftrag von Kendall Shaw
Gesendet: Montag, 28. August 2017 06:46
An: BaseX <basex-talk@mailman.uni-konstanz.de>
Betreff: [basex-talk] Startup hooks or persisting jobs

Am I missing an existing way to run xquery at startup (basex web service 
running under tomcat)? I have jobs that I schedule, but I have to schedule them 
again if basex is shutdown.

I can test for basex being started outside of basex and then execute queries, 
but if there is already a way to do this within basex, I would rather do that.

Kendall



Re: [basex-talk] Startup hooks or persisting jobs

2017-08-28 Thread Kirsten, Dirk
Hi Kendall,

there is currently no way to do this using BaseX itself. But I also don’t think 
that should be the job of BaseX. Instead you can write a servlet and deploy it 
using Tomcat which runs some Java application, e.g. which could trigger some 
BaseXX command. See 
http://crunchify.com/how-to-run-java-program-automatically-on-tomcat-startup/ 
for an example how to do this.

Cheers
Dirk


Senacor Technologies Aktiengesellschaft - Sitz: Eschborn - Amtsgericht 
Frankfurt am Main - Reg.-Nr.: HRB 105546
Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender: Daniel 
Grözinger
Von: basex-talk-boun...@mailman.uni-konstanz.de 
[mailto:basex-talk-boun...@mailman.uni-konstanz.de] Im Auftrag von Kendall Shaw
Gesendet: Montag, 28. August 2017 06:46
An: BaseX <basex-talk@mailman.uni-konstanz.de>
Betreff: [basex-talk] Startup hooks or persisting jobs

Am I missing an existing way to run xquery at startup (basex web service 
running under tomcat)? I have jobs that I schedule, but I have to schedule them 
again if basex is shutdown.

I can test for basex being started outside of basex and then execute queries, 
but if there is already a way to do this within basex, I would rather do that.

Kendall



[basex-talk] Startup hooks or persisting jobs

2017-08-27 Thread Kendall Shaw
Am I missing an existing way to run xquery at startup (basex web service 
running under tomcat)? I have jobs that I schedule, but I have to schedule them 
again if basex is shutdown.
I can test for basex being started outside of basex and then execute queries, 
but if there is already a way to do this within basex, I would rather do that.

Kendall