Skip to content

Commit a33a719

Browse files
author
Romain Manni-Bucau
committed
header for walkmod.xml
1 parent 2000c28 commit a33a719

File tree

5 files changed

+87
-3
lines changed

5 files changed

+87
-3
lines changed
Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,31 @@
1-
Windows NT Service==================The two batch files for creating and removing OpenEJB as a Windows Service are basicallyself explanatory. Both scripts must be run using an account that has rights to installor de-install a service. This is usually an administrator account.service.install.as.admin.batservice.remove.as.admin.batIf a 'jre' or 'jdk' directory is found in an adjacent path to this 'bin' directory thenthis 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 hiddencharacters after the '^' continuation symbol (such as tab or space). But always ensurethere is a space before (and not a tab). The service installer will drop further optionsand 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 symbolUsing 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' directory2. 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)
1+
Windows NT Service
2+
==================
3+
4+
The two batch files for creating and removing OpenEJB as a Windows Service are basically
5+
self explanatory. Both scripts must be run using an account that has rights to install
6+
or de-install a service. This is usually an administrator account.
7+
8+
service.install.as.admin.bat
9+
service.remove.as.admin.bat
10+
11+
If a 'jre' or 'jdk' directory is found in an adjacent path to this 'bin' directory then
12+
this will be used as the preferred runtime, else the installed system runtime is used.
13+
14+
NOTE: If you modify either of these batch files then ensure that there are no hidden
15+
characters after the '^' continuation symbol (such as tab or space). But always ensure
16+
there is a space before (and not a tab). The service installer will drop further options
17+
and simply warn that '++JvmOptions' is unknown, leading to unexpected results.
18+
19+
++JvmOptions=-Dopenejb.home="%openejb%" ^
20+
++JvmOptions=-Xms128M ^[tab or space] <-- Will break here, no further options will be appended
21+
++JvmOptions=-Xmx512M ^
22+
++JvmOptions=-XX:MaxPermSize=256M <-- Last line has no continuation symbol
23+
24+
Using the Monitor
25+
=================
26+
The file named 'OpenEJBServer.exe' can be used to modify service parameters post installation by running as an Administrator.
27+
To use the monitor feature:
28+
29+
1. Create a shortcut to 'OpenEJBServer.exe' in your 'Startup' directory
30+
2. Right click the shortcut and select 'Properties'
31+
3. Edit the 'Target' field and append //MS to the end of the line (Do not forget the preceding space ...\bin\OpenEJBServer.exe //MS)

examples/access-timeout/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The semantics of the value element are as follows:
5050
Just as simple as that !
5151

5252
###What exception would the client receive, with a timeout ?
53-
Quoting from the spec, "if a client-invoked business method is in progress on an instance when another client-invoked call, from the same or different client, arrives at the same instance of a stateful session bean, if the second client is a client of the beanÕs business interface or no-interface view, the concurrent invocation must result in the second client receiving a javax.ejb.ConcurrentAccessException[15]. If the EJB 2.1 client view is used, the container must throw a java.rmi.RemoteException if the second client is a remote client, or a javax.ejb.EJBException if the second client is a local client"
53+
Quoting from the spec, "if a client-invoked business method is in progress on an instance when another client-invoked call, from the same or different client, arrives at the same instance of a stateful session bean, if the second client is a client of the bean�s business interface or no-interface view, the concurrent invocation must result in the second client receiving a javax.ejb.ConcurrentAccessException[15]. If the EJB 2.1 client view is used, the container must throw a java.rmi.RemoteException if the second client is a remote client, or a javax.ejb.EJBException if the second client is a local client"
5454

5555
### No standard default
5656

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,39 @@
1-
Windows NT Service==================The two batch files for creating and removing TomEE as a Windows Service are basicallyself explanatory. Both scripts must be run using an account that has rights to installor de-install a service. This is usually an administrator account.service.install.as.admin.batservice.remove.as.admin.batNOTE: Both scripts actually call the service.bat file, if you modify this batch file then ensure that there are no hiddencharacters after the '^' continuation symbol (such as tab or space). But always ensurethere is a space before (and not a tab). The service installer will drop further optionsand 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 symbolUsing 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 amd64executables 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' directory2. 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)
1+
Windows NT Service
2+
==================
3+
4+
The two batch files for creating and removing TomEE as a Windows Service are basically
5+
self explanatory. Both scripts must be run using an account that has rights to install
6+
or de-install a service. This is usually an administrator account.
7+
8+
service.install.as.admin.bat
9+
service.remove.as.admin.bat
10+
11+
NOTE: Both scripts actually call the service.bat file, if you modify this batch file then ensure that there are no hidden
12+
characters after the '^' continuation symbol (such as tab or space). But always ensure
13+
there is a space before (and not a tab). The service installer will drop further options
14+
and simply warn that '++JvmOptions' is unknown, leading to unexpected results.
15+
16+
++JvmOptions=-Dcatalina.base="%CATALINA_BASE%" ^
17+
++JvmOptions=-Xms128M ^[tab or space] <-- Will break here, no further options will be appended
18+
++JvmOptions=-Xmx512M ^
19+
++JvmOptions=-XX:MaxPermSize=256M <-- Last line has no continuation symbol
20+
21+
Using a Defined JRE or JDK
22+
==========================
23+
The service script searches for and uses an installed Java runtime.
24+
If you want to override this feature to use a specific runtime then edit the 'service.bat' file.
25+
26+
set "JAVA_HOME=[Full path to your JRE or JDK]"
27+
28+
Be aware if you override the runtime that the service installer uses native 32 bit x86, 64 bit ia64 and 64 bit amd64
29+
executables to invoke the selected java runtime. For example, you cannot execute a 32 bit JRE using a 64 bit service.
30+
If this is required then you will have to override the %PROCESSOR_ARCHITECTURE% variable.
31+
32+
Using the Monitor
33+
=================
34+
The file named 'TomEE.exe' can be used to modify service parameters post installation by running as an Administrator.
35+
To use the monitor feature:
36+
37+
1. Create a shortcut to 'TomEE.exe' in your 'Startup' directory
38+
2. Right click the shortcut and select 'Properties'
39+
3. Edit the 'Target' field and append //MS to the end of the line (Do not forget the preceding space ...\bin\TomEE.exe //MS)

walkmod.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
<!DOCTYPE walkmod PUBLIC "-//WALKMOD//DTD" "http://www.walkmod.com/dtd/walkmod-1.1.dtd" >
2+
<!--
3+
Licensed to the Apache Software Foundation (ASF) under one or more
4+
contributor license agreements. See the NOTICE file distributed with
5+
this work for additional information regarding copyright ownership.
6+
The ASF licenses this file to You under the Apache License, Version 2.0
7+
(the "License"); you may not use this file except in compliance with
8+
the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
-->
218
<walkmod>
319
<chain name="main-chain">
420
<reader path="." >

0 commit comments

Comments
 (0)