public
Last active

  • Download Gist
JBOSS_SERVICE.bat
Batchfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466
@ECHO off
::-------------------------------------------------------------------
:: This is a script that handles the YAJSW Windows service wrapper
:: for Java. Without args, this script will prompt.
:: This script overrides the Jboss run.conf.bat file
:: This script enables JMX console listener for use by JVisualVM
:: This script forces you to run 32bit JBoss with 32bit cmd.exe shell
:: This script should work with JBoss 3, 4, 5, and 6
:: Author: Jon Austen
:: Date: December 2012
::-------------------------------------------------------------------
SETLOCAL ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS
CLS
 
::-------------------------------------------------------------------
:: JAVA_HOME override
:: Uncomment the next line to override JAVA_HOME on your system
::-------------------------------------------------------------------
::SET JAVA_HOME=C:\Java\jdk1.6.0_33_x64
 
::-------------------------------------------------------------------
:: Set TITLE, JBOSS_HOME, and DIRNAME variables
::-------------------------------------------------------------------
SET JBOSS_HOME=%~dp0
SET "JBOSS_HOME=%JBOSS_HOME:bin\=%"
IF %JBOSS_HOME:~-1%==\ SET "JBOSS_HOME=%JBOSS_HOME:~0,-1%"
SET "THISFILE=%~n0%~x0"
SET TITLE=Starting %THISFILE%
 
::-------------------------------------------------------------------
:: Configuration:
:: before running you need to configure these
::-------------------------------------------------------------------
IF "%1"=="" (
SET DELAY=20
) ELSE (
SET DELAY=5
)
SET DEBUGLEVEL=DEBUG
SET DEFAULT_INSTANCE=ports-01
:: comment next line if you want script to prompt user for service startup TYPE
SET STARTUP_TYPE=auto
SET VER=
 
::-------------------------------------------------------------------
:: Parse script args
::-------------------------------------------------------------------
IF "%3%"=="" (
ECHO There are not 3 args.
IF "%2"=="" (
ECHO There are not 2 args.
IF "%1"=="" (
ECHO There is not even 1 script arg.
SET INSTANCE=%DEFAULT_INSTANCE%
SET TYPE=%STARTUP_TYPE%
SET ACTION=
GOTO :SETTYPE
) ELSE (
ECHO There is 1 arg.
SET ACTION=%1
SET INSTANCE=%DEFAULT_INSTANCE%
SET TYPE=%STARTUP_TYPE%
GOTO :SETTYPE
)
) ELSE (
ECHO There are 2 args.
SET ACTION=%1
ECHO Setting INSTANCE name to second script argument: %2
SET INSTANCE=%2
SET TYPE=%STARTUP_TYPE%
GOTO :SETTYPE
)
) ELSE (
ECHO There are 3 args.
IF NOT "%ACTION%"=="" (
ECHO Setting ACTION to execute: %1
)
SET ACTION=%1
ECHO Setting INSTANCE name of service: %2
SET INSTANCE=%2
ECHO Setting TYPE of service startup: %3
SET TYPE=%3
)
:SETTYPE
:: next, if STARTUP_TYPE is set to blank, prompt for it
IF "%TYPE%"=="" (
SET TYPE=
ECHO.&ECHO.
ECHO --------------------------
ECHO Service can be registered to start in different ways:
ECHO boot,system,auto,demand,disabled, or delayed-auto
ECHO --------------------------
SET /P "TYPE=Choose a service TYPE type: "
) ELSE (
SET TYPE=%TYPE%
)
CALL :verifytype
ECHO.
ECHO Parsed args: 1:%ACTION% 2:%INSTANCE% 3:%TYPE%
:BEGIN
 
::-------------------------------------------------------------------
:: Main script
::-------------------------------------------------------------------
CALL :mainheader
CALL :checks
CALL :wrappersetup
GOTO :MENU
:MENURESET
SET ACTION=
:MENU
SET TITLETEXT=%THISFILE% running JBOSS in ^"%JBOSS_HOME%\server\%INSTANCE%\^"
TITLE %TITLETEXT%
ECHO.
ECHO -----------------------------
ECHO Options MENU:
ECHO ----------------------------- &ECHO.
ECHO [install] Install service
ECHO [start] Start service
ECHO [stop] Stop service
ECHO [remove] Remove or uninstall service
ECHO [console] Run service as console
ECHO [query] Query service status
ECHO [usage] Display usage help
ECHO [X] Exit script
ECHO.
ECHO -----------------------------
ECHO.
IF "%ACTION%"=="" SET /P "ACTION=Choose an action type in this MENU to execute: "
ECHO.
IF "%ACTION%"=="X" GOTO :EOF
IF "%ACTION%"=="x" GOTO :EOF
IF "%ACTION%"=="usage" (
CALL :usage
PAUSE
IF "%1"=="" GOTO :MENURESET
)
IF "%ACTION%"=="install" (
CALL :startheader
CALL :addservice
IF "%1"=="" GOTO :MENURESET
)
IF "%ACTION%"=="start" (
SC.exe start %SERVICE_NAME%
CALL :servicestatus
IF "%1"=="" GOTO :MENURESET
)
IF "%ACTION%"=="stop" (
SC.exe stop %SERVICE_NAME%
CALL :servicestatus
IF "%1"=="" GOTO :MENURESET
)
IF "%ACTION%"=="remove" (
SC.exe delete %SERVICE_NAME%
IF "%1"=="" GOTO :MENURESET
)
IF "%ACTION%"=="console" (
DEL /Q "%JBOSS_HOME%\wrapper\log\*%INSTANCE%.log*"
SET TITLETEXT=JBOSS wrapper console in ^"%JBOSS_HOME%\server\%INSTANCE%^"
TITLE !TITLETEXT!
CALL :startheader
CALL :consoleservice
IF "%1"=="" GOTO :MENURESET
)
IF "%ACTION%"=="query" (
CALL :startheader
CALL :queryservice
CALL :displayports
IF "%1"=="" GOTO :MENURESET
)
 
GOTO :END
::-------------------------------------------------------------------
:: Functions
::-------------------------------------------------------------------
:addservice
ECHO Function: addservice
ECHO ***********************
ECHO Using wrapper to install service : service-name=%SERVICE_NAME%, startup-type=%TYPE%
ECHO "%JAVA_HOME%\bin\java.exe" %WRAPPER_ARGS% -jar %JBOSS_HOME%\bin\wrapper\wrapper.jar -i %WRAPPER_CONFIG_FILE%
CALL "%JAVA_HOME%\bin\java.exe" %WRAPPER_ARGS% -jar %JBOSS_HOME%\bin\wrapper\wrapper.jar -i %WRAPPER_CONFIG_FILE%
ECHO.
ECHO ***********************
SC.exe config %SERVICE_NAME% start= %TYPE%
ECHO Installing service ^"%SERVICE_NAME%^" is finished.
ECHO ***********************
ECHO.
EXIT /B 0
 
:checks
:: TODO: check not JBoss7
IF NOT EXIST wrapper\lib (
ECHO.
ECHO The YAJSW distributions 'lib' directory is needed in a directory called .\wrapper
ECHO that is relative to this script and the run.bat .
ECHO Under .\wrapper you also need the wrapper.jar and wrapper.jboss.conf .
ECHO Download distro from http://sourceforge.net/projects/yajsw/ .
C:
START "%ProgramFiles%\Internet Explorer\iexplore.exe" http://sourceforge.net/projects/yajsw
ECHO.
CALL :waitseconds 10
GOTO :END
)
IF NOT EXIST run.bat (
ECHO This file must be run from the JBoss bin directory
GOTO :END
)
IF NOT DEFINED JAVA_HOME (
ECHO JAVA_HOME must be defined as an environment variable.
GOTO :END
) ELSE (
SET "PATH=%JAVA_HOME%\bin;%PATH%"
)
IF NOT EXIST "%JAVA_HOME%" (
ECHO JAVA_HOME must be defined to an actual location.
ECHO Also, make sure you used the override in this script correctly.
GOTO :END
)
IF "%INSTANCE%"=="" (
ECHO Instance name must be defined in this script file.
ECHO The named instance in directory: %JBOSS_HOME%\server\ .
GOTO :END
)
IF NOT EXIST wrapper\wrapperApp.jar (
ECHO You need to copy the wrapperApp.jar into place at bin\wrapper\wrapperApp.jar
GOTO :END
)
IF NOT EXIST wrapper\wrapper.jar (
ECHO You need to copy the wrapperApp.jar into place at bin\wrapper\wrapper.jar
GOTO :END
)
IF EXIST wrapper\YAJSW.sample.wrapper.conf (
IF NOT EXIST wrapper\%INSTANCE%.wrapper.conf (
COPY wrapper\YAJSW.sample.wrapper.conf wrapper\%INSTANCE%.wrapper.conf
)
) ELSE (
ECHO Missing file YAJSW.sample.wrapper.conf from .\wrapper directory in %JBOSS_HOME%\bin .
GOTO :END
)
::-------------------------------------------------------------------
:: Detect windows shell architecture
::-------------------------------------------------------------------
SET ProgramFiles(x86) | FIND "not defined"
IF %ERRORLEVEL%==1 (
:: if defined then 64
SET CMD_ARCH=64
) ELSE (
:: if not defined then 32
SET CMD_ARCH=32
)
ECHO Command shell architecture is %CMD_ARCH%
::-------------------------------------------------------------------
:: Set memory levels for environment
::-------------------------------------------------------------------
ECHO Checking that JDK bit architecture matches cmd.exe bit architecture...
for /f "tokens=3" %%g in ('%JAVA_HOME%\bin\java.exe -version 2^>^&1 ^| findstr /i "64-bit"') do (
set JARCH64=%%g
)
for /f "tokens=3" %%g in ('%JAVA_HOME%\bin\java.exe -version 2^>^&1 ^| findstr /i "Client"') do (
set JARCH32=%%g
)
IF NOT "%JARCH64%"=="" (
SET JAVA_ARCH=64
)
IF NOT "%JARCH32%"=="" (
SET JAVA_ARCH=32
)
ECHO Java architecture is %JAVA_ARCH%-bit.
SET MS=512M
IF "%JAVA_ARCH%"=="64" (
IF "%CMD_ARCH%"=="64" (
ECHO A 64bit java in a 64bit shell.
SET MM=2048M
SET MPS=256M
ECHO Max memory set to !MM! ^(with !MPS! permsize^) in %JAVA_ARCH%-bit JVM in a %CMD_ARCH%-bit shell.
) ELSE (
ECHO A 64-bit JVM cannot run in a 32-bit shell.
)
) ELSE (
IF "%CMD_ARCH%"=="64" (
ECHO A 32bit java in a 64bit shell.
SET MM=1402M
SET MPS=256M
ECHO Max memory set to !MM! ^(with !MPS! permsize^) in %JAVA_ARCH%-bit JVM in a %CMD_ARCH%-bit shell.
) ELSE (
ECHO A 32bit java in a 32bit shell.
SET MM=1302M
SET MPS=256M
ECHO Max memory set to !MM! ^(with !MPS! permsize^) in %JAVA_ARCH%-bit JVM in a %CMD_ARCH%-bit shell.
)
)
IF NOT EXIST wrapper\tmp (
MKDIR wrapper\tmp
)
IF NOT EXIST "%JBOSS_HOME%\server\%INSTANCE%" (
::RD.exe /S /Q "%JBOSS_HOME%\server\default\tmp"
DEL /S "%JBOSS_HOME%\server\default\data"
DEL /S "%JBOSS_HOME%\server\default\log"
DEL /S "%JBOSS_HOME%\server\default\tmp"
DEL /S "%JBOSS_HOME%\server\default\work"
XCOPY.exe "%JBOSS_HOME%\server\default" "%JBOSS_HOME%\server\%INSTANCE%" /Y /E /F /I
)
IF NOT EXIST "%JBOSS_HOME%\server\ports-bindings.xml" (
COPY /Y "%JBOSS_HOME%\server\%INSTANCE%\conf\bindingservice.beans\META-INF\bindings-jboss-beans.xml" "%JBOSS_HOME%\server\"
)
ECHO.
EXIT /B 0
 
:consoleservice
ECHO Function: consoleservice
ECHO Run wrapper in console for service ^"%SERVICE_NAME%^"
ECHO ***********************
ECHO Using wrapper to run in console : service-name=%SERVICE_NAME%, startup-type=%TYPE%
ECHO Running service in console...
ECHO "%JAVA_HOME%\bin\java.exe" %WRAPPER_ARGS% -jar %JBOSS_HOME%\bin\wrapper\wrapper.jar -c %WRAPPER_CONFIG_FILE%
CALL "%JAVA_HOME%\bin\java.exe" %WRAPPER_ARGS% -jar %JBOSS_HOME%\bin\wrapper\wrapper.jar -c %WRAPPER_CONFIG_FILE%
ECHO.
ECHO ***********************
EXIT /B 0
 
:displayports
ECHO Active JBoss ports
 
EXIT /B 0
 
:jbossver
FINDSTR.exe /R "JBoss_5" "%JBOSS_HOME%\jar-versions.xml">nul
IF %ERRORLEVEL%==0 SET VER=5
FINDSTR.exe /R "JBoss_6" "%JBOSS_HOME%\jar-versions.xml">nul
IF %ERRORLEVEL%==0 SET VER=6
EXIT /B 0
 
:mainheader
TITLE %TITLE_TEXT%
ECHO ------------------------------------
EXIT /B 0
 
:queryservice
ECHO Function: queryservice
ECHO Run wrapper to query ^"%SERVICE_NAME%^"
ECHO ***********************
ECHO "%JAVA_HOME%\bin\java.exe" %WRAPPER_ARGS% -jar %JBOSS_HOME%\bin\wrapper\wrapper.jar -q %WRAPPER_CONFIG_FILE%
CALL "%JAVA_HOME%\bin\java.exe" %WRAPPER_ARGS% -jar %JBOSS_HOME%\bin\wrapper\wrapper.jar -q %WRAPPER_CONFIG_FILE%
ECHO.
ECHO ***********************
EXIT /B 0
 
:servicestatus
ECHO Checking status of service...
CALL :waitseconds 2
sc.exe query %SERVICE_NAME% | find "STATE">query.tmp
ECHO.
FOR /F "tokens=1,4 delims=, " %%I IN ( query.tmp ) DO (
ECHO Status of ^"%SERVICE_NAME%^" : %%I - %%J
IF "%%J"=="START_PENDING" (
ECHO Service is pending a start.
SET "PENDING=true"
SET "RUNNING=unknown"
) ELSE IF "%%J"=="STOP_PENDING" (
ECHO Service is pending a stop.
SET "PENDING=true"
SET "RUNNING=unknown"
) ELSE IF "%%J"=="STOPPED" (
ECHO Service is stopped.
SET "PENDING=false"
SET "RUNNING=false"
) ELSE IF "%%J"=="RUNNING" (
ECHO Service is running.
SET "PENDING=false"
SET "RUNNING=true"
)
)
DEL /Q query.tmp
IF "%PENDING%"=="true" GOTO :servicestatus
EXIT /B 0
 
:settitle
SET TITLETEXT=JBoss ^"!SERVICE_NAME!^" Service Controller
TITLE %TITLETEXT%
EXIT /B 0
 
:startheader
:: Generated by: http://patorjk.com/software/taag/#p=display&f=Star%20Wars&t=JBoss
ECHO __ .______ ______ _______. _______.
ECHO ^| ^| ^| _ \ / __ \ / ^| / ^|
ECHO ^| ^| ^| ^|_) ^| ^| ^| ^| ^| ^| (----` ^| (----`
ECHO .--. ^| ^| ^| _ ^< ^| ^| ^| ^| \ \ \ \
ECHO ^| `--' ^| ^| ^|_) ^| ^| `--' ^| .----) ^| .----) ^|
ECHO \______/ ^|______/ \______/ ^|_______/ ^|_______/
ECHO.
ECHO.
ECHO Script environment:
ECHO JAVA_HOME=%JAVA_HOME%
ECHO JBOSS_HOME=%JBOSS_HOME%
ECHO WRAPPER_ARGS=%WRAPPER_ARGS%
ECHO SERVICE_NAME=%SERVICE_NAME%
ECHO ACTION=%ACTION%
ECHO WRAPPER_CONFIG_FILE: %WRAPPER_CONFIG_FILE%
ECHO ^(STARTUP^) TYPE=%TYPE%
ECHO.
ECHO.
EXIT /B 0
 
:usage
ECHO.
ECHO -----------------------------
ECHO Usage:
ECHO -----------------------------
ECHO MENU will not be displayed if any arg is passed : &ECHO.
ECHO %~n0%~x0 start JBOSS_%INSTANCE%
ECHO %~n0%~x0 stop
ECHO %~n0%~x0 add JBOSS_%INSTANCE%
ECHO %~n0%~x0 add
ECHO %~n0%~x0 console JBOSS_%INSTANCE%
ECHO %~n0%~x0 query JBOSS_%INSTANCE%
ECHO.
ECHO -----------------------------
ECHO.
EXIT /B 0
 
:verifytype
SET FAIL=true
IF "%TYPE%"=="boot" SET FAIL=false
IF "%TYPE%"=="system" SET FAIL=false
IF "%TYPE%"=="auto" SET FAIL=false
IF "%TYPE%"=="demand" SET FAIL=false
IF "%TYPE%"=="disabled" SET FAIL=false
IF "%TYPE%"=="delayed-auto" SET FAIL=false
IF "%FAIL%"=="true" (
SET TYPE=
ECHO Invalid TYPE option. Try again.
ECHO.
GOTO :SETTYPE
)
ECHO Startup TYPE is: %TYPE%
EXIT /B 0
 
:waitseconds timeArg
SET /A VAL=%1
ECHO Pausing for %VAL% seconds.
SET /A DUR=%VAL%*2
PING.exe -n %DUR% -w 1 127.0.0.1>nul
EXIT /B 0
 
:wrappersetup
SET SERVICE_NAME=JBOSS_%INSTANCE%
SET "WRAPPER_CONFIG_FILE=%JBOSS_HOME%\bin\wrapper\%INSTANCE%.wrapper.conf"
CALL :jbossver
IF "%VER%"=="6" (
SET "WRAPPER_ARGS=-Ddarg1=-Djboss.platform.mbeanserver -Ddarg2=-Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl"
) ELSE (
SET "WRAPPER_ARGS=-Ddarg1=-Djboss6placeholder1 -Ddarg2=-Djboss6placeholder2"
)
SET "WRAPPER_ARGS=%WRAPPER_ARGS% -Djboss.home="%JBOSS_HOME%" -Dservice.name=%SERVICE_NAME% -Ddebug.level=%DEBUGLEVEL% -Dinstance=%INSTANCE%"
SET "WRAPPER_ARGS=%WRAPPER_ARGS% -Djava.home="%JAVA_HOME%" -Djboss.ms=%MS% -Djboss.mm=%MM% -Djboss.perm=%MPS%"
:: Change back-slashes to forward-slashes before passing options to the wrapper
SET "WRAPPER_ARGS=%WRAPPER_ARGS:\=/%"
EXIT /B 0
 
::-------------------------------------------------------------------
:: End script
::-------------------------------------------------------------------
:END
ECHO.
ECHO Service script is finished and will close automatically in %DELAY% seconds.
FOR /l %%a IN (%DELAY%,-1,1) DO (TITLE JBoss %APPDIR% -- Closing in %%as&PING.exe -n 2 -w 1 127.0.0.1>nul)
ports-01.wrapper.conf
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
## wrapper.conf
 
## parsed args from script
wrapper.java.home=${java.home}
wrapper.app.home=${jboss.home}
wrapper.debug.level=${debug.level}
wrapper.app.instance=${instance}
wrapper.app.servicename=${service.name}
wrapper.minheap=${jboss.ms}
wrapper.maxheap=${jboss.mm}
wrapper.permsize=${jboss.perm}
 
## wrapper configuration
wrapper.java.command=${wrapper.java.home}\\bin\\java.exe
wrapper.java.command.maxVersion=1.6.0
wrapper.java.command.minVersion=1.5.0_14
wrapper.ntservice.java.command=${wrapper.java.command}
wrapper.java.command.preferJdk=true
wrapper.console.loglevel=${wrapper.debug.level}
wrapper.debug=true
wrapper.tray=true
 
## custom proc name may be problematic with wrapper.tray
#wrapper.java.customProcName=jboss-${wrapper.app.instance}
 
# enviroment variable JAVA_OPTS
wrapper.java.additional.1=-Dprogram.name=run.bat
wrapper.java.additional.2=-Xms${wrapper.minheap}
wrapper.java.additional.3=-Xmx${wrapper.maxheap}
wrapper.java.additional.4=-XX:MaxPermSize=${wrapper.permsize}
wrapper.java.additional.5=-Dsun.rmi.dgc.client.gcInterval=3600000
wrapper.java.additional.6=-Dsun.rmi.dgc.server.gcInterval=3600000
wrapper.java.additional.7=-Dorg.jboss.resolver.warning=true
wrapper.java.additional.8=-Djava.endorsed.dirs=${wrapper.app.home}/lib/endorsed
wrapper.java.additional.9=-Dsun.lang.ClassLoader.allowArraySyntax=true
#wrapper.java.additional.10=-Dcom.sun.management.jmxremote.port=9999
#wrapper.java.additional.11=-Dcom.sun.management.jmxremote.authenticate=false
#wrapper.java.additional.12=-Dcom.sun.management.jmxremote.ssl=false
wrapper.java.additional.13=-Dsession.serialization.jboss=true
wrapper.java.additional.14=-Djboss.service.binding.set=${wrapper.app.instance}
wrapper.java.additional.15=${darg1}
wrapper.java.additional.16=${darg2}
# wrapper.java.additional.17=-Djava.awt.headless=true
# wrapper.java.additional.18=-Xrunjdwp:transport=dt_shmem,address=jboss,server=y,suspend=n
# wrapper.java.additional.19=-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n
 
# Classpath
wrapper.java.classpath.1=${wrapper.app.home}\\bin\\run.jar
 
# Parameters to be passed to the application
wrapper.java.app.mainclass=org.jboss.Main
wrapper.app.parameter.1=org.jboss.Main
wrapper.app.parameter.2=-c
wrapper.app.parameter.3=${wrapper.app.instance}
wrapper.app.parameter.4=-b
wrapper.app.parameter.5=0.0.0.0
 
# wrapper JMX (separate from app JMX, which is enabled with -D args)
wrapper.jmx=true
wrapper.jmx.rmi.port=9998
 
# heap control
# wrapper.java.monitor.heap = true
# wrapper.filter.trigger.heap.tray = wrapper.java.monitor.heap: HEAP SIZE
# wrapper.filter.script.heap.tray = scripts/trayMessage.gv
# wrapper.filter.script.heap.tray.args = Heap Issue Detected
#wrapper.java.monitor.heap.restart = true
#wrapper.java.monitor.heap.threshold.percent=99
#wrapper.ntservice.failure_actions.actions = RESTART
#wrapper.ntservice.failure_actions.actions_delay=60000
 
# wrapper log location
wrapper.logfile=${wrapper.app.home}/bin/wrapper/log/${wrapper.app.servicename}.log
 
wrapper.console.title=JBOSS Service YAJSW Console
wrapper.ntservice.name=${wrapper.app.servicename}
wrapper.ntservice.displayname=${wrapper.app.servicename}
wrapper.ntservice.description=JBoss at ${wrapper.app.home}/server/${wrapper.app.instance}/
wrapper.ntservice.autoreport.startup=true
#wrapper.app.account=

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.