You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by an...@apache.org on 2014/04/09 18:28:27 UTC

svn commit: r1586017 - in /tomee/tomee/trunk: assembly/openejb-standalone/src/main/resources/ examples/rest-jaas/ examples/testing-security-3/ examples/testing-security-4/ tck/cdi-embedded/ tomee/apache-tomee/src/main/resources/

Author: andygumbrecht
Date: Wed Apr  9 16:28:26 2014
New Revision: 1586017

URL: http://svn.apache.org/r1586017
Log:
https://issues.apache.org/jira/browse/TOMEE-1170 - Investigate the use of the Win platform daemon tool (prunmgr.exe)
Ignore .idea

Added:
    tomee/tomee/trunk/assembly/openejb-standalone/src/main/resources/OpenEJBServer.exe   (with props)
    tomee/tomee/trunk/tomee/apache-tomee/src/main/resources/TomEE.exe   (with props)
Modified:
    tomee/tomee/trunk/assembly/openejb-standalone/src/main/resources/service.readme.txt
    tomee/tomee/trunk/examples/rest-jaas/   (props changed)
    tomee/tomee/trunk/examples/testing-security-3/   (props changed)
    tomee/tomee/trunk/examples/testing-security-4/   (props changed)
    tomee/tomee/trunk/tck/cdi-embedded/   (props changed)
    tomee/tomee/trunk/tomee/apache-tomee/src/main/resources/service.bat
    tomee/tomee/trunk/tomee/apache-tomee/src/main/resources/service.readme.txt

Added: tomee/tomee/trunk/assembly/openejb-standalone/src/main/resources/OpenEJBServer.exe
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/assembly/openejb-standalone/src/main/resources/OpenEJBServer.exe?rev=1586017&view=auto
==============================================================================
Binary file - no diff available.

Propchange: tomee/tomee/trunk/assembly/openejb-standalone/src/main/resources/OpenEJBServer.exe
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: tomee/tomee/trunk/assembly/openejb-standalone/src/main/resources/service.readme.txt
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/assembly/openejb-standalone/src/main/resources/service.readme.txt?rev=1586017&r1=1586016&r2=1586017&view=diff
==============================================================================
--- tomee/tomee/trunk/assembly/openejb-standalone/src/main/resources/service.readme.txt (original)
+++ tomee/tomee/trunk/assembly/openejb-standalone/src/main/resources/service.readme.txt Wed Apr  9 16:28:26 2014
@@ -1 +1 @@
-Windows NT Service
==================

The two batch files for creating and removing OpenEJB as a Windows Service are basically
self explanatory. Both scripts must be run using an account that has rights to install
or de-install a service. This is usually an administrator account.

service.install.as.admin.bat
service.remove.as.admin.bat

If a 'jre' or 'jdk' directory is found in an adjacent path to this 'bin' directory then
this will be used as the preferred runtime, else the installed system runtime is used.

NOTE: If you modify either of these batch files then ensure that there are no hidden
characters after the '^' continuation symbol (such as tab or space). But always ensure
there is a space before (and not a tab). The service installer will drop further options
and simply warn that '++JvmOptions' is unknown, leading to unexpected results.

++JvmOptions=-Dopenejb.home="%openejb%" ^
++JvmOptions=-Xms128M ^[tab or space] <-- Will break here, no further options will be appended
++JvmOptions=-Xmx512M ^
++JvmOptions=-XX:MaxPermSize=256M <-- Last line has no continuation symbol
\ No newline at end of file
+Windows NT Service
==================

The two batch files for creating and removing OpenEJB as a Windows Service are basically
self explanatory. Both scripts must be run using an account that has rights to install
or de-install a service. This is usually an administrator account.

service.install.as.admin.bat
service.remove.as.admin.bat

If a 'jre' or 'jdk' directory is found in an adjacent path to this 'bin' directory then
this will be used as the preferred runtime, else the installed system runtime is used.

NOTE: If you modify either of these batch files then ensure that there are no hidden
characters after the '^' continuation symbol (such as tab or space). But always ensure
there is a space before (and not a tab). The service installer will drop further options
and simply warn that '++JvmOptions' is unknown, leading to unexpected results.

++JvmOptions=-Dopenejb.home="%openejb%" ^
++JvmOptions=-Xms128M ^[tab or space] <-- Will break here, no further options will be appended
++JvmOptions=-Xmx512M ^
++JvmOptions=-XX:MaxPermSize=256M <-- Last line has no continuation symbol

Using the Monitor
=================
The file named 'OpenEJBServer.exe' can be used to modify service parameters post installation by running as an Administrator.
To use the monitor feature:

1. Create a shortcut to 'OpenEJBServer.exe' in your 'Startup' directory
2. Right click the shortcut and select 'Properties'
3. Edit the 'Target' field and append  //MS to the end of the line (Do not forget the preceding space ...\bin\OpenEJBServer.exe //MS)
\ No newline at end of file

Propchange: tomee/tomee/trunk/examples/rest-jaas/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Wed Apr  9 16:28:26 2014
@@ -1,2 +1,3 @@
 target
 *.iml
+.idea

Propchange: tomee/tomee/trunk/examples/testing-security-3/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Wed Apr  9 16:28:26 2014
@@ -1,2 +1,3 @@
 target
 *.iml
+.idea

Propchange: tomee/tomee/trunk/examples/testing-security-4/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Wed Apr  9 16:28:26 2014
@@ -1,2 +1,3 @@
 target
 *.iml
+.idea

Propchange: tomee/tomee/trunk/tck/cdi-embedded/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Wed Apr  9 16:28:26 2014
@@ -3,3 +3,4 @@
 .settings
 target
 *.iml
+.idea

Added: tomee/tomee/trunk/tomee/apache-tomee/src/main/resources/TomEE.exe
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/tomee/apache-tomee/src/main/resources/TomEE.exe?rev=1586017&view=auto
==============================================================================
Binary file - no diff available.

Propchange: tomee/tomee/trunk/tomee/apache-tomee/src/main/resources/TomEE.exe
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: tomee/tomee/trunk/tomee/apache-tomee/src/main/resources/service.bat
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/tomee/apache-tomee/src/main/resources/service.bat?rev=1586017&r1=1586016&r2=1586017&view=diff
==============================================================================
--- tomee/tomee/trunk/tomee/apache-tomee/src/main/resources/service.bat (original)
+++ tomee/tomee/trunk/tomee/apache-tomee/src/main/resources/service.bat Wed Apr  9 16:28:26 2014
@@ -108,7 +108,7 @@ set "CATALINA_BASE=%CATALINA_HOME%"
 
 set "EXECUTABLE=%proc%"
 
-rem Set default Service name
+rem Set default Service name (If you change this then rename also TomEE.exe to the same name)
 set SERVICE_NAME=TomEE
 set PR_DISPLAYNAME=Apache TomEE
 

Modified: tomee/tomee/trunk/tomee/apache-tomee/src/main/resources/service.readme.txt
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/tomee/apache-tomee/src/main/resources/service.readme.txt?rev=1586017&r1=1586016&r2=1586017&view=diff
==============================================================================
--- tomee/tomee/trunk/tomee/apache-tomee/src/main/resources/service.readme.txt (original)
+++ tomee/tomee/trunk/tomee/apache-tomee/src/main/resources/service.readme.txt Wed Apr  9 16:28:26 2014
@@ -1 +1 @@
-Windows NT Service
==================

The two batch files for creating and removing TomEE as a Windows Service are basically
self explanatory. Both scripts must be run using an account that has rights to install
or de-install a service. This is usually an administrator account.

service.install.as.admin.bat
service.remove.as.admin.bat

NOTE: Both scripts actually call the service.bat file, if you modify this batch file then ensure that there are no hidden
characters after the '^' continuation symbol (such as tab or space). But always ensure
there is a space before (and not a tab). The service installer will drop further options
and simply warn that '++JvmOptions' is unknown, leading to unexpected results.

++JvmOptions=-Dcatalina.base="%CATALINA_BASE%" ^
++JvmOptions=-Xms128M ^[tab or space] <-- Will break here, no further options will be appended
++JvmOptions=-Xmx512M ^
++JvmOptions=-XX:MaxPermSize=256M <-- Last line has no continuation symbol

Using a Defined JRE or JDK
==========================
The service script searches for and uses an installed Java runtime.
If you want to override this feature to use a specific runtime then edit the 'service.bat' file.

set "JAVA_HOME=[Full path to your JRE or JDK]"

Be aware if you override the runtime that the service installer uses native 32 bit x86, 64 bit ia64 and 64 bit amd64
executables to invoke the selected java runtime. For example, you cannot execute a 32 bit JRE using a 64 bit service.
If this is required then you will have to override the %PROCESSOR_ARCHITECTURE% variable.
\ No newline at end of file
+Windows NT Service
==================

The two batch files for creating and removing TomEE as a Windows Service are basically
self explanatory. Both scripts must be run using an account that has rights to install
or de-install a service. This is usually an administrator account.

service.install.as.admin.bat
service.remove.as.admin.bat

NOTE: Both scripts actually call the service.bat file, if you modify this batch file then ensure that there are no hidden
characters after the '^' continuation symbol (such as tab or space). But always ensure
there is a space before (and not a tab). The service installer will drop further options
and simply warn that '++JvmOptions' is unknown, leading to unexpected results.

++JvmOptions=-Dcatalina.base="%CATALINA_BASE%" ^
++JvmOptions=-Xms128M ^[tab or space] <-- Will break here, no further options will be appended
++JvmOptions=-Xmx512M ^
++JvmOptions=-XX:MaxPermSize=256M <-- Last line has no continuation symbol

Using a Defined JRE or JDK
==========================
The service script searches for and uses an installed Java runtime.
If you want to override this feature to use a specific runtime then edit the 'service.bat' file.

set "JAVA_HOME=[Full path to your JRE or JDK]"

Be aware if you override the runtime that the service installer uses native 32 bit x86, 64 bit ia64 and 64 bit amd64
executables to invoke the selected java runtime. For example, you cannot execute a 32 bit JRE using a 64 bit service.
If this is required then you will have to override the %PROCESSOR_ARCHITECTURE% variable.

Using the Monitor
=================
The file named 'TomEE.exe' can be used to modify service parameters post installation by running as an Administrator.
To use the monitor feature:

1. Create a shortcut to 'TomEE.exe' in your 'Startup' directory
2. Right click the shortcut and select 'Properties'
3. Edit the 'Target' field and append  //MS to the end of the line (Do not forget the preceding space ...\bin\TomEE.exe //MS)
\ No newline at end of file