diff --git a/utils/windows/AdempiereService.exe b/utils/windows/AdempiereService.exe new file mode 100644 index 0000000000..bc1d12b781 Binary files /dev/null and b/utils/windows/AdempiereService.exe differ diff --git a/utils/windows/Adempiere_Service_Install.bat b/utils/windows/Adempiere_Service_Install.bat new file mode 100644 index 0000000000..4c8844dbbf --- /dev/null +++ b/utils/windows/Adempiere_Service_Install.bat @@ -0,0 +1,24 @@ +@echo off + +REM Adempiere_Service_Install.bat - globalqss - based on http://javaservice.objectweb.org + +if (%ADEMPIERE_HOME%) == () (CALL myEnvironment.bat Server) else (CALL %ADEMPIERE_HOME%\utils\myEnvironment.bat Server) + +%ADEMPIERE_HOME%\utils\windows\AdempiereService.exe -install Adempiere %JAVA_HOME%\jre\bin\server\jvm.dll -Xmx256M -Djava.class.path=%JAVA_HOME%\lib\tools.jar;%ADEMPIERE_HOME%\jboss\bin\run.jar -server %ADEMPIERE_JAVA_OPTIONS% -Djetty.port=%ADEMPIERE_WEB_PORT% -Djetty.ssl=%ADEMPIERE_SSL_PORT% -Djetty.keystore=%ADEMPIERE_KEYSTORE% -Djetty.password=%ADEMPIERE_KEYSTORE_PASSWORD% -start org.jboss.Main -params -c -stop org.jboss.Main -method systemExit -current %ADEMPIERE_HOME%\jboss\bin -out %ADEMPIERE_HOME%\jboss\bin\out.txt -manual -overwrite + + +rem add this option for dependency with postgresql service (replace with proper service name +rem -depends postgresql + +rem add this option for dependency with oracle service (replace with proper service name) +rem -depends oraclexe + +rem replace -manual by -auto to make service run automatically on system startup + +rem other usefult options can be: +rem -err err_log_file +rem -shutdown seconds +rem -user user_name +rem -password password +rem -append or -overwrite +rem -description service_desc diff --git a/utils/windows/Adempiere_Service_Uninstall.bat b/utils/windows/Adempiere_Service_Uninstall.bat new file mode 100644 index 0000000000..a226e61312 --- /dev/null +++ b/utils/windows/Adempiere_Service_Uninstall.bat @@ -0,0 +1,8 @@ +@echo off + +REM Adempiere_Service_Uninstall.bat - globalqss - based on http://javaservice.objectweb.org + +if (%ADEMPIERE_HOME%) == () (CALL myEnvironment.bat Server) else (CALL %ADEMPIERE_HOME%\utils\myEnvironment.bat Server) + +NET STOP Adempiere +%ADEMPIERE_HOME%\utils\windows\AdempiereService.exe -uninstall Adempiere diff --git a/utils/windows/JavaService.exe b/utils/windows/JavaService.exe deleted file mode 100644 index 87559550cf..0000000000 Binary files a/utils/windows/JavaService.exe and /dev/null differ diff --git a/utils/windows/Windows_Service_Install.bat b/utils/windows/Windows_Service_Install.bat deleted file mode 100644 index 0e44488e4f..0000000000 --- a/utils/windows/Windows_Service_Install.bat +++ /dev/null @@ -1,7 +0,0 @@ -@echo off - -REM $Id: Windows_Service_Install.bat,v 1.2 2003/11/01 20:55:15 comdivisionys Exp $ - -if (%ADEMPIERE_HOME%) == () (CALL myEnvironment.bat Server) else (CALL %ADEMPIERE_HOME%\utils\myEnvironment.bat Server) - -%ADEMPIERE_HOME%\utils\windows\JavaService.exe -install Adempiere %JAVA_HOME%\jre\bin\server\jvm.dll -Xmx256M -Djava.class.path=%JAVA_HOME%\lib\tools.jar;%ADEMPIERE_HOME%\jboss\bin\run.jar -server %ADEMPIERE_JAVA_OPTIONS% -Djetty.port=%ADEMPIERE_WEB_PORT% -Djetty.ssl=%ADEMPIERE_SSL_PORT% -Djetty.keystore=%ADEMPIERE_KEYSTORE% -Djetty.password=%ADEMPIERE_KEYSTORE_PASSWORD% -start org.jboss.Main -params -c adempiere -stop org.jboss.Main -method systemExit -out %ADEMPIERE_HOME%\jboss\bin\out.txt -current %ADEMPIERE_HOME%\jboss\bin diff --git a/utils/windows/Windows_Service_Uninstall.bat b/utils/windows/Windows_Service_Uninstall.bat deleted file mode 100644 index 8a157e85ed..0000000000 --- a/utils/windows/Windows_Service_Uninstall.bat +++ /dev/null @@ -1,8 +0,0 @@ -@echo off - -REM $Id: Windows_Service_Uninstall.bat,v 1.1 2003/11/01 17:42:47 comdivisionys Exp $ - -if (%ADEMPIERE_HOME%) == () (CALL myEnvironment.bat Server) else (CALL %ADEMPIERE_HOME%\utils\myEnvironment.bat Server) - -NET STOP Adempiere -%ADEMPIERE_HOME%\utils\windows\JavaService.exe -uninstall Adempiere diff --git a/utils/windows/background server start.txt b/utils/windows/background server start.txt deleted file mode 100644 index 5a22938599..0000000000 --- a/utils/windows/background server start.txt +++ /dev/null @@ -1,6 +0,0 @@ -Please find a suggestion on how to start the adempiere server in background -(as a windows service) -If you have a better one or suggestions for improvement, -please file a support request! - -NOTE: When starting the server with this utility, the dispaly of 8/16 bit character sets might not be correct. Works fine if started via bat file. diff --git a/utils/windows/license.txt b/utils/windows/license.txt index 334c2ee440..922236adfd 100644 --- a/utils/windows/license.txt +++ b/utils/windows/license.txt @@ -1,9 +1,61 @@ -Homepage: http://www.alexandriasc.com/software/JavaService/index.html + This software is currently covered by two open source licenses: -Copyright (c) 2000, Alexandria Software Consulting +/* + * JavaService - Windows NT Service Daemon for Java applications + * + * Copyright (C) 2004 Multiplan Consultants Ltd. + * + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * + * Information about the JavaService software is available at the ObjectWeb + * web site. Refer to http://javaservice.objectweb.org for more details. + * + * + * This software is derived from earlier work by Alexandria Software Consulting, + * (no longer contactable) which was released under a BSD-style license in 2001. + * The text of that original license is reproduced below for reference. + * + */ -All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - -Redistributions of source code must retain the above copyright notice, this list of conditions, and the following disclaimer. -Neither name of Alexandria Software Consulting nor the names of the contributors may be used to endorse or promote products derived from this software without specific prior written permission. -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file +/* + * + * JavaService - License + * + * By downloading and/or using this software you agree to abide by the following license: + * + * Copyright (c) 2000, Alexandria Software Consulting + * + * All rights reserved. Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, this list of + * conditions, and the following disclaimer. + * Neither name of Alexandria Software Consulting nor the names of the contributors may be + * used to endorse or promote products derived from this software without specific prior + * written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT + * SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED + * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY + * WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +