You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Shinichi Nakanishi <gi...@yahoo.ca> on 2003/07/11 07:04:14 UTC

NT Service

Hello,

Is it possible to executes Xindice in the background
as an NT service?

Shin

______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca

Re: NT Service

Posted by Shinichi Nakanishi <gi...@yahoo.ca>.
I jumped the gun.  This is completely available.  Save
it to "%XINDICE_HOME%\bin" as a .bat file and run it.

@echo off
echo --------
echo Usage:   %0 jdk_home xindice_home
(classic/hotspot/server)
echo NOTE:    You MAY NOT use spaces in the path
names.
echo          JDK 1.3 does not come with hotpot server
by default, you must
echo          install this seperately if you wish to
use it.
echo Example: %0 c:\progra~1\jdk c:\progra~1\xindice
classic
echo --------

if "%1" == "" goto eof
if "%2" == "" goto eof
if "%3" == "" goto eof

copy JavaService.exe %2\bin\Xindice.exe
Xindice.exe -install XindiceXmlDbServer
%1\jre\bin\%3\jvm.dll -Dxindice.home=%2
-Djava.ext.dirs=%2\java\lib
-Djava.class.path=%CLASSPATH% -start
org.apache.xindice.server.Xindice -params
%2\config\system.xml -out %2\logs\stdout.log -err
%2\logs\stderr.log

goto eof

:eof


______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca

Re: NT Service

Posted by Shinichi Nakanishi <gi...@yahoo.ca>.
Sorry about my silly question.  I made it using
examples from tomcat one as follows.

@echo off
echo --------
echo Usage:   %0 jdk_home xindice_home
(classic/hotspot/server)
echo NOTE:    You MAY NOT use spaces in the path
names.
echo          JDK 1.3 does not come with hotpot server
by default, you must
echo          install this seperately if you wish to
use it.
echo Example: %0 c:\progra~1\jdk c:\progra~1\xindice
classic
echo --------

if "%1" == "" goto eof
if "%2" == "" goto eof
if "%3" == "" goto eof

JavaService.exe -install XindiceXmlDbServer
%1\jre\bin\%3\jvm.dll -Djava.ext.dirs=%2\lib
-Djava.class.path=%CLASSPATH%;%2\bin\phoenix-loader.jar;%2\bin\phoenix-engine.jar
-start org.apache.avalon.phoenix.launcher.Main -out
%2\logs\stdout.log -err %2\logs\stderr.log

goto eof

:eof


 --- Shinichi Nakanishi <gi...@yahoo.ca>
wrote: > Hello,
> 
> Is it possible to executes Xindice in the background
> as an NT service?
> 
> Shin
> 
>
______________________________________________________________________
> 
> Post your free ad now! http://personals.yahoo.ca 

______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca