diff --git a/jboss/.classpath b/jboss/.classpath new file mode 100644 index 0000000000..1cb46d1624 --- /dev/null +++ b/jboss/.classpath @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/jboss/.project b/jboss/.project new file mode 100644 index 0000000000..d538ec80ef --- /dev/null +++ b/jboss/.project @@ -0,0 +1,17 @@ + + + jboss + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/jboss/bin/classpath.sh b/jboss/bin/classpath.sh new file mode 100644 index 0000000000..091a620f99 --- /dev/null +++ b/jboss/bin/classpath.sh @@ -0,0 +1,193 @@ +#!/bin/sh +### ====================================================================== ### +## ## +## A tool to determine JBoss classpaths. ## +## ## +### ====================================================================== ### + +### $Id: classpath.sh,v 1.3 2005/09/04 17:52:33 jjanke Exp $ ### + +DIRNAME=`dirname $0` +PROGNAME=`basename $0` +CAT="cat" + +# +# Helper to complain. +# +warn() { + echo "${PROGNAME}: $*" +} + +# +# Helper to puke. +# +die() { + warn $* + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false; +darwin=false; +case "`uname`" in + CYGWIN*) + cygwin=true + ;; + + Darwin*) + darwin=true + ;; +esac + +# +# Print the command line help message. +# +printHelpMessage() { + $CAT < + +options: + -h, --help Print this help message. + -- Stop processing options. + -r, --relative Use relative paths. + +classpath: + -c, --client Client classpath (client/*). + -s, --server Server classpath (lib/*). + -b, --both Both the client and server classpaths. +EOF +} + +RELATIVE=false + +# +# Process command line options. +# +processCommandLine() { + while [ "x$1" != "x" ]; do + case "$1" in + --help|-h) + printHelpMessage + exit 1 + ;; + + --relative|-r) + RELATIVE=true + ;; + + --) + shift + if [ "x$argv" = "x" ]; then + argv="$1" + else + argv="$argv $1" + fi + break + ;; + + *) + if [ "x$argv" = "x" ]; then + argv="$1" + else + argv="$argv $1" + fi + ;; + esac + shift + done +} + +if [ -n "$CLASSPATH" ] ; then + LOCALCLASSPATH=$CLASSPATH +fi + +# +# Print the class path for the given type. +# +printClassPath() { + +# +# jason: should be fixed to only include proper classpath bits +# + + case "$1" in + -c|--client) + DIRLIBS="`ls $JBOSS_HOME/client/*`:$JBOSS_HOME/client" + ;; + + -s|--server) + DIRLIBS=`ls $JBOSS_HOME/lib/*` + ;; + + -b|--both) + DIRLIBS="`ls $JBOSS_HOME/client/*`:$JBOSS_HOME/client" + DIRLIBS="${DIRLIBS}:`ls $JBOSS_HOME/lib/*`" + ;; + + *) + printHelpMessage + exit 0 + ;; + esac + + for i in ${DIRLIBS}; do + if [ "$i" != "${DIRLIBS}" ] ; then + if [ -z "$LOCALCLASSPATH" ] ; then + LOCALCLASSPATH=$i + else + LOCALCLASSPATH="$i":$LOCALCLASSPATH + fi + fi + done + + # For Cygwin, switch paths to Windows format before running java + if $cygwin; then + LOCALCLASSPATH=`cygpath --path --windows "$LOCALCLASSPATH"` + fi + + echo $LOCALCLASSPATH +} + +# +# Main entry-point. +# +main() { + argv="" + + # process the command line + processCommandLine "$@" + + # For Cygwin, ensure paths are in UNIX format before anything is touched + if $cygwin ; then + [ -n "$JBOSS_HOME" ] && + JBOSS_HOME=`cygpath --unix "$JBOSS_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --unix "$JAVA_HOME"` + [ -n "$JAVAC_JAR" ] && + JAVAC_JAR=`cygpath --unix "$JAVAC_JAR"` + fi + + # Setup JBOSS_HOME + if [ "x$JBOSS_HOME" = "x" ]; then + if $RELATIVE ; then + JBOSS_HOME="$DIRNAME/.." + else + # get the full path (without any relative bits) + JBOSS_HOME=`cd $DIRNAME/..; pwd` + fi + fi + + if [ "x$argv" = "x" ]; then + printHelpMessage + exit 0 + fi + + printClassPath $argv +} + +# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # + +# +# Boot-strap +# +main "$@" diff --git a/jboss/bin/deployer.bat b/jboss/bin/deployer.bat new file mode 100644 index 0000000000..306e9ee64d --- /dev/null +++ b/jboss/bin/deployer.bat @@ -0,0 +1,60 @@ +@echo off +rem ------------------------------------------------------------------------- +rem JBoss Bootstrap Script for Win32 +rem ------------------------------------------------------------------------- + +rem $Id: deployer.bat,v 1.3 2005/09/04 17:52:33 jjanke Exp $ + +@if not "%ECHO%" == "" echo %ECHO% +@if "%OS%" == "Windows_NT" setlocal + +set DIRNAME=.\ +if "%OS%" == "Windows_NT" set DIRNAME=%~dp0% +set PROGNAME=run.bat +if "%OS%" == "Windows_NT" set PROGNAME=%~nx0% + +rem Read all command line arguments + +set ARGS= +:loop +if [%1] == [] goto endloop + set ARGS=%ARGS% %1 + shift + goto loop +:endloop + +rem Find run.jar, or we can't continue + +set RUNJAR=%DIRNAME%\deployer.jar +if exist "%RUNJAR%" goto FOUND_RUN_JAR +echo Could not locate %RUNJAR%. Please check that you are in the +echo bin directory when running this script. +goto END + +:FOUND_RUN_JAR + +if not "%JAVA_HOME%" == "" goto ADD_TOOLS + +set JAVA=java + +echo JAVA_HOME is not set. Unexpected results may occur. +echo Set JAVA_HOME to the directory of your local JDK to avoid this message. +goto SKIP_TOOLS + +:ADD_TOOLS + +set JAVA=%JAVA_HOME%\bin\java + +rem Setup JBoss sepecific properties +set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME% +set JBOSS_HOME=%DIRNAME%\.. + +rem JPDA options. Uncomment and modify as appropriate to enable remote debugging. +rem set JAVA_OPTS=-classic -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS% + +"%JAVA%" %JAVA_OPTS% -classpath "%JBOSS_CLASSPATH%" org.jboss.jmx.service.RemoteDeployer %ARGS% + +:END +if "%NOPAUSE%" == "" pause + +:END_NO_PAUSE diff --git a/jboss/bin/deployer.sh b/jboss/bin/deployer.sh new file mode 100644 index 0000000000..f910251abd --- /dev/null +++ b/jboss/bin/deployer.sh @@ -0,0 +1,105 @@ +#!/bin/sh +### ====================================================================== ### +## ## +## JBoss Bootstrap Script ## +## ## +### ====================================================================== ### + +### $Id: deployer.sh,v 1.3 2005/09/04 17:52:33 jjanke Exp $ ### + +DIRNAME=`dirname $0` +PROGNAME=`basename $0` +GREP="grep" + +# +# Helper to complain. +# +warn() { + echo "${PROGNAME}: $*" +} + +# +# Helper to puke. +# +die() { + warn $* + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false; +darwin=false; +case "`uname`" in + CYGWIN*) + cygwin=true + ;; + + Darwin*) + darwin=true + ;; +esac + +# For Cygwin, ensure paths are in UNIX format before anything is touched +if $cygwin ; then + [ -n "$JBOSS_HOME" ] && + JBOSS_HOME=`cygpath --unix "$JBOSS_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --unix "$JAVA_HOME"` + [ -n "$JAVAC_JAR" ] && + JAVAC_JAR=`cygpath --unix "$JAVAC_JAR"` +fi + +# Setup JBOSS_HOME +if [ "x$JBOSS_HOME" = "x" ]; then + # get the full path (without any relative bits) + JBOSS_HOME=`cd $DIRNAME/..; pwd` +fi +export JBOSS_HOME + +# Setup the JVM +if [ "x$JAVA_HOME" != "x" ]; then + JAVA="$JAVA_HOME/bin/java" +else + JAVA="java" +fi + +# Setup the classpath +programjar="$JBOSS_HOME/bin/deployer.jar" +if [ ! -f $programjar ]; then + die "Missing required file: $programjar" +fi +JBOSS_BOOT_CLASSPATH="$programjar" + +if [ "x$JBOSS_CLASSPATH" = "x" ]; then + JBOSS_CLASSPATH="$JBOSS_BOOT_CLASSPATH:$JAVAC_JAR" +else + JBOSS_CLASSPATH="$JBOSS_CLASSPATH:$JBOSS_BOOT_CLASSPATH:$JAVAC_JAR" +fi + +# Check for SUN(tm) JVM w/ HotSpot support +if [ "x$HAS_HOTSPOT" = "x" ]; then + HAS_HOTSPOT=`$JAVA -version 2>&1 | $GREP HotSpot` +fi + +# If JAVA_OPTS is not set and the JVM is HOTSPOT enabled, then the server mode +if [ "x$JAVA_OPTS" = "x" -a "x$HAS_HOTSPOT" != "x" ]; then + # MacOS does not support -server flag + if [ "$darwin" != "true" ]; then + JAVA_OPTS="-server" + fi +fi + +# Setup JBoss sepecific properties +JAVA_OPTS="$JAVA_OPTS -Dprogram.name=$PROGNAME" + +# For Cygwin, switch paths to Windows format before running java +if $cygwin; then + JBOSS_HOME=`cygpath --path --windows "$JBOSS_HOME"` + JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` + JBOSS_CLASSPATH=`cygpath --path --windows "$JBOSS_CLASSPATH"` +fi + +# Execute the JVM +exec $JAVA $JAVA_OPTS \ + -classpath "$JBOSS_CLASSPATH" \ + org.jboss.jmx.service.RemoteDeployer "$@" diff --git a/jboss/bin/jboss_init_redhat.sh b/jboss/bin/jboss_init_redhat.sh new file mode 100644 index 0000000000..27a22fef04 --- /dev/null +++ b/jboss/bin/jboss_init_redhat.sh @@ -0,0 +1,100 @@ +#!/bin/sh +# +# JBoss Control Script +# +# chkconfig: 3 80 20 +# description: JBoss EJB Container +# +# To use this script +# run it as root - it will switch to the specified user +# It loses all console output - use the log. +# +# Here is a little (and extremely primitive) +# startup/shutdown script for RedHat systems. It assumes +# that JBoss lives in /usr/local/jboss, it's run by user +# 'jboss' and JDK binaries are in /usr/local/jdk/bin. All +# this can be changed in the script itself. +# Bojan +# +# Either amend this script for your requirements +# or just ensure that the following variables are set correctly +# before calling the script + +# [ #420297 ] JBoss startup/shutdown for RedHat + +#define where jboss is - this is the directory containing directories log, bin, conf etc +JBOSS_HOME=${JBOSS_HOME:-"/usr/local/jboss"} + +#make java is on your path +JAVAPTH=${JAVAPTH:-"/usr/local/jdk/bin"} + +#define the classpath for the shutdown class +JBOSSCP=${JBOSSCP:-"$JBOSS_HOME/bin/shutdown.jar:$JBOSS_HOME/client/jnet.jar"} + +#define the script to use to start jboss +JBOSSSH=${JBOSSSH:-"$JBOSS_HOME/bin/run.sh -c all"} + +if [ -n "$JBOSS_CONSOLE" -a ! -d "$JBOSS_CONSOLE" ]; then + # ensure the file exists + touch $JBOSS_CONSOLE +fi + +if [ -n "$JBOSS_CONSOLE" -a ! -f "$JBOSS_CONSOLE" ]; then + echo "WARNING: location for saving console log invalid: $JBOSS_CONSOLE" + echo "WARNING: ignoring it and using /dev/null" + JBOSS_CONSOLE="/dev/null" +fi + +#define what will be done with the console log +JBOSS_CONSOLE=${JBOSS_CONSOLE:-"/dev/null"} + +#define the user under which jboss will run, or use RUNASIS to run as the current user +JBOSSUS=${JBOSSUS:-"jboss"} + +CMD_START="cd $JBOSS_HOME/bin; $JBOSSSH" +CMD_STOP="java -classpath $JBOSSCP org.jboss.Shutdown --shutdown" + +if [ "$JBOSSUS" = "RUNASIS" ]; then + SUBIT="" +else + SUBIT="su - $JBOSSUS -c " +fi + +if [ -z "`echo $PATH | grep $JAVAPTH`" ]; then + export PATH=$PATH:$JAVAPTH +fi + +if [ ! -d "$JBOSS_HOME" ]; then + echo JBOSS_HOME does not exist as a valid directory : $JBOSS_HOME + exit 1 +fi + + +echo CMD_START = $CMD_START + + +case "$1" in +start) + cd $JBOSS_HOME/bin + if [ -z "$SUBIT" ]; then + eval $CMD_START >${JBOSS_CONSOLE} 2>&1 & + else + $SUBIT "$CMD_START >${JBOSS_CONSOLE} 2>&1 &" + fi + ;; +stop) + if [ -z "$SUBIT" ]; then + $CMD_STOP + else + $SUBIT "$CMD_STOP" + fi + ;; +restart) + $0 stop + $0 start + ;; +*) + echo "usage: $0 (start|stop|restart|help)" +esac + + diff --git a/jboss/bin/jboss_init_suse.sh b/jboss/bin/jboss_init_suse.sh new file mode 100644 index 0000000000..3ce6978dd2 --- /dev/null +++ b/jboss/bin/jboss_init_suse.sh @@ -0,0 +1,133 @@ +#!/bin/sh +# +# JBoss Control Script +# +# To use this script +# run it as root - it will switch to the specified user +# It loses all console output - use the log. +# +# Here is a little (and extremely primitive) +# startup/shutdown script for SuSE systems. It assumes +# that JBoss lives in /usr/local/jboss, it's run by user +# 'jboss' and JDK binaries are in /usr/local/jdk/bin. All +# this can be changed in the script itself. +# +# Either amend this script for your requirements +# or just ensure that the following variables are set correctly +# before calling the script. +# +### BEGIN INIT INFO +# Provides: jboss +# Default-Start: 3 5 +# Default-Stop: 0 1 2 6 +# Description: Start the JBoss application server. +### END INIT INFO + +#define where jboss is - this is the directory containing directories log, bin, conf etc +JBOSS_HOME=${JBOSS_HOME:-"/opt/jboss"} + +#make java is on your path +JAVAPTH=${JAVAPTH:-"/usr/java/j2sdk1.4.1/bin"} + +#define the classpath for the shutdown class +JBOSSCP=${JBOSSCP:-"$JBOSS_HOME/bin/shutdown.jar:$JBOSS_HOME/client/jnet.jar"} + +#define the script to use to start jboss +JBOSSSH=${JBOSSSH:-"$JBOSS_HOME/bin/run.sh -c all"} + +# Shell functions sourced from /etc/rc.status: +# rc_check check and set local and overall rc status +# rc_status check and set local and overall rc status +# rc_status -v ditto but be verbose in local rc status +# rc_status -v -r ditto and clear the local rc status +# rc_failed set local and overall rc status to failed +# rc_reset clear local rc status (overall remains) +# rc_exit exit appropriate to overall rc status +. /etc/rc.status + +# First reset status of this service +rc_reset + +# Return values acc. to LSB for all commands but status: +# 0 - success +# 1 - misc error +# 2 - invalid or excess args +# 3 - unimplemented feature (e.g. reload) +# 4 - insufficient privilege +# 5 - program not installed +# 6 - program not configured +# +# Note that starting an already running service, stopping +# or restarting a not-running service as well as the restart +# with force-reload (in case signalling is not supported) are +# considered a success. + +if [ -n "$JBOSS_CONSOLE" -a ! -d "$JBOSS_CONSOLE" ]; then + # ensure the file exists + touch $JBOSS_CONSOLE +fi + +if [ -n "$JBOSS_CONSOLE" -a ! -f "$JBOSS_CONSOLE" ]; then + echo "WARNING: location for saving console log invalid: $JBOSS_CONSOLE" + echo "WARNING: ignoring it and using /dev/null" + JBOSS_CONSOLE="/dev/null" +fi + +#define what will be done with the console log +JBOSS_CONSOLE=${JBOSS_CONSOLE:-"/opt/jboss/log/jboss.log"} + +#define the user under which jboss will run, or use RUNASIS to run as the current user +JBOSSUS=${JBOSSUS:-"jboss"} + +CMD_START="cd $JBOSS_HOME/bin; $JBOSSSH" +CMD_STOP="java -classpath $JBOSSCP org.jboss.Shutdown --shutdown" + +if [ "$JBOSSUS" = "RUNASIS" ]; then + SUBIT="" +else + SUBIT="su - $JBOSSUS -c " +fi + +if [ -z "`echo $PATH | grep $JAVAPTH`" ]; then + export PATH=$PATH:$JAVAPTH +fi + +if [ ! -d "$JBOSS_HOME" ]; then + echo JBOSS_HOME does not exist as a valid directory : $JBOSS_HOME + exit 1 +fi + +case "$1" in +start) + echo -n "Starting JBoss application server: " + cd $JBOSS_HOME/bin + if [ -z "$SUBIT" ]; then + eval $CMD_START >${JBOSS_CONSOLE} 2>&1 & + else + $SUBIT "$CMD_START >${JBOSS_CONSOLE} 2>&1 &" + fi + + # Remember status and be verbose + rc_status -v + ;; +stop) + echo -n "Shutting down JBoss application server: " + if [ -z "$SUBIT" ]; then + $CMD_STOP + else + $SUBIT "$CMD_STOP" + fi + + # Remember status and be verbose + rc_status -v + ;; +restart) + $0 stop + $0 start + + # Remember status and be quiet + rc_status + ;; +*) + echo "usage: $0 (start|stop|restart|help)" +esac diff --git a/jboss/bin/run.bat b/jboss/bin/run.bat new file mode 100644 index 0000000000..b324c39e03 --- /dev/null +++ b/jboss/bin/run.bat @@ -0,0 +1,107 @@ +@echo off +rem ------------------------------------------------------------------------- +rem JBoss Bootstrap Script for Win32 +rem ------------------------------------------------------------------------- + +rem $Id: run.bat,v 1.7 2005/09/04 17:52:33 jjanke Exp $ + +@if not "%ECHO%" == "" echo %ECHO% +@if "%OS%" == "Windows_NT" setlocal + +set DIRNAME=.\ +if "%OS%" == "Windows_NT" set DIRNAME=%~dp0% +set PROGNAME=run.bat +if "%OS%" == "Windows_NT" set PROGNAME=%~nx0% + +rem Read all command line arguments + +REM +REM The %ARGS% env variable commented out in favor of using %* to include +REM all args in java command line. See bug #840239. [jpl] +REM +REM set ARGS= +REM :loop +REM if [%1] == [] goto endloop +REM set ARGS=%ARGS% %1 +REM shift +REM goto loop +REM :endloop + +rem Find run.jar, or we can't continue + +set RUNJAR=%DIRNAME%\run.jar +if exist "%RUNJAR%" goto FOUND_RUN_JAR +echo Could not locate %RUNJAR%. Please check that you are in the +echo bin directory when running this script. +goto END + +:FOUND_RUN_JAR + +if not "%JAVA_HOME%" == "" goto ADD_TOOLS + +set JAVA=java + +echo JAVA_HOME is not set. Unexpected results may occur. +echo Set JAVA_HOME to the directory of your local JDK to avoid this message. +goto SKIP_TOOLS + +:ADD_TOOLS + +set JAVA=%JAVA_HOME%\bin\java + +if exist "%JAVA_HOME%\lib\tools.jar" goto SKIP_TOOLS +echo Could not locate %JAVA_HOME%\lib\tools.jar. Unexpected results may occur. +echo Make sure that JAVA_HOME points to a JDK and not a JRE. + +:SKIP_TOOLS + +rem Include the JDK javac compiler for JSP pages. The default is for a Sun JDK +rem compatible distribution to which JAVA_HOME points + +set JAVAC_JAR=%JAVA_HOME%\lib\tools.jar + +rem If JBOSS_CLASSPATH is empty, don't include it, as this will +rem result in including the local directory, which makes error tracking +rem harder. +if "%JBOSS_CLASSPATH%" == "" ( + set JBOSS_CLASSPATH=%JAVAC_JAR%;%RUNJAR% +) ELSE ( + set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;%JAVAC_JAR%;%RUNJAR% +) + +rem Setup JBoss specific properties +set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME% +set JBOSS_HOME=%DIRNAME%\.. + +rem Sun JVM memory allocation pool parameters. Modify as appropriate. +set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m + +rem JPDA options. Uncomment and modify as appropriate to enable remote debugging. +rem set JAVA_OPTS=-classic -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS% + +rem Setup the java endorsed dirs +set JBOSS_ENDORSED_DIRS=%JBOSS_HOME%\lib\endorsed + +echo =============================================================================== +echo . +echo JBoss Bootstrap Environment +echo . +echo JBOSS_HOME: %JBOSS_HOME% +echo . +echo JAVA: %JAVA% +echo . +echo JAVA_OPTS: %JAVA_OPTS% +echo . +echo CLASSPATH: %JBOSS_CLASSPATH% +echo . +echo =============================================================================== +echo . + +:RESTART +"%JAVA%" %JAVA_OPTS% "-Djava.endorsed.dirs=%JBOSS_ENDORSED_DIRS%" -classpath "%JBOSS_CLASSPATH%" org.jboss.Main %* +IF ERRORLEVEL 10 GOTO RESTART + +:END +if "%NOPAUSE%" == "" pause + +:END_NO_PAUSE diff --git a/jboss/bin/run.conf b/jboss/bin/run.conf new file mode 100644 index 0000000000..d695d63f08 --- /dev/null +++ b/jboss/bin/run.conf @@ -0,0 +1,51 @@ +## -*- shell-script -*- ###################################################### +## ## +## JBoss Bootstrap Script Configuration ## +## ## +############################################################################## + +### $Id: run.conf,v 1.3 2005/09/04 17:52:33 jjanke Exp $ + +# +# This file is optional; it may be removed if not needed. +# + +# +# Specify the maximum file descriptor limit, use "max" or "maximum" to use +# the default, as queried by the system. +# +# Defaults to "maximum" +# +#MAX_FD="maximum" + +# +# Specify the profiler configuration file to load. +# +# Default is to not load profiler configuration file. +# +#PROFILER="" + +# +# Specify the location of the Java home directory. If set then $JAVA will +# be defined to $JAVA_HOME/bin/java, else $JAVA will be "java". +# +#JAVA_HOME="/opt/java/jdk" + +# +# Specify the exact Java VM executable to use. +# +#JAVA="" + +# +# Specify options to pass to the Java VM. +# +if [ "x$JAVA_OPTS" = "x" ]; then + JAVA_OPTS="-server -Xms128m -Xmx128m" +fi + +# Sample JPDA settings for remote socket debuging +#JAVA_OPTS="$JAVA_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y" + +# Sample JPDA settings for shared memory debugging +#JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,server=y,suspend=n,address=jboss" + diff --git a/jboss/bin/run.sh b/jboss/bin/run.sh new file mode 100644 index 0000000000..b12058aec9 --- /dev/null +++ b/jboss/bin/run.sh @@ -0,0 +1,182 @@ +#!/bin/sh +### ====================================================================== ### +## ## +## JBoss Bootstrap Script ## +## ## +### ====================================================================== ### + +### $Id: run.sh,v 1.6 2005/09/04 17:52:33 jjanke Exp $ ### + +DIRNAME=`dirname $0` +PROGNAME=`basename $0` +GREP="grep" + +# Use the maximum available, or set MAX_FD != -1 to use that +MAX_FD="maximum" + +# +# Helper to complain. +# +warn() { + echo "${PROGNAME}: $*" +} + +# +# Helper to puke. +# +die() { + warn $* + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false; +darwin=false; +case "`uname`" in + CYGWIN*) + cygwin=true + ;; + + Darwin*) + darwin=true + ;; +esac + +# Read an optional running configuration file +if [ "x$RUN_CONF" = "x" ]; then + RUN_CONF="$DIRNAME/run.conf" +fi +if [ -r "$RUN_CONF" ]; then + . "$RUN_CONF" +fi + +# For Cygwin, ensure paths are in UNIX format before anything is touched +if $cygwin ; then + [ -n "$JBOSS_HOME" ] && + JBOSS_HOME=`cygpath --unix "$JBOSS_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --unix "$JAVA_HOME"` + [ -n "$JAVAC_JAR" ] && + JAVAC_JAR=`cygpath --unix "$JAVAC_JAR"` +fi + +# Setup JBOSS_HOME +if [ "x$JBOSS_HOME" = "x" ]; then + # get the full path (without any relative bits) + JBOSS_HOME=`cd $DIRNAME/..; pwd` +fi +export JBOSS_HOME + +# Increase the maximum file descriptors if we can +if [ "$cygwin" = "false" ]; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ]; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ]; then + # use the system max + MAX_FD="$MAX_FD_LIMIT" + fi + + ulimit -n $MAX_FD + if [ $? -ne 0 ]; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query system maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# Setup the JVM +if [ "x$JAVA" = "x" ]; then + if [ "x$JAVA_HOME" != "x" ]; then + JAVA="$JAVA_HOME/bin/java" + else + JAVA="java" + fi +fi + +# Setup the classpath +runjar="$JBOSS_HOME/bin/run.jar" +if [ ! -f "$runjar" ]; then + die "Missing required file: $runjar" +fi +JBOSS_BOOT_CLASSPATH="$runjar" + +# Include the JDK javac compiler for JSP pages. The default is for a Sun JDK +# compatible distribution which JAVA_HOME points to +if [ "x$JAVAC_JAR" = "x" ]; then + JAVAC_JAR="$JAVA_HOME/lib/tools.jar" +fi +if [ ! -f "$JAVAC_JAR" ]; then + # MacOSX does not have a seperate tools.jar + if [ "$darwin" != "true" ]; then + warn "Missing file: $JAVAC_JAR" + warn "Unexpected results may occur. Make sure JAVA_HOME points to a JDK and not a JRE." + fi +fi + +if [ "x$JBOSS_CLASSPATH" = "x" ]; then + JBOSS_CLASSPATH="$JBOSS_BOOT_CLASSPATH:$JAVAC_JAR" +else + JBOSS_CLASSPATH="$JBOSS_CLASSPATH:$JBOSS_BOOT_CLASSPATH:$JAVAC_JAR" +fi + +# If JAVA_OPTS is not set try check for Hotspot +if [ "x$JAVA_OPTS" = "x" ]; then + + # Check for SUN(tm) JVM w/ HotSpot support + if [ "x$HAS_HOTSPOT" = "x" ]; then + HAS_HOTSPOT=`$JAVA -version 2>&1 | $GREP -i HotSpot` + fi + + # Enable -server if we have Hotspot, unless we can't + if [ "x$HAS_HOTSPOT" != "x" ]; then + # MacOS does not support -server flag + if [ "$darwin" != "true" ]; then + JAVA_OPTS="-server" + fi + fi +fi + +# Setup JBoss sepecific properties +JAVA_OPTS="$JAVA_OPTS -Dprogram.name=$PROGNAME" + +# Setup the java endorsed dirs +JBOSS_ENDORSED_DIRS="$JBOSS_HOME/lib/endorsed" + +# For Cygwin, switch paths to Windows format before running java +if $cygwin; then + JBOSS_HOME=`cygpath --path --windows "$JBOSS_HOME"` + JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` + JBOSS_CLASSPATH=`cygpath --path --windows "$JBOSS_CLASSPATH"` + JBOSS_ENDORSED_DIRS=`cygpath --path --windows "$JBOSS_ENDORSED_DIRS"` +fi + +# Display our environment +echo "=========================================================================" +echo "" +echo " JBoss Bootstrap Environment" +echo "" +echo " JBOSS_HOME: $JBOSS_HOME" +echo "" +echo " JAVA: $JAVA" +echo "" +echo " JAVA_OPTS: $JAVA_OPTS" +echo "" +echo " CLASSPATH: $JBOSS_CLASSPATH" +echo "" +echo "=========================================================================" +echo "" + +STATUS=10 +while [ $STATUS -eq 10 ] +do +# Execute the JVM + "$JAVA" $JAVA_OPTS \ + -Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" \ + -classpath "$JBOSS_CLASSPATH" \ + org.jboss.Main "$@" + STATUS=$? + # if it doesn't work, you may want to take a look at this: + # http://developer.java.sun.com/developer/bugParade/bugs/4465334.html +done + diff --git a/jboss/bin/shutdown.bat b/jboss/bin/shutdown.bat new file mode 100644 index 0000000000..65159ce856 --- /dev/null +++ b/jboss/bin/shutdown.bat @@ -0,0 +1,66 @@ +@echo off +rem ------------------------------------------------------------------------- +rem JBoss JVM Launcher +rem ------------------------------------------------------------------------- + +rem $Id: shutdown.bat,v 1.6 2005/09/04 17:52:33 jjanke Exp $ + +if not "%ECHO%" == "" echo %ECHO% +if "%OS%" == "Windows_NT" setlocal + +set MAIN_JAR_NAME=shutdown.jar +set MAIN_CLASS=org.jboss.Shutdown + +set DIRNAME=.\ +if "%OS%" == "Windows_NT" set DIRNAME=%~dp0% +set PROGNAME=run.bat +if "%OS%" == "Windows_NT" set PROGNAME=%~nx0% + +rem Read all command line arguments + +set ARGS= +:loop +if [%1] == [] goto end + set ARGS=%ARGS% %1 + shift + goto loop +:end + +rem Find MAIN_JAR, or we can't continue + +set MAIN_JAR=%DIRNAME%\%MAIN_JAR_NAME% +if exist "%MAIN_JAR%" goto FOUND_MAIN_JAR +echo Could not locate %MAIN_JAR%. Please check that you are in the +echo bin directory when running this script. +goto END + +:FOUND_MAIN_JAR + +if not "%JAVA_HOME%" == "" goto HAVE_JAVA_HOME + +set JAVA=java + +echo JAVA_HOME is not set. Unexpected results may occur. +echo Set JAVA_HOME to the directory of your local JDK to avoid this message. +goto SKIP_SET_JAVA_HOME + +:HAVE_JAVA_HOME + +set JAVA=%JAVA_HOME%\bin\java + +:SKIP_SET_JAVA_HOME + +set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;%MAIN_JAR%;%DIRNAME%/../client/jbossall-client.jar + +rem Setup JBoss sepecific properties +set JAVA_OPTS=%JAVA_OPTS% -Djboss.boot.loader.name=%PROGNAME% + +rem JPDA options. Uncomment and modify as appropriate to enable remote debugging. +rem set JAVA_OPTS=-classic -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS% + +"%JAVA%" %JAVA_OPTS% -classpath "%JBOSS_CLASSPATH%" %MAIN_CLASS% %ARGS% + +:END +if "%NOPAUSE%" == "" pause + +:END_NO_PAUSE diff --git a/jboss/bin/shutdown.sh b/jboss/bin/shutdown.sh new file mode 100644 index 0000000000..0a3f91c730 --- /dev/null +++ b/jboss/bin/shutdown.sh @@ -0,0 +1,79 @@ +#!/bin/sh +### ====================================================================== ### +## ## +## JBoss Shutdown Script ## +## ## +### ====================================================================== ### + +### $Id: shutdown.sh,v 1.6 2005/09/04 17:52:33 jjanke Exp $ ### + +DIRNAME=`dirname $0` +PROGNAME=`basename $0` +GREP="grep" + +# +# Helper to complain. +# +die() { + echo "${PROGNAME}: $*" + exit 1 +} + +# Read an optional running configuration file +if [ "x$RUN_CONF" = "x" ]; then + RUN_CONF="$DIRNAME/run.conf" +fi +if [ -r $RUN_CONF ]; then + . $RUN_CONF +fi + +# OS specific support (must be 'true' or 'false'). +cygwin=false; +case "`uname`" in + CYGWIN*) + cygwin=true + ;; +esac + +# For Cygwin, ensure paths are in UNIX format before anything is touched +if $cygwin ; then + [ -n "$JBOSS_HOME" ] && + JBOSS_HOME=`cygpath --unix "$JBOSS_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --unix "$JAVA_HOME"` +fi + +# Setup JBOSS_HOME +if [ "x$JBOSS_HOME" = "x" ]; then + JBOSS_HOME=`cd $DIRNAME/..; pwd` +fi +export JBOSS_HOME + +# Setup the JVM +if [ "x$JAVA_HOME" != "x" ]; then + JAVA=$JAVA_HOME/bin/java +else + JAVA="java" +fi + +# Setup the classpath +JBOSS_BOOT_CLASSPATH="$JBOSS_HOME/bin/shutdown.jar:$JBOSS_HOME/client/jbossall-client.jar" + +if [ "x$JBOSS_CLASSPATH" = "x" ]; then + JBOSS_CLASSPATH="$JBOSS_BOOT_CLASSPATH" +else + JBOSS_CLASSPATH="$JBOSS_CLASSPATH:$JBOSS_BOOT_CLASSPATH" +fi + +# For Cygwin, switch paths to Windows format before running java +if $cygwin; then + JBOSS_HOME=`cygpath --path --windows "$JBOSS_HOME"` + JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` + JBOSS_CLASSPATH=`cygpath --path --windows "$JBOSS_CLASSPATH"` +fi + +# Execute the JVM +exec $JAVA \ + $JAVA_OPTS \ + -classpath $JBOSS_CLASSPATH \ + org.jboss.Shutdown "$@" diff --git a/jboss/bin/twiddle.bat b/jboss/bin/twiddle.bat new file mode 100644 index 0000000000..fb4d3d19ba --- /dev/null +++ b/jboss/bin/twiddle.bat @@ -0,0 +1,72 @@ +@echo off +rem ------------------------------------------------------------------------- +rem JBoss JVM Launcher +rem ------------------------------------------------------------------------- + +rem $Id: twiddle.bat,v 1.3 2005/09/04 17:52:33 jjanke Exp $ + +if not "%ECHO%" == "" echo %ECHO% +if "%OS%" == "Windows_NT" setlocal + +set MAIN_JAR_NAME=twiddle.jar +set MAIN_CLASS=org.jboss.console.twiddle.Twiddle + +set DIRNAME=.\ +if "%OS%" == "Windows_NT" set DIRNAME=%~dp0% +set PROGNAME=run.bat +if "%OS%" == "Windows_NT" set PROGNAME=%~nx0% + +rem Read all command line arguments + +set ARGS= +:loop +if [%1] == [] goto end + set ARGS=%ARGS% %1 + shift + goto loop +:end + +rem Find MAIN_JAR, or we can't continue + +set MAIN_JAR=%DIRNAME%\%MAIN_JAR_NAME% +if exist "%MAIN_JAR%" goto FOUND_MAIN_JAR +echo Could not locate %MAIN_JAR%. Please check that you are in the +echo bin directory when running this script. +goto END + +:FOUND_MAIN_JAR + +if not "%JAVA_HOME%" == "" goto HAVE_JAVA_HOME + +set JAVA=java + +echo JAVA_HOME is not set. Unexpected results may occur. +echo Set JAVA_HOME to the directory of your local JDK to avoid this message. +goto SKIP_SET_JAVA_HOME + +:HAVE_JAVA_HOME + +set JAVA=%JAVA_HOME%\bin\java + +:SKIP_SET_JAVA_HOME + +rem only include jbossall-client.jar in classpath, if +rem JBOSS_CLASSPATH was not yet set +if not "%JBOSS_CLASSPATH%" == "" GOTO HAVE_JB_CP +set JBOSS_CLASSPATH=%DIRNAME%\..\client\jbossall-client.jar +set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;%DIRNAME%\..\client\getopt.jar +set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;%DIRNAME%\..\client\log4j.jar +set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;%DIRNAME%\..\lib\jboss-jmx.jar +set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;%DIRNAME%\..\lib\xml-apis.jar +set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;%DIRNAME%\..\lib\xercesImpl.jar +set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;%DIRNAME%\..\lib\dom4j.jar +:HAVE_JB_CP + +set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;%MAIN_JAR% + +rem Setup JBoss sepecific properties +set JAVA_OPTS=%JAVA_OPTS% -Djboss.boot.loader.name=%PROGNAME% + +%JAVA% %JAVA_OPTS% -classpath "%JBOSS_CLASSPATH%" %MAIN_CLASS% %ARGS% + +:END diff --git a/jboss/bin/twiddle.sh b/jboss/bin/twiddle.sh new file mode 100644 index 0000000000..b38fca7dd2 --- /dev/null +++ b/jboss/bin/twiddle.sh @@ -0,0 +1,79 @@ +#!/bin/sh +### ====================================================================== ### +## ## +## JBoss Shutdown Script ## +## ## +### ====================================================================== ### + +### $Id: twiddle.sh,v 1.3 2005/09/04 17:52:33 jjanke Exp $ ### + +DIRNAME=`dirname $0` +PROGNAME=`basename $0` +GREP="grep" + +# +# Helper to complain. +# +die() { + echo "${PROGNAME}: $*" + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false; +case "`uname`" in + CYGWIN*) + cygwin=true + ;; +esac + +# For Cygwin, ensure paths are in UNIX format before anything is touched +if $cygwin ; then + [ -n "$JBOSS_HOME" ] && + JBOSS_HOME=`cygpath --unix "$JBOSS_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --unix "$JAVA_HOME"` +fi + +# Setup JBOSS_HOME +if [ "x$JBOSS_HOME" = "x" ]; then + JBOSS_HOME=`cd $DIRNAME/..; pwd` +fi +export JBOSS_HOME + +# Setup the JVM +if [ "x$JAVA_HOME" != "x" ]; then + JAVA=$JAVA_HOME/bin/java +else + JAVA="java" +fi + +# Setup the classpath +JBOSS_BOOT_CLASSPATH="$JBOSS_HOME/bin/twiddle.jar" + +if [ "x$JBOSS_CLASSPATH" = "x" ]; then + JBOSS_CLASSPATH="$JBOSS_BOOT_CLASSPATH" + JBOSS_CLASSPATH="$JBOSS_CLASSPATH:$JBOSS_HOME/client/jbossall-client.jar" + JBOSS_CLASSPATH="$JBOSS_CLASSPATH:$JBOSS_HOME/client/getopt.jar" + JBOSS_CLASSPATH="$JBOSS_CLASSPATH:$JBOSS_HOME/client/log4j.jar" + JBOSS_CLASSPATH="$JBOSS_CLASSPATH:$JBOSS_HOME/lib/jboss-jmx.jar" + JBOSS_CLASSPATH="$JBOSS_CLASSPATH:$JBOSS_HOME/lib/xml-apis.jar" + JBOSS_CLASSPATH="$JBOSS_CLASSPATH:$JBOSS_HOME/lib/xercesImpl.jar" + JBOSS_CLASSPATH="$JBOSS_CLASSPATH:$JBOSS_HOME/lib/dom4j.jar" +else + JBOSS_CLASSPATH="$JBOSS_CLASSPATH:$JBOSS_BOOT_CLASSPATH" +fi + +# For Cygwin, switch paths to Windows format before running java +if $cygwin; then + JBOSS_HOME=`cygpath --path --windows "$JBOSS_HOME"` + JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` + JBOSS_CLASSPATH=`cygpath --path --windows "$JBOSS_CLASSPATH"` +fi + +# Execute the JVM +exec $JAVA \ + $JAVA_OPTS \ + -Dprogram.name="$PROGNAME" \ + -classpath $JBOSS_CLASSPATH \ + org.jboss.console.twiddle.Twiddle "$@" diff --git a/jboss/jar-versions.xml b/jboss/jar-versions.xml new file mode 100644 index 0000000000..7870130fc8 --- /dev/null +++ b/jboss/jar-versions.xml @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jboss/mod_jk.conf b/jboss/mod_jk.conf new file mode 100644 index 0000000000..dabd03ba59 --- /dev/null +++ b/jboss/mod_jk.conf @@ -0,0 +1,60 @@ +# Example Apache Link via mod_jk +# ------------------------------ +# $Id: mod_jk.conf,v 1.1 2005/09/04 18:20:16 jjanke Exp $ + +# This applies to mod_jk (not mod_jk2) +# http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/quickhowto.html +# Download http://apache.tarchive.com/jakarta/tomcat-connectors/jk/binaries/ + +# Update http.conf with something like: +# Include $ADEMPIERE_HOME/jboss/mod.jk .. or directly: + +LoadModule jk_module modules/mod_jk.so +AddModule mod_jk.c + +# Worker File Link +JkWorkersFile /etc/httpd/conf/workers.properties +#JkWorkersFile $ADEMPIERE_HOME/jboss/workers.properties + +# Log +JkLogFile /var/log/httpd/mod_jk.log +JkLogLevel info +JkLogStampFormat "[%a %b %d %H:%M:%S %Y] +# JkOptions indicate to send SSL KEY SIZE, +JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories +# JkRequestLogFormat set the request format +JkRequestLogFormat "%w %V %T" + +# General mapping - send *.jsp to mod_jk +JkMount /*.jsp ajp13 +JkMount /*/servlet/ ajp13 + +# Example host + + DocumentRoot /var/www/html + ServerName www.adempiere.com + ErrorLog /var/log/httpd/com_error_log + CustomLog /var/log/httpd/com_access_log combined + JkMount *.jsp ajp13 + JkMount /wstore/* ajp13 + JkMount /adempiere/* ajp13 + JkMount /invoker/* ajp13 + + +# Prevent External Access to RMI_HTTP tunnel + + order deny,allow + deny from all + allow from localhost 192.168.168 + +# Prevent External Access to Management Console + + order deny,allow + deny from all + allow from localhost 192.168.168 + +# Prevent Access + + AllowOverride None + deny from all + diff --git a/jboss/readme.html b/jboss/readme.html new file mode 100644 index 0000000000..c9e122dd0e --- /dev/null +++ b/jboss/readme.html @@ -0,0 +1,260 @@ + + + + + JBoss 4.0.2 Readme + + + +JBoss Inc. +

JBoss 4.0.2

+

The jboss-4.0.2 release for the J2EE™ 1.4 codebase. For information on the APIs +that make up J2EE 1.4, see J2EE v1.4 Documentation. +For a comprehensive tutorial on J2EE 1.4, see The J2EE™ 1.4 Tutorial. +A jboss-4.0.x getting started guide that is based on contents from the tutorial can be found on the JBoss web site +documentation section, 4.0 Getting Started Guide. +

+ + +

Release Notes

+ +

Highlights

+
    +
  • The default class loading model in the web container has been changed to + use the standard servlet model that isolates the wars from other deployments, + and loads classes/resources preferentially from the war. In addition the, + classes from packages that cannot be overriden due to their use in the web + container are simply ignored. An example is the commons logging packages. + Prior to 4.0.2 a removal of such packages had to be removed from the war. + The changes are detailed in JBAS-1691 +
  • + +
  • Several improvements to the JACC support to work better with thirdparty + providers has been made. +
  • + +
  • The embedded tomcat version has been upgraded to 5.5.9 +
  • + +
  • The Hibernate deployer version has been upgraded to use the hibernate + 3.0.3 release (tagged jboss_4_0_2 in the hibernate cvs tree as its not + quite 3.0.3). For info on switching back to the 2.1.x based deployer, see: + JBossHibernate. +
  • + +
  • Numerous bug fixes and feature enhancements as listed below +
  • +
+ + +

Feature Request

+
    +
  • [JBAS-1365] - Allow arbitrary creation of filters in ListenerServiceMBeanSupport
  • +
  • [JBAS-1391] - Add support for datasource failover
  • +
  • [JBAS-1401] - Tomcat 5.5.9 integration
  • +
  • [JBAS-1448] - Update the ServerInfo listThreadDump to use the jdk 5 stack traces
  • +
  • [JBAS-1449] - Update the ServerInfo memory ops to use the jdk 5 mbeans
  • +
  • [JBAS-1460] - Add an option to relax the JaasSecurityDomain certificate validation
  • +
  • [JBAS-1468] - Add support for IP address reporting inside a Login Module
  • +
  • [JBAS-1473] - Add support for customization of the login module password hash mechanism
  • +
  • [JBAS-1508] - JBoss AS needs JSF
  • +
  • [JBAS-1509] - CMT EJB should throw an exception if transaction marked rollback
  • +
  • [JBAS-1562] - Expose getEntityLockMonitor in the MBean EntityLockMonitorMBean
  • +
  • [JBAS-1604] - Add detailed logging to the jms resource adapter
  • +
  • [JBAS-1610] - Integrate jdk5 MXBeans (platform MBeans) to JBoss
  • +
  • [JBAS-1645] - The MDB should not automatically create JBossMQ destinations
  • +
  • [JBAS-1680] - Add a descriptors list attribute to the JarDeployer
  • +
  • [JBAS-1722] - Allow for a Principal instance as the Context.SECURITY_PRINCIPAL in LoginInitialContextFactory
  • +
  • [JBAS-1736] - twiddle should support username and password options
  • +
  • [JBAS-1739] - Add default users/roles properties to the UsersRolesLoginModule
  • +
  • [JBAS-1758] - A BarrierController service to allow start/stop dependecies triggered by notifications
  • +
  • [JBAS-1764] - Add MySQLConnectionValidator
  • +
+ +

Bug

+
    +
  • [JBAS-20] - Multiple ports wsdl service element
  • +
  • [JBAS-21] - Cannot find wsdl in client deployment
  • +
  • [JBAS-897] - invalid ejb-link
  • +
  • [JBAS-1021] - Virtual host problem
  • +
  • [JBAS-1065] - No redeployment possible after unsuccessful first deployment
  • +
  • [JBAS-1070] - Warning message not found when deploying WS4EE Web Service
  • +
  • [JBAS-1099] - Missing EJB verifier message
  • +
  • [JBAS-1115] - bad path to included xsd gets built in WSDLFilePublisher
  • +
  • [JBAS-1183] - Verifier warning message not found
  • +
  • [JBAS-1235] - TimedObject id persistence fails on restart
  • +
  • [JBAS-1270] - UserTransaction with non default ProviderURL
  • +
  • [JBAS-1358] - Tomcat session replication breaks if there is already an active transaction
  • +
  • [JBAS-1363] - JACC DelegatingPolicy will not work with a SecurityManager installed
  • +
  • [JBAS-1377] - bad path to included xsd gets built in WSDLFilePublisher
  • +
  • [JBAS-1378] - Need tcp configuration variation of the cluster unit tests
  • +
  • [JBAS-1480] - Web Console: Monitors: Errors in the log
  • +
  • [JBAS-1495] - Looking up a session bean on one server from within another in JBoss 3.2.7
  • +
  • [JBAS-1512] - misspelling of UserPrinicpalRequest and UserPrinicipalServletRequest
  • +
  • [JBAS-1516] - Tomcat5: StandardContext getConfigBase tries to create a directory
  • +
  • [JBAS-1517] - SAR detection broken
  • +
  • [JBAS-1544] - Wrong MBean attribute name in jboss:service=Mail (POP3SererHost )
  • +
  • [JBAS-1545] - FileURLConnection breaks if path has spaces
  • +
  • [JBAS-1551] - Classloader bug (version > 3.2.3)
  • +
  • [JBAS-1552] - JBoss use wrong version of javax.resource.ResourceException class file
  • +
  • [JBAS-1555] - HTTP Status 403 on using org.jboss.web.tomcat.security.JaccAuthorizationRealm
  • +
  • [JBAS-1560] - Clustered stateful session bean removal of expired passivated instances causes deadlock
  • +
  • [JBAS-1561] - Fix for Hibernate/JBossCache integration
  • +
  • [JBAS-1564] - Prepared Statement Cache does not take into account autocommit semantics
  • +
  • [JBAS-1574] - SerializableResultSetMetaData.getColumnCount is off by one
  • +
  • [JBAS-1576] - Hibernate TransactionSynch should rollback transaction on session.flush exception
  • +
  • [JBAS-1577] - white-space in ServiceMBean EVENT types
  • +
  • [JBAS-1578] - Duplicate Messages
  • +
  • [JBAS-1579] - Need to cleanup the serialVersionUIDs for Serializable/Externalizable classes
  • +
  • [JBAS-1580] - Problem when Submitting Massive Load into HttpSession
  • +
  • [JBAS-1581] - JDBC StateManager - CREATE_TABLES_ON_STARTUP is wrong
  • +
  • [JBAS-1582] - NullPersistenceManager, DelegateName is wrong
  • +
  • [JBAS-1583] - Primary key violation on JMS_TRANSACTIONS
  • +
  • [JBAS-1588] - Collection synchronization into cmp2
  • +
  • [JBAS-1589] - Typo in JBossMQ's TxManager
  • +
  • [JBAS-1590] - Container does not call commit or refresh for the JACC provider
  • +
  • [JBAS-1592] - JaccAuthorizationRealm always returns false on subsequent requests
  • +
  • [JBAS-1599] - EJB Pools Strict Maximum Pool Permits Leak
  • +
  • [JBAS-1600] - Stateless sesion ejbCreate CreateException are not propagated correctly
  • +
  • [JBAS-1602] - Can't use container level taglibs
  • +
  • [JBAS-1619] - LoadLibrary should be done through the deployment classloader
  • +
  • [JBAS-1622] - findSessions doesn't find all sessions in http session replication
  • +
  • [JBAS-1632] - clustering unit test failure
  • +
  • [JBAS-1633] - Random IllegalStateException when session id is recycled
  • +
  • [JBAS-1636] - Don't try to delist a track-connection-by-tx connection that is already broken and has been closed.
  • +
  • [JBAS-1639] - Integrate Critical JBWS bug fixes
  • +
  • [JBAS-1640] - JACC web application validation fails when Tomcat Connector is secure
  • +
  • [JBAS-1669] - NullPointerException in DLQHandler
  • +
  • [JBAS-1673] - ClassCastException in JmsActivation in setupQueueConnection
  • +
  • [JBAS-1674] - web-console depends on UseJBossWebLoader=true
  • +
  • [JBAS-1675] - Integrate Critical CTS bug fixes
  • +
  • [JBAS-1677] - createConsumer and temporaries
  • +
  • [JBAS-1679] - http session timeout is not implemented when distributed
  • +
  • [JBAS-1682] - LDAP support: Roles in root context (empty searchBase) not supported
  • +
  • [JBAS-1683] - The JACC subject policy context handler always returns null
  • +
  • [JBAS-1684] - JaccAuthorizationRealm incorrectly returns false when unauthenticated caller attempts to access an unprotected resource
  • +
  • [JBAS-1685] - JACC Web*Permission do not handle an empty
  • +
  • [JBAS-1686] - AbstractWebDeployer adds more unchecked permissions to the JACC policy provider than it should
  • +
  • [JBAS-1688] - Incorrect war parent class loader used when UseJBossWebLoader=false
  • +
  • [JBAS-1695] - JACC: incorrect * mapping of web.xml
  • +
  • [JBAS-1718] - JACC javax.servlet.http.HttpServletRequest PolicyContext data is null
  • +
  • [JBAS-1723] - The JACC policy should be consulted for an 'unauthenticated caller'
  • +
  • [JBAS-1737] - jmx-console fails to pass java.lang.Object values to op invocations
  • +
  • [JBAS-1738] - JndiLoginInitialContextFactory is missing from jbossall-client.jar
  • +
  • [JBAS-1741] - Deadlock can occur when acting on startup notification from jboss.system:type=Server and trying to access the web server.
  • +
  • [JBAS-1749] - JMX invoker authentication interceptor example doesn't make sense
  • +
  • [JBAS-1756] - Questionable management of the security association in StatefulSessionInstanceInterceptor
  • +
  • [JBAS-1765] - Check the SQLStatus for MySQLExceptionSorter == 8
  • +
  • [JBAS-1771] - MainDeployer.parseManifestLibraries does not log underlying exceptions
  • +
+ +

Task

+
    +
  • [JBAS-58] - Complete testing of JMS Message Inflow
  • +
  • [JBAS-1271] - Scout/jUDDI based JAXR Implementation
  • +
  • [JBAS-1359] - Remove the castor dependency for the snmp adapter, use jbossxb
  • +
  • [JBAS-1446] - org.jboss.resource.deployment.RARDeployment needs TRACE logging
  • +
  • [JBAS-1478] - Move axis-ws4ee to package org.jboss.org.apache.axis
  • +
  • [JBAS-1559] - Check all serverSocket accept threads
  • +
  • [JBAS-1597] - Update docs for the 4.0.2 release
  • +
  • [JBAS-1609] - Backport latest JBossCache (1.2.2)
  • +
  • [JBAS-1617] - Merge fixes for JacORB bugs #562 and #568 into the JacORB lib shipped w/ JBoss
  • +
  • [JBAS-1618] - Update 4.0.2 to use the latest hsql release
  • +
  • [JBAS-1631] - Cleanup System.out from console servlets and mbeans
  • +
  • [JBAS-1637] - Add the j2ee dtd/schema redistribution terms to the release
  • +
  • [JBAS-1644] - Cleanup the license headers in the source code
  • +
  • [JBAS-1691] - Switch to UseJBossWebLoader=false as the default web container configuration
  • +
  • [JBAS-1696] - OIL and RMI ILs are still present in the distribution
  • +
  • [JBAS-1730] - Cleanup the commons jar usage
  • +
  • [JBAS-1757] - Cleanup the error reporting output about faulty deployments
  • +
+ +

Patch

+
    +
  • [JBAS-64] - javax.naming.StateFactory/ObjectFactory support
  • +
  • [JBAS-1506] - CDROutputStream.create_input_stream is wrong when there are deferred writes
  • +
  • [JBAS-1556] - SingletonStatelessSessionInstancePool doesn't work properly now
  • +
+ +

Configuration Issues

+

Note that as of the 4.0.1 release, the distributed configurations have +switched back to the 3.2.x types of distribution configurations:

+
    +
  • minimal: a minimal microkernel with logging, JNDI and hot deployment + support
  • +
  • default: a base level J2EE 1.4 application server configuration
  • +
  • all: a full J2EE 1.4 server configuration with clustering and all + optional services
  • +
+ +

The standard configuration from the 4.0.0-4.0.1RC1 releases has been dropped +and the default flat class loading model from 3.0.x-3.2.x has been restored for +the default configuration. This change in behavior was done to restore +consistency with the 3.2.x class loading model. The 4.0.0 scoped class loading +behavior and call by value JNDI lookup behavior can be restored by: +

+
    +
  1. Editing conf/jboss-service.xml and setting the NamingService CallByValue to true: +
    +   <mbean code="org.jboss.naming.NamingService"
    +      name="jboss:service=Naming">
    +      <!-- The call by value mode. true if all lookups are unmarshalled using
    +      the caller's TCL, false if in VM lookups return the value by reference.
    +      -->
    +      <attribute name="CallByValue">true</attribute>
    +      <!-- The listening port for the bootstrap JNP service. Set this to -1
    +        to run the NamingService without the JNP invoker listening port.
    +      -->
    +      ...
    +   </mbean>
    +
    +
  2. + +
  3. Editing the deploy/ear-deployer.xml and setting the Isolated and CallByValue attribute to true: +
    +<server>
    +   <!-- EAR deployer, remove if you are not using ear deployments -->
    +   <mbean code="org.jboss.deployment.EARDeployer"
    +      name="jboss.j2ee:service=EARDeployer">
    +      <!-- A flag indicating if ear deployments should have their own scoped
    +      class loader to isolate their classes from other deployments.
    +      -->
    +      <attribute name="Isolated">true</attribute>
    +      <!-- A flag indicating if the ear components should have in VM call
    +      optimization disabled.
    +      -->
    +      <attribute name="CallByValue">true</attribute>
    +   </mbean>
    +</server>
    +
    +
+ +

Documentation and Help

+Documentation and help may be obtained from the JBoss site. + + +

Licenses

+

JBoss is licensed under the LGPL. The licence texts for JBoss and the thirdparty components +it uses may be found in the docs/licenses directory of the distribution. +Browse Licences +

+ +

About JBoss Inc.

+

JBoss Inc. is in the business of providing superior technical support +to our customers. Our goal is to make Professional Open Source™ the SAFE +CHOICE +for you. We accomplish this by backing up our open source Java products +with technical support services that are delivered by the core +developers themselves. We can help you to train your staff and provide +you with support at every stage of the application lifecycle - from +development and integration through deployment and maintenance. Visit +the JBoss Services +page for more information. +

+ + + diff --git a/jboss/readme.txt b/jboss/readme.txt new file mode 100644 index 0000000000..bae298b15a --- /dev/null +++ b/jboss/readme.txt @@ -0,0 +1,51 @@ +$Id: readme.txt,v 1.1 2006/04/21 17:58:42 jjanke Exp $ + +----------------- +Base: JBoss 3.2.3 +----------------- + +jboss-service.xml +================= +1099 -> @ADEMPIERE_JNP_PORT@ = JNDI JNP invoker listening port +1098 = RmiPort +- +8083 = WebService Class Loading +- +4444 = JMX RMI/JRMP invoker +4445 = Pooled invoker + + +login-config.xml +================ +- no changes + +http-invoker.sar/META-INF/jboss-service.xml +=========================================== +8080 -> @ADEMPIERE_WEB_PORT@ = HTTP Invoker + +jbossweb-tomcat41.sar/META-INF/jboss-service.xml +================================================ +8080 -> @ADEMPIERE_WEB_PORT@ = HTTP/1.1 CoyoteConnector +8443 -> @ADEMPIERE_SSL_PORT@ = SSL HTTP/1.1 CoyoteConnector +-> @ADEMPIERE_KEYSTORE@ = keystoreFile +-> @ADEMPIERE_KEYSTOREPASS@ = keystorePass +-- +8009 = AJP 1.3 +8443 = AJP 1.3 redirect port + + +Server Libraries used: +---------------------- +jboss-jmx.jar +jboss-system.jar + + +Client Librarties used: +----------------------- +jboss-client.jar +jboss-common-client.jar +jboss-j2ee.jar +jboss.client.jar +jboss-transactions-client.jar +jmx-rmi-connector-client.jar +jnp-client.jar diff --git a/jboss/readme_j2ee.html b/jboss/readme_j2ee.html new file mode 100644 index 0000000000..7ce6edb3c8 --- /dev/null +++ b/jboss/readme_j2ee.html @@ -0,0 +1,71 @@ + + + + JBoss J2EE Certification Readme + + + + +To help assure the compatibility of J2EE implementations, Sun +Microsystems has developed a Technology Compatibility Kit (TCK). In +addition, Sun offers a branding license to J2EE implementations that +wish to claim compatibility to the J2EE standards. In November, 2003 +Sun released J2EE 1.4, and with that release for the first time allowed +open source implementations to license the TCK on a stand alone basis. +At that time, JBoss, Inc. became a TCK licensee and committed to pass +the test.
+
+The TCK is an extensive set of over 23,000 tests. The testing takes a +very large commitment due to the size, lack of automation, and errors +in a testing package of this size. JBoss enlisted the assistance of our +J2EE Certification Founding Partners Atos Origin, Borland, Hewlett +Packard, Iona, Intel, Sonic, Unisys, and webMethods. JBoss began work +on this effort in January, 2004 and completed the full testing on JBoss +4.0 by the end of June, 2004, which is a very aggressive timeline. Much +of the time went into setting up and configuring the tests and +understanding the nuances of the tests. Not surprisingly, there were +only relatively minor changes made to the JBoss code base JBoss has +been used by many customers as a defacto reference implementation for +several years. The primary areas where new functionality was needed +were in CSIV2 security for IIOP, a JAXR implementation, and the +addition of a new web services implementation.
+
+JBoss, Inc. and our J2EE Certification Founding Partners are pleased +that we have passed this significant milestone becoming the first Open +Source implementation in the market to pass the J2EE 1.4 TCK. This +brings our customers and partners and development community the +assurance that Professional Open Source is a safe choice for deployment +of your applications.
+
+NOTICE FROM SUN MICROSYSTEMS: +Any redistributed derivative work of the software licensed hereunder +must be compatible and branded with the appropriate compatibility logo +specified by Sun and licensed by Sun pursuant to a separate Trademark +License required to be executed by you with Sun. Redistribution of the +software licensed hereunder must retain this notice.
+
+NOTICE FROM JBOSS, INC. +The notice from Sun Microsystems does not in any way affect the LGPL +license or impose additional conditions on the LGPL license.
+
+ADDITIONAL NOTICE FROM SUN MICROSYSTEMS: This version of the JBoss +Application Server source code is made available in support of the open +source development process. Some numbered or tagged revisions of this +source have been tested and found to pass the Java™ 2 Platform, +Enterprise Edition (J2EE™) Compatibility Test Suite, and you can find +information on which revisions or tags at www.jboss.com. Please note that since +only binaries can be tested, source code cannot be described as a +compatible implementation of the J2EE Specification. The different +build environment on your machine and any changes you may make to this +code could render your resulting build incompatible. Because of this, +writing or deploying applications to builds based on this code can lead +to lack of portability. You should instead consider deploying +production applications on the pre-built binaries of the JBoss +Application Server that are available at www.jboss.com +that have been tested and certified to meet the J2EE compatibility +requirements. + + diff --git a/jboss/server/adempiere/conf/jboss-serviceTemplate.xml b/jboss/server/adempiere/conf/jboss-serviceTemplate.xml new file mode 100644 index 0000000000..b8e5ede831 --- /dev/null +++ b/jboss/server/adempiere/conf/jboss-serviceTemplate.xml @@ -0,0 +1,454 @@ + + + + + + + + + + + + + + + + + + jboss.system:service=MainDeployer + jboss.system:service=ServiceDeployer + jboss.j2ee:service=EARDeployer + jboss.ejb:service=EJBDeployer + jboss.jca:service=RARDeployer + jboss.jca:service=ConnectionFactoryDeployer + jboss.web:service=WebServer + jboss:service=Naming + jboss:service=ClientUserTransaction + jboss:service=CorbaORB + + + + + + + + + + + + + + JBoss System Threads + System Threads + + 60000 + + 10 + + 1000 + + run + + + + + + + + + + resource:log4j.xml + + true + + 60 + + + + + + + java.rmi.server.RMIClassLoaderSpi + org.jboss.system.JBossRMIClassLoader + + + + + + + + + + + + + + + + + + 8083 + + true + ${jboss.bind.address} + ${jboss.bind.address} + + + + + + + + + false + + @ADEMPIERE_JNP_PORT@ + + ${jboss.bind.address} + + 1098 + + ${jboss.bind.address} + + jboss.system:service=ThreadPool + + + + + + + + + + + jboss.security:service=XMLLoginConfig + + + login-config.xml + + + + + org.jboss.security.plugins.JaasSecurityManager + anonymous + + 1800 + + 60 + + + + + + + + + + + + + 300 + + true + jboss:service=XidFactory + + + + + + jboss:service=invoker,type=jrmp + jboss:service=ClientUserTransaction + UserTransactionSessionFactory + org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory + + + org.jboss.proxy.ClientMethodInterceptor + org.jboss.invocation.InvokerInterceptor + + + jboss:service=invoker,type=jrmp + + + + + jboss:service=invoker,type=jrmp + jboss:service=ClientUserTransaction + + org.jboss.tm.usertx.interfaces.UserTransactionSession + + + org.jboss.proxy.ClientMethodInterceptor + org.jboss.invocation.InvokerInterceptor + + + jboss:service=invoker,type=jrmp + + + + + + + + + + + 4444 + ${jboss.bind.address} + + jboss:service=TransactionManager + + + + + jboss:service=TransactionManager + + + + 1 + 300 + 300 + 60000 + ${jboss.bind.address} + 4445 + ${jboss.bind.address} + 0 + false + + jboss:service=TransactionManager + + + + + + + + + + + + + + + + + + + + + + + + + jboss.system:service=MainDeployer + + + org.jboss.deployment.DeploymentSorter + + + + + + #,%,\,,.,_$ + + #,$,%,~,\,v,.BAK,.bak,.old,.orig,.tmp,.rej,.sh + + .make.state,.nse_depinfo,CVS,CVS.admin,RCS,RCSLOG,SCCS,TAGS,core,tags + + + + 5000 + + true + + + + deploy/ + + + + + True + + + + diff --git a/jboss/server/adempiere/conf/jndi.properties b/jboss/server/adempiere/conf/jndi.properties new file mode 100644 index 0000000000..e48f6333c5 --- /dev/null +++ b/jboss/server/adempiere/conf/jndi.properties @@ -0,0 +1,4 @@ +# DO NOT EDIT THIS FILE UNLESS YOU KNOW WHAT YOU ARE DOING +# +java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory +java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces diff --git a/jboss/server/adempiere/conf/log4j.xml b/jboss/server/adempiere/conf/log4j.xml new file mode 100644 index 0000000000..125917a440 --- /dev/null +++ b/jboss/server/adempiere/conf/log4j.xml @@ -0,0 +1,273 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jboss/server/adempiere/conf/login-configTemplate.xml b/jboss/server/adempiere/conf/login-configTemplate.xml new file mode 100644 index 0000000000..d0e2535100 --- /dev/null +++ b/jboss/server/adempiere/conf/login-configTemplate.xml @@ -0,0 +1,154 @@ + + + + + + + + + + + + + + + + + + + guest + java:/DefaultDS + SELECT PASSWD FROM JMS_USERS WHERE USERID=? + SELECT ROLEID, 'Roles' FROM JMS_ROLES WHERE USERID=? + + + + + + + + + + + sa + sa + + jboss.jca:service=LocalTxCM,name=DefaultDS + + + + + + + + guest + guest + guest + jboss.jca:service=TxCM,name=JmsXA + + + + + + + + + props/jmx-console-users.properties + props/jmx-console-roles.properties + + + + + + + + + web-console-users.properties + web-console-roles.properties + + + + + + + + + anonymous + + + + + + + + + + + + + + diff --git a/jboss/server/adempiere/conf/props/jmx-console-roles.properties b/jboss/server/adempiere/conf/props/jmx-console-roles.properties new file mode 100644 index 0000000000..bf4c71ba06 --- /dev/null +++ b/jboss/server/adempiere/conf/props/jmx-console-roles.properties @@ -0,0 +1,2 @@ +# A sample roles.properties file for use with the UsersRolesLoginModule +admin=JBossAdmin,HttpInvoker diff --git a/jboss/server/adempiere/conf/props/jmx-console-users.properties b/jboss/server/adempiere/conf/props/jmx-console-users.properties new file mode 100644 index 0000000000..a992feab3b --- /dev/null +++ b/jboss/server/adempiere/conf/props/jmx-console-users.properties @@ -0,0 +1,2 @@ +# A sample users.properties file for use with the UsersRolesLoginModule +admin=admin diff --git a/jboss/server/adempiere/conf/server.policy b/jboss/server/adempiere/conf/server.policy new file mode 100644 index 0000000000..9803a30694 --- /dev/null +++ b/jboss/server/adempiere/conf/server.policy @@ -0,0 +1,12 @@ +/// ====================================================================== /// +// // +// JBoss Security Policy // +// // +/// ====================================================================== /// + +// $Id: server.policy,v 1.8 2005/09/04 17:52:10 jjanke Exp $ + +grant { + // Allow everything for now + permission java.security.AllPermission; +}; diff --git a/jboss/server/adempiere/conf/standardjaws.xml b/jboss/server/adempiere/conf/standardjaws.xml new file mode 100644 index 0000000000..b509bbdf4a --- /dev/null +++ b/jboss/server/adempiere/conf/standardjaws.xml @@ -0,0 +1,1267 @@ + + + + + + + + + + + + + + java:/DefaultDS + Hypersonic SQL + false + + + true + false + true + false + 300 + false + false + + + + + InterBase + + java.lang.Boolean + BIT + SMALLINT + + + java.lang.Byte + TINYINT + SMALLINT + + + java.lang.Short + SMALLINT + SMALLINT + + + java.lang.Integer + INTEGER + INTEGER + + + java.lang.Long + BIGINT + NUMERIC(18,0) + + + java.lang.Float + REAL + FLOAT + + + java.lang.Double + DOUBLE + DOUBLE PRECISION + + + java.lang.Character + CHAR + CHAR + + + java.lang.String + VARCHAR + VARCHAR(64) + + + java.sql.Date + DATE + DATE + + + java.sql.Time + TIME + TIME + + + java.sql.Timestamp + TIMESTAMP + TIMESTAMP + + + java.lang.Object + JAVA_OBJECT + VARCHAR(2000) + + + + + DB2 + + java.lang.Boolean + BIT + SMALLINT + + + + java.lang.Short + SMALLINT + SMALLINT + + + java.lang.Integer + INTEGER + INTEGER + + + java.lang.Long + BIGINT + BIGINT + + + java.lang.Float + REAL + REAL + + + java.lang.Double + DOUBLE + DOUBLE + + + java.lang.Character + CHAR + CHAR + + + java.lang.String + VARCHAR + VARCHAR(254) + + + java.sql.Date + DATE + DATE + + + java.sql.Time + TIME + TIME + + + java.sql.Timestamp + TIMESTAMP + TIMESTAMP + + + java.lang.Object + JAVA_OBJECT + BLOB(2000) + + + + + Oracle8 + + java.lang.Boolean + BIT + NUMBER(1) + + + java.lang.Byte + NUMERIC + NUMBER(3) + + + java.lang.Short + NUMERIC + NUMBER(5) + + + java.lang.Integer + INTEGER + NUMBER(10) + + + java.lang.Long + BIGINT + NUMBER(19) + + + java.lang.Float + REAL + NUMBER(38,7) + + + java.math.BigDecimal + DECIMAL + NUMBER(38,15) + + + java.lang.Double + DOUBLE + NUMBER(38,15) + + + java.lang.Character + CHAR + CHAR + + + java.lang.String + VARCHAR + VARCHAR2(255) + + + java.sql.Date + DATE + DATE + + + java.sql.Time + TIME + DATE + + + java.sql.Timestamp + TIMESTAMP + DATE + + + java.lang.Object + BLOB + BLOB + + + + + + Oracle7 + + java.lang.Boolean + BIT + NUMBER(1) + + + java.lang.Byte + NUMERIC + NUMBER(3) + + + java.lang.Short + NUMERIC + NUMBER(5) + + + java.lang.Integer + INTEGER + NUMBER(10) + + + java.lang.Long + BIGINT + NUMBER(19) + + + java.lang.Float + REAL + NUMBER(38,7) + + + java.lang.Double + DOUBLE + NUMBER(38,15) + + + java.lang.Character + CHAR + CHAR + + + java.lang.String + VARCHAR + VARCHAR2(255) + + + java.sql.Date + DATE + DATE + + + java.sql.Time + TIME + DATE + + + java.sql.Timestamp + TIMESTAMP + DATE + + + java.lang.Object + JAVA_OBJECT + LONG RAW + + + + + + Sybase + + java.lang.Boolean + BIT + BIT + + + + java.lang.Integer + INTEGER + INTEGER + + + java.lang.Long + NUMERIC + NUMERIC(38,0) + + + java.lang.Float + REAL + REAL + + + java.lang.Double + DOUBLE + DOUBLE PRECISION + + + java.lang.Character + CHAR + CHAR + + + java.lang.String + VARCHAR + VARCHAR(255) + + + java.sql.Date + DATE + DATETIME + + + java.sql.Time + TIME + SMALLDATETIME + + + java.sql.Timestamp + TIMESTAMP + DATETIME + + + java.lang.Object + JAVA_OBJECT + IMAGE + + + + + PostgreSQL + + java.lang.Boolean + CHAR + BOOLEAN + + + java.lang.Byte + TINYINT + INT2 + + + java.lang.Short + SMALLINT + INT2 + + + java.lang.Integer + INTEGER + INT4 + + + java.lang.Long + BIGINT + INT8 + + + java.lang.Float + FLOAT + FLOAT(7) + + + java.lang.Double + DOUBLE + FLOAT8 + + + java.lang.Character + CHAR + CHAR(1) + + + java.lang.String + VARCHAR + TEXT + + + java.sql.Date + DATE + DATE + + + java.sql.Time + TIME + TIME + + + java.sql.Timestamp + TIMESTAMP + TIMESTAMP + + + java.lang.Object + JAVA_OBJECT + OID + + + + + PostgreSQL 7.2 + + java.lang.Boolean + CHAR + BOOLEAN + + + java.lang.Byte + TINYINT + INT2 + + + java.lang.Short + SMALLINT + INT2 + + + java.lang.Integer + INTEGER + INT4 + + + java.lang.Long + BIGINT + INT8 + + + java.lang.Float + FLOAT + FLOAT(7) + + + java.lang.Double + DOUBLE + FLOAT8 + + + java.lang.Character + CHAR + CHAR(1) + + + java.lang.String + VARCHAR + TEXT + + + java.sql.Date + DATE + DATE + + + java.sql.Time + TIME + TIME + + + java.sql.Timestamp + TIMESTAMP + TIMESTAMP + + + java.lang.Object + JAVA_OBJECT + BYTEA + + + + + Hypersonic SQL + + java.lang.Byte + SMALLINT + SMALLINT + + + java.util.Date + DATE + DATE + + + java.lang.Boolean + BIT + BIT + + + java.lang.Integer + INTEGER + INTEGER + + + java.lang.Object + JAVA_OBJECT + OBJECT + + + java.lang.Short + SMALLINT + SMALLINT + + + java.lang.Character + CHAR + CHAR + + + java.lang.String + VARCHAR + VARCHAR(256) + + + java.sql.Timestamp + TIMESTAMP + TIMESTAMP + + + java.lang.Float + REAL + REAL + + + java.lang.Long + BIGINT + BIGINT + + + java.lang.Double + DOUBLE + DOUBLE + + + + + PointBase + + java.lang.Character + CHAR + CHAR + + + java.lang.Short + SMALLINT + SMALLINT + + + java.lang.Long + BIGINT + INTEGER + + + java.lang.Double + DOUBLE + FLOAT + + + java.lang.Float + FLOAT + FLOAT + + + java.lang.Boolean + BINARY + BOOLEAN + + + java.lang.String + VARCHAR + VARCHAR(256) + + + java.lang.Byte + SMALLINT + SMALLINT + + + java.lang.Object + BLOB + BLOB + + + java.lang.Integer + INTEGER + INTEGER + + + + + SOLID + + java.lang.Character + CHAR + CHAR + + + java.lang.Byte + TINYINT + TINYINT + + + java.lang.Short + INTEGER + INTEGER + + + java.lang.Double + DOUBLE + DOUBLE + + + java.lang.Object + BLOB + BLOB + + + java.lang.String + VARCHAR + VARCHAR(256) + + + java.lang.Integer + INTEGER + INTEGER + + + java.sql.Timestamp + TIMESTAMP + TIMESTAMP + + + java.lang.Boolean + BIT + BIT + + + java.lang.Float + FLOAT + FLOAT + + + java.lang.Long + BIGINT + BIGINT + + + java.util.Date + DATE + DATE + + + + + mySQL + + java.lang.Float + FLOAT + FLOAT + + + java.lang.Double + DOUBLE + DOUBLE + + + java.lang.Boolean + TINYINT + TINYINT + + + java.lang.Object + JAVA_OBJECT + BLOB + + + java.lang.Integer + INTEGER + INTEGER + + + java.lang.Short + SMALLINT + SMALLINT + + + java.sql.Timestamp + TIMESTAMP + TIMESTAMP + + + java.lang.Byte + TINYINT + TINYINT + + + java.lang.Character + CHAR + CHAR + + + java.lang.Long + BIGINT + BIGINT + + + java.lang.String + VARCHAR + VARCHAR(255) BINARY + + + java.util.Date + DATE + DATETIME + + + java.sql.Date + DATE + DATETIME + + + java.sql.Time + TIME + BIGINT + + + + + MS SQLSERVER + + java.lang.Integer + INTEGER + INTEGER + + + java.lang.Character + CHAR + CHAR + + + java.lang.Short + SMALLINT + SMALLINT + + + java.lang.Double + DOUBLE + DOUBLE + + + java.lang.Long + DECIMAL + DECIMAL(20) + + + java.math.BigDecimal + VARCHAR + VARCHAR(256) + + + java.lang.String + VARCHAR + VARCHAR(256) + + + java.lang.Object + JAVA_OBJECT + IMAGE + + + java.lang.Byte + TINYINT + TINYINT + + + java.sql.Timestamp + TIMESTAMP + TIMESTAMP + + + java.sql.Date + DATE + DATETIME + + + java.sql.Time + TIME + DATETIME + + + java.util.Date + DATE + DATETIME + + + java.lang.Boolean + BIT + BIT + + + java.lang.Float + FLOAT + FLOAT + + + + + MS SQLSERVER2000 + + + java.lang.Integer + INTEGER + INTEGER + + + + java.lang.Character + CHAR + CHAR + + + + java.lang.Short + SMALLINT + SMALLINT + + + + java.lang.Long + BIGINT + BIGINT + + + + java.math.BigDecimal + VARCHAR + VARCHAR(256) + + + + java.lang.String + VARCHAR + VARCHAR(256) + + + + java.lang.Object + JAVA_OBJECT + IMAGE + + + + java.lang.Byte + TINYINT + TINYINT + + + + java.sql.Timestamp + TIMESTAMP + TIMESTAMP + + + + java.sql.Date + DATE + DATETIME + + + + java.sql.Time + TIME + DATETIME + + + + java.util.Date + DATE + DATETIME + + + + java.lang.Boolean + BIT + BIT + + + + java.lang.Float + REAL + REAL + + + + java.lang.Double + DOUBLE + FLOAT + + + + + DB2/400 + + java.lang.Character + CHAR + CHAR(1) + + + java.lang.String + VARCHAR + VARCHAR(256) + + + + java.util.Date + DATE + DATE + + + java.sql.Time + TIME + TIME + + + java.lang.Float + FLOAT + FLOAT + + + java.lang.Integer + INTEGER + INTEGER + + + java.lang.Double + DOUBLE + DOUBLE + + + java.lang.Long + BIGINT + INTEGER + + + java.lang.Boolean + CHAR + CHAR(5) + + + java.lang.Short + SMALLINT + SMALLINT + + + java.lang.Object + JAVA_OBJECT + VARCHAR(4096) FOR BIT DATA + + + java.sql.Timestamp + TIMESTAMP + TIMESTAMP + + + + + SapDB + + java.lang.Integer + INTEGER + INTEGER + + + java.lang.Character + CHAR + CHAR + + + java.lang.String + VARCHAR + VARCHAR(256) + + + java.lang.Object + JAVA_OBJECT + LONG BYTE + + + java.lang.Byte + TINYINT + CHAR BYTE + + + java.sql.Timestamp + TIMESTAMP + TIMESTAMP + + + java.util.Date + DATE + DATE + + + java.sql.Time + TIME + TIME + + + java.lang.Boolean + BIT + BOOLEAN + + + java.lang.Float + FLOAT + FLOAT + + + java.lang.Short + SMALLINT + SMALLINT + + + java.lang.Double + DOUBLE + DOUBLE PRECISION + + + java.lang.Long + DECIMAL + DECIMAL(20) + + + + + Cloudscape + + java.math.BigDecimal + LONGVARCHAR + LONG VARCHAR + + + java.lang.Boolean + BIT + BOOLEAN + + + java.lang.Byte + TINYINT + TINYINT + + + java.lang.Short + SMALLINT + SMALLINT + + + java.lang.Integer + INTEGER + INTEGER + + + java.lang.Long + BIGINT + LONGINT + + + java.lang.Float + REAL + REAL + + + java.lang.Double + DOUBLE + DOUBLE PRECISION + + + java.lang.Character + CHAR + CHAR + + + java.lang.String + LONGVARCHAR + LONG VARCHAR + + + java.sql.Date + DATE + DATE + + + java.sql.Time + TIME + TIME + + + java.sql.Timestamp + TIMESTAMP + TIMESTAMP + + + java.lang.Object + JAVA_OBJECT + LONG VARBINARY + + + + + + InformixDB + + java.lang.Character + CHAR + CHAR(1) + + + + java.lang.String + VARCHAR + VARCHAR(255,0) + + + + java.math.BigDecimal + NUMERIC + DECIMAL + + + + java.lang.Boolean + BIT + SMALLINT + + + + java.lang.Integer + INTEGER + INTEGER + + + + java.lang.Long + BIGINT + NUMERIC(18,0) + + + + java.lang.Float + REAL + FLOAT + + + + java.lang.Double + DOUBLE + DOUBLE PRECISION + + + + java.lang.Byte + TINYINT + SMALLINT + + + + java.lang.Short + SMALLINT + SMALLINT + + + + java.util.Date + DATE + DATE + + + + java.sql.Date + DATE + DATE + + + + java.sql.Time + TIME + TIME + + + + java.sql.Timestamp + TIMESTAMP + DATETIME YEAR TO FRACTION(3) + + + + java.lang.Object + JAVA_OBJECT + BYTE + + + + + diff --git a/jboss/server/adempiere/conf/standardjboss.xml b/jboss/server/adempiere/conf/standardjboss.xml new file mode 100644 index 0000000000..18e84de66f --- /dev/null +++ b/jboss/server/adempiere/conf/standardjboss.xml @@ -0,0 +1,1038 @@ + + + + + + + + + + + false + + + + + entity-rmi-invoker + jboss:service=invoker,type=jrmp + org.jboss.proxy.ejb.ProxyFactory + + + + org.jboss.proxy.ejb.HomeInterceptor + org.jboss.proxy.SecurityInterceptor + org.jboss.proxy.TransactionInterceptor + org.jboss.invocation.InvokerInterceptor + org.jboss.invocation.MarshallingInvokerInterceptor + + + org.jboss.proxy.ejb.EntityInterceptor + org.jboss.proxy.SecurityInterceptor + org.jboss.proxy.TransactionInterceptor + org.jboss.invocation.InvokerInterceptor + org.jboss.invocation.MarshallingInvokerInterceptor + + + org.jboss.proxy.ejb.ListEntityInterceptor + org.jboss.proxy.SecurityInterceptor + org.jboss.proxy.TransactionInterceptor + org.jboss.invocation.InvokerInterceptor + org.jboss.invocation.MarshallingInvokerInterceptor + + + + + + + clustered-entity-rmi-invoker + jboss:service=invoker,type=jrmpha + org.jboss.proxy.ejb.ProxyFactoryHA + + + + org.jboss.proxy.ejb.HomeInterceptor + org.jboss.proxy.SecurityInterceptor + org.jboss.proxy.TransactionInterceptor + org.jboss.invocation.InvokerInterceptor + org.jboss.invocation.MarshallingInvokerInterceptor + + + org.jboss.proxy.ejb.EntityInterceptor + org.jboss.proxy.SecurityInterceptor + org.jboss.proxy.TransactionInterceptor + org.jboss.invocation.InvokerInterceptor + org.jboss.invocation.MarshallingInvokerInterceptor + + + org.jboss.proxy.ejb.ListEntityInterceptor + org.jboss.proxy.SecurityInterceptor + org.jboss.proxy.TransactionInterceptor + org.jboss.invocation.InvokerInterceptor + org.jboss.invocation.MarshallingInvokerInterceptor + + + + + + + stateless-rmi-invoker + jboss:service=invoker,type=jrmp + org.jboss.proxy.ejb.ProxyFactory + + + + org.jboss.proxy.ejb.HomeInterceptor + org.jboss.proxy.SecurityInterceptor + org.jboss.proxy.TransactionInterceptor + org.jboss.invocation.InvokerInterceptor + org.jboss.invocation.MarshallingInvokerInterceptor + + + org.jboss.proxy.ejb.StatelessSessionInterceptor + org.jboss.proxy.SecurityInterceptor + org.jboss.proxy.TransactionInterceptor + org.jboss.invocation.InvokerInterceptor + org.jboss.invocation.MarshallingInvokerInterceptor + + + + + + + clustered-stateless-rmi-invoker + jboss:service=invoker,type=jrmpha + org.jboss.proxy.ejb.ProxyFactoryHA + + + + org.jboss.proxy.ejb.HomeInterceptor + org.jboss.proxy.SecurityInterceptor + org.jboss.proxy.TransactionInterceptor + org.jboss.invocation.InvokerInterceptor + org.jboss.invocation.MarshallingInvokerInterceptor + + + org.jboss.proxy.ejb.StatelessSessionInterceptor + org.jboss.proxy.SecurityInterceptor + org.jboss.proxy.TransactionInterceptor + org.jboss.invocation.InvokerInterceptor + org.jboss.invocation.MarshallingInvokerInterceptor + + + + + + + stateful-rmi-invoker + jboss:service=invoker,type=jrmp + org.jboss.proxy.ejb.ProxyFactory + + + + org.jboss.proxy.ejb.HomeInterceptor + org.jboss.proxy.SecurityInterceptor + org.jboss.proxy.TransactionInterceptor + org.jboss.invocation.InvokerInterceptor + org.jboss.invocation.MarshallingInvokerInterceptor + + + org.jboss.proxy.ejb.StatefulSessionInterceptor + org.jboss.proxy.SecurityInterceptor + org.jboss.proxy.TransactionInterceptor + org.jboss.invocation.InvokerInterceptor + org.jboss.invocation.MarshallingInvokerInterceptor + + + + + + + clustered-stateful-rmi-invoker + jboss:service=invoker,type=jrmpha + org.jboss.proxy.ejb.ProxyFactoryHA + + + + org.jboss.proxy.ejb.HomeInterceptor + org.jboss.proxy.SecurityInterceptor + org.jboss.proxy.TransactionInterceptor + org.jboss.invocation.InvokerInterceptor + org.jboss.invocation.MarshallingInvokerInterceptor + + + org.jboss.proxy.ejb.StatefulSessionInterceptor + org.jboss.proxy.SecurityInterceptor + org.jboss.proxy.TransactionInterceptor + org.jboss.invocation.InvokerInterceptor + org.jboss.invocation.MarshallingInvokerInterceptor + + + + + + + message-driven-bean + default + org.jboss.ejb.plugins.jms.JMSContainerInvoker + + DefaultJMSProvider + StdJMSPool + true + + 1 + 15 + 30000 + 1 + + 10 + + queue/DLQ + 10 + 0 + + + + + + + + + singleton-message-driven-bean + default + org.jboss.ejb.plugins.jms.JMSContainerInvoker + + DefaultJMSProvider + StdJMSPool + true + + 1 + 1 + 30000 + 1 + + 10 + + queue/DLQ + 10 + 0 + + + + + + + message-inflow-driven-bean + default + org.jboss.ejb.plugins.inflow.JBossMessageEndpointFactory + + + org.jboss.proxy.ClientMethodInterceptor + org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor + org.jboss.proxy.TransactionInterceptor + org.jboss.invocation.InvokerInterceptor + + + + + + iiop + jboss:service=invoker,type=iiop + org.jboss.proxy.ejb.IORFactory + + org.jboss.iiop.WebCL + per-servant + true + iiop + false + + + + + jms-message-inflow-driven-bean + default + org.jboss.ejb.plugins.inflow.JBossJMSMessageEndpointFactory + + + + providerAdapterJNDI + DefaultJMSProvider + + + minSession + 1 + + + maxSession + 15 + + + keepAlive + 60000 + + + maxMessages + 1 + + + reconnectInterval + 10 + + + useDLQ + true + + + DLQHandler + org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler + + + DLQJNDIName + queue/DLQ + + + DLQMaxResent + 10 + + + + org.jboss.proxy.ClientMethodInterceptor + org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor + org.jboss.proxy.TransactionInterceptor + org.jboss.invocation.InvokerInterceptor + + + + + + + + + Standard CMP 2.x EntityBean + false + entity-rmi-invoker + false + false + true + + org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor + org.jboss.ejb.plugins.LogInterceptor + org.jboss.ejb.plugins.SecurityInterceptor + org.jboss.ejb.plugins.TxInterceptorCMT + org.jboss.ejb.plugins.CallValidationInterceptor + org.jboss.ejb.plugins.EntityCreationInterceptor + org.jboss.ejb.plugins.EntityLockInterceptor + org.jboss.ejb.plugins.EntityInstanceInterceptor + org.jboss.ejb.plugins.EntityReentranceInterceptor + org.jboss.resource.connectionmanager.CachedConnectionInterceptor + org.jboss.ejb.plugins.EntitySynchronizationInterceptor + org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor + + org.jboss.ejb.plugins.EntityInstancePool + org.jboss.ejb.plugins.InvalidableEntityInstanceCache + org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager + org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock + + org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy + + 50 + 1000000 + 300 + 600 + 400 + 60 + 1 + 0.75 + + + + 100 + + B + + + + + cmp2.x jdbc2 pm + false + entity-rmi-invoker + false + true + true + + org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor + org.jboss.ejb.plugins.LogInterceptor + org.jboss.ejb.plugins.SecurityInterceptor + org.jboss.ejb.plugins.TxInterceptorCMT + org.jboss.ejb.plugins.EntityCreationInterceptor + org.jboss.ejb.plugins.EntityInstanceInterceptor + org.jboss.ejb.plugins.EntityReentranceInterceptor + org.jboss.resource.connectionmanager.CachedConnectionInterceptor + org.jboss.ejb.plugins.EntitySynchronizationInterceptor + org.jboss.ejb.plugins.cmp.jdbc2.RelationInterceptor + + org.jboss.ejb.plugins.EntityInstancePool + org.jboss.ejb.plugins.PerTxEntityInstanceCache + org.jboss.ejb.plugins.cmp.jdbc2.JDBCStoreManager2 + org.jboss.ejb.plugins.lock.NoLock + + + 500 + 10000 + + + 10 + + + + + 100 + + C + + + + Clustered CMP 2.x EntityBean + false + clustered-entity-rmi-invoker + false + false + + org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor + org.jboss.ejb.plugins.CleanShutdownInterceptor + org.jboss.ejb.plugins.LogInterceptor + org.jboss.ejb.plugins.SecurityInterceptor + org.jboss.ejb.plugins.TxInterceptorCMT + org.jboss.ejb.plugins.CallValidationInterceptor + org.jboss.ejb.plugins.EntityCreationInterceptor + org.jboss.ejb.plugins.EntityLockInterceptor + org.jboss.ejb.plugins.EntityInstanceInterceptor + org.jboss.ejb.plugins.EntityReentranceInterceptor + org.jboss.resource.connectionmanager.CachedConnectionInterceptor + org.jboss.ejb.plugins.EntitySynchronizationInterceptor + org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor + + org.jboss.ejb.plugins.EntityInstancePool + org.jboss.ejb.plugins.EntityInstanceCache + org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager + org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock + + org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy + + 50 + 1000000 + 300 + 600 + 400 + 60 + 1 + 0.75 + + + + 100 + + B + + ${jboss.partition.name:DefaultPartition} + + + + + Standard CMP 2.x EntityBean with cache invalidation + false + entity-rmi-invoker + + org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor + org.jboss.ejb.plugins.LogInterceptor + org.jboss.ejb.plugins.SecurityInterceptor + org.jboss.ejb.plugins.TxInterceptorCMT + org.jboss.ejb.plugins.CallValidationInterceptor + org.jboss.ejb.plugins.EntityCreationInterceptor + org.jboss.ejb.plugins.EntityLockInterceptor + org.jboss.ejb.plugins.EntityInstanceInterceptor + org.jboss.ejb.plugins.EntityReentranceInterceptor + org.jboss.resource.connectionmanager.CachedConnectionInterceptor + org.jboss.ejb.plugins.EntitySynchronizationInterceptor + org.jboss.cache.invalidation.triggers.EntityBeanCacheBatchInvalidatorInterceptor + org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor + + org.jboss.ejb.plugins.EntityInstancePool + org.jboss.ejb.plugins.InvalidableEntityInstanceCache + org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager + org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock + + org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy + + 50 + 1000000 + 300 + 600 + 400 + 60 + 1 + 0.75 + + + + 100 + + A + + + + Instance Per Transaction CMP 2.x EntityBean + false + entity-rmi-invoker + false + false + + org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor + org.jboss.ejb.plugins.LogInterceptor + org.jboss.ejb.plugins.SecurityInterceptor + org.jboss.ejb.plugins.TxInterceptorCMT + org.jboss.ejb.plugins.CallValidationInterceptor + org.jboss.ejb.plugins.EntityCreationInterceptor + org.jboss.ejb.plugins.EntityLockInterceptor + org.jboss.ejb.plugins.EntityInstanceInterceptor + org.jboss.ejb.plugins.EntityReentranceInterceptor + org.jboss.resource.connectionmanager.CachedConnectionInterceptor + org.jboss.ejb.plugins.EntitySynchronizationInterceptor + org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor + + org.jboss.ejb.plugins.EntityInstancePool + org.jboss.ejb.plugins.PerTxEntityInstanceCache + org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager + org.jboss.ejb.plugins.lock.NoLock + + + 100 + + C + + + + Standard CMP EntityBean + false + entity-rmi-invoker + false + false + + org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor + org.jboss.ejb.plugins.LogInterceptor + org.jboss.ejb.plugins.SecurityInterceptor + org.jboss.ejb.plugins.TxInterceptorCMT + org.jboss.ejb.plugins.CallValidationInterceptor + org.jboss.ejb.plugins.EntityCreationInterceptor + org.jboss.ejb.plugins.EntityLockInterceptor + org.jboss.ejb.plugins.EntityInstanceInterceptor + org.jboss.ejb.plugins.EntityReentranceInterceptor + org.jboss.resource.connectionmanager.CachedConnectionInterceptor + org.jboss.ejb.plugins.EntitySynchronizationInterceptor + + org.jboss.ejb.plugins.EntityInstancePool + org.jboss.ejb.plugins.EntityInstanceCache + org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager + org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock + + org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy + + 50 + 1000000 + 300 + 600 + 400 + 60 + 1 + 0.75 + + + + 100 + + A + + + + Clustered CMP EntityBean + false + clustered-entity-rmi-invoker + false + false + + org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor + org.jboss.ejb.plugins.CleanShutdownInterceptor + org.jboss.ejb.plugins.LogInterceptor + org.jboss.ejb.plugins.SecurityInterceptor + org.jboss.ejb.plugins.TxInterceptorCMT + org.jboss.ejb.plugins.CallValidationInterceptor + org.jboss.ejb.plugins.EntityCreationInterceptor + org.jboss.ejb.plugins.EntityLockInterceptor + org.jboss.ejb.plugins.EntityInstanceInterceptor + org.jboss.ejb.plugins.EntityReentranceInterceptor + org.jboss.resource.connectionmanager.CachedConnectionInterceptor + org.jboss.ejb.plugins.EntitySynchronizationInterceptor + + org.jboss.ejb.plugins.EntityInstancePool + org.jboss.ejb.plugins.EntityInstanceCache + org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager + org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock + + org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy + + 50 + 1000000 + 300 + 600 + 400 + 60 + 1 + 0.75 + + + + 100 + + A + + ${jboss.partition.name:DefaultPartition} + + + + + Instance Per Transaction CMP EntityBean + false + entity-rmi-invoker + false + false + + org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor + org.jboss.ejb.plugins.LogInterceptor + org.jboss.ejb.plugins.SecurityInterceptor + org.jboss.ejb.plugins.TxInterceptorCMT + org.jboss.ejb.plugins.CallValidationInterceptor + org.jboss.ejb.plugins.EntityCreationInterceptor + org.jboss.ejb.plugins.EntityLockInterceptor + org.jboss.ejb.plugins.EntityInstanceInterceptor + org.jboss.ejb.plugins.EntityReentranceInterceptor + org.jboss.resource.connectionmanager.CachedConnectionInterceptor + org.jboss.ejb.plugins.EntitySynchronizationInterceptor + + org.jboss.ejb.plugins.EntityInstancePool + org.jboss.ejb.plugins.PerTxEntityInstanceCache + org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager + org.jboss.ejb.plugins.lock.NoLock + + + 100 + + C + + + + Standard Stateless SessionBean + false + stateless-rmi-invoker + + org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor + org.jboss.ejb.plugins.LogInterceptor + org.jboss.ejb.plugins.SecurityInterceptor + + org.jboss.ejb.plugins.TxInterceptorCMT + org.jboss.ejb.plugins.CallValidationInterceptor + org.jboss.webservice.server.ServiceEndpointInterceptor + org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor + + org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor + org.jboss.ejb.plugins.TxInterceptorBMT + org.jboss.ejb.plugins.CallValidationInterceptor + org.jboss.webservice.server.ServiceEndpointInterceptor + org.jboss.resource.connectionmanager.CachedConnectionInterceptor + + org.jboss.ejb.plugins.StatelessSessionInstancePool + + + + 100 + + + + + Clustered Stateless SessionBean + false + clustered-stateless-rmi-invoker + + org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor + org.jboss.ejb.plugins.CleanShutdownInterceptor + org.jboss.ejb.plugins.LogInterceptor + org.jboss.ejb.plugins.SecurityInterceptor + + org.jboss.ejb.plugins.TxInterceptorCMT + org.jboss.ejb.plugins.CallValidationInterceptor + org.jboss.webservice.server.ServiceEndpointInterceptor + org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor + + org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor + org.jboss.ejb.plugins.TxInterceptorBMT + org.jboss.ejb.plugins.CallValidationInterceptor + org.jboss.webservice.server.ServiceEndpointInterceptor + org.jboss.resource.connectionmanager.CachedConnectionInterceptor + + org.jboss.ejb.plugins.StatelessSessionInstancePool + + + + 100 + + + ${jboss.partition.name:DefaultPartition} + + + + + + Standard Stateful SessionBean + false + stateful-rmi-invoker + + org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor + org.jboss.ejb.plugins.LogInterceptor + + org.jboss.ejb.plugins.TxInterceptorCMT + org.jboss.ejb.plugins.CallValidationInterceptor + org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor + + org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor + org.jboss.ejb.plugins.TxInterceptorBMT + org.jboss.ejb.plugins.CallValidationInterceptor + org.jboss.resource.connectionmanager.CachedConnectionInterceptor + org.jboss.ejb.plugins.SecurityInterceptor + + org.jboss.ejb.plugins.StatefulSessionInstanceCache + org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager + + org.jboss.ejb.plugins.LRUStatefulContextCachePolicy + + 50 + 1000000 + 1800 + 1800 + 300 + 600 + 400 + 60 + 1 + 0.75 + + + + 100 + + + + + Clustered Stateful SessionBean + false + clustered-stateful-rmi-invoker + + org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor + org.jboss.ejb.plugins.CleanShutdownInterceptor + org.jboss.ejb.plugins.LogInterceptor + + org.jboss.ejb.plugins.TxInterceptorCMT + org.jboss.ejb.plugins.CallValidationInterceptor + org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor + + org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor + org.jboss.ejb.plugins.TxInterceptorBMT + org.jboss.ejb.plugins.CallValidationInterceptor + org.jboss.ejb.plugins.SecurityInterceptor + org.jboss.resource.connectionmanager.CachedConnectionInterceptor + org.jboss.ejb.plugins.StatefulHASessionSynchronisationInterceptor + + org.jboss.ejb.plugins.StatefulHASessionInstanceCache + org.jboss.ejb.plugins.StatefulHASessionPersistenceManager + + org.jboss.ejb.plugins.LRUStatefulContextCachePolicy + + 50 + 1000000 + 1800 + 1800 + 300 + 600 + 400 + 60 + 1 + 0.75 + + + + 100 + + + ${jboss.partition.name:DefaultPartition} + + + + + Standard BMP EntityBean + false + entity-rmi-invoker + false + false + + org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor + org.jboss.ejb.plugins.LogInterceptor + org.jboss.ejb.plugins.SecurityInterceptor + org.jboss.ejb.plugins.TxInterceptorCMT + org.jboss.ejb.plugins.CallValidationInterceptor + org.jboss.ejb.plugins.EntityCreationInterceptor + org.jboss.ejb.plugins.EntityLockInterceptor + org.jboss.ejb.plugins.EntityInstanceInterceptor + org.jboss.ejb.plugins.EntityReentranceInterceptor + org.jboss.resource.connectionmanager.CachedConnectionInterceptor + org.jboss.ejb.plugins.EntitySynchronizationInterceptor + + org.jboss.ejb.plugins.EntityInstancePool + org.jboss.ejb.plugins.EntityInstanceCache + org.jboss.ejb.plugins.BMPPersistenceManager + org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock + + org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy + + 50 + 1000000 + 300 + 600 + 400 + 60 + 1 + 0.75 + + + + 100 + + A + + + + Clustered BMP EntityBean + false + clustered-entity-rmi-invoker + false + false + + org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor + org.jboss.ejb.plugins.CleanShutdownInterceptor + org.jboss.ejb.plugins.LogInterceptor + org.jboss.ejb.plugins.SecurityInterceptor + org.jboss.ejb.plugins.TxInterceptorCMT + org.jboss.ejb.plugins.CallValidationInterceptor + org.jboss.ejb.plugins.EntityCreationInterceptor + org.jboss.ejb.plugins.EntityLockInterceptor + org.jboss.ejb.plugins.EntityInstanceInterceptor + org.jboss.ejb.plugins.EntityReentranceInterceptor + org.jboss.resource.connectionmanager.CachedConnectionInterceptor + org.jboss.ejb.plugins.EntitySynchronizationInterceptor + + org.jboss.ejb.plugins.EntityInstancePool + org.jboss.ejb.plugins.EntityInstanceCache + org.jboss.ejb.plugins.BMPPersistenceManager + org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock + + org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy + + 50 + 1000000 + 300 + 600 + 400 + 60 + 1 + 0.75 + + + + 100 + + A + + ${jboss.partition.name:DefaultPartition} + + + + + Instance Per Transaction BMP EntityBean + false + entity-rmi-invoker + false + false + + org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor + org.jboss.ejb.plugins.LogInterceptor + org.jboss.ejb.plugins.SecurityInterceptor + org.jboss.ejb.plugins.TxInterceptorCMT + org.jboss.ejb.plugins.CallValidationInterceptor + org.jboss.ejb.plugins.EntityCreationInterceptor + org.jboss.ejb.plugins.EntityLockInterceptor + org.jboss.ejb.plugins.EntityInstanceInterceptor + org.jboss.ejb.plugins.EntityReentranceInterceptor + org.jboss.resource.connectionmanager.CachedConnectionInterceptor + org.jboss.ejb.plugins.EntitySynchronizationInterceptor + + org.jboss.ejb.plugins.EntityInstancePool + org.jboss.ejb.plugins.PerTxEntityInstanceCache + org.jboss.ejb.plugins.BMPPersistenceManager + org.jboss.ejb.plugins.lock.NoLock + + + 100 + + C + + + + Standard Message Driven Bean + false + message-driven-bean + + org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor + org.jboss.ejb.plugins.LogInterceptor + org.jboss.ejb.plugins.RunAsSecurityInterceptor + + org.jboss.ejb.plugins.TxInterceptorCMT + org.jboss.ejb.plugins.CallValidationInterceptor + org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor + + org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor + org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT + org.jboss.ejb.plugins.CallValidationInterceptor + org.jboss.resource.connectionmanager.CachedConnectionInterceptor + + org.jboss.ejb.plugins.MessageDrivenInstancePool + + + + 100 + + + + + Singleton Message Driven Bean + false + singleton-message-driven-bean + + org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor + org.jboss.ejb.plugins.LogInterceptor + org.jboss.ejb.plugins.RunAsSecurityInterceptor + + org.jboss.ejb.plugins.TxInterceptorCMT + org.jboss.ejb.plugins.CallValidationInterceptor + org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor + + org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor + org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT + org.jboss.ejb.plugins.CallValidationInterceptor + org.jboss.resource.connectionmanager.CachedConnectionInterceptor + + org.jboss.ejb.plugins.MessageDrivenInstancePool + + + + 100 + + + + + Standard Message Inflow Driven Bean + false + message-inflow-driven-bean + + org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor + org.jboss.ejb.plugins.LogInterceptor + org.jboss.ejb.plugins.RunAsSecurityInterceptor + + org.jboss.ejb.plugins.TxInterceptorCMT + org.jboss.ejb.plugins.CallValidationInterceptor + org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor + + org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor + org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT + org.jboss.ejb.plugins.CallValidationInterceptor + org.jboss.resource.connectionmanager.CachedConnectionInterceptor + + org.jboss.ejb.plugins.MessageDrivenInstancePool + + + + 100 + + + + + + diff --git a/jboss/server/adempiere/conf/standardjbosscmp-jdbc.xml b/jboss/server/adempiere/conf/standardjbosscmp-jdbc.xml new file mode 100644 index 0000000000..6385d8ce2c --- /dev/null +++ b/jboss/server/adempiere/conf/standardjbosscmp-jdbc.xml @@ -0,0 +1,2985 @@ + + + + + + + + + + + + + + + java:/DefaultDS + + + true + false + false + 300000 + false + true + false + foreign-key + + on-load + 1000 + * + + 1000 + false + + + UUIDKeyGeneratorFactory + java.lang.String + VARCHAR + VARCHAR(32) + + + + org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLCompiler + false + + + + + FirstSQL/J + + PRIMARY KEY (?2) + FOREIGN KEY (?3) REFERENCES ?4 (?5) + t + _ + 32 + true + 1 + 0 + + + concat + (?1 || ?2) + + + substring + substring(?1 FROM ?2 FOR ?3) + + + lcase + lower(?1) + + + length + char_length(?1) + + + locate + position(?1 IN ?2) + + + abs + math.abs(?1) + + + sqrt + math.sqrt(CAST(?1 AS DOUBLE)) + + + ucase + upper(?1) + + + count + count(?1) + + + + java.lang.Boolean + TINYINT + TINYINT + + + java.lang.Byte + TINYINT + TINYINT + + + java.lang.Short + SMALLINT + SMALLINT + + + java.lang.Integer + INTEGER + INTEGER + + + java.lang.Long + BIGINT + BIGINT + + + java.lang.Float + REAL + REAL + + + java.lang.Double + DOUBLE + DOUBLE + + + java.lang.Character + CHAR + CHAR + + + java.lang.String + VARCHAR + + VARCHAR(256) + + + java.sql.Date + DATE + DATE + + + java.sql.Time + TIME + TIME + + + java.sql.Timestamp + TIMESTAMP + TIMESTAMP + + + java.util.Date + TIMESTAMP + TIMESTAMP + + + java.math.BigDecimal + DECIMAL + DECIMAL + + + java.lang.Object + + LONGVARBINARY + VARCHAR(2147483500) + + + + + Ingres + SELECT ?1 FROM ?2 WHERE ?3 ORDER BY ?4 FOR UPDATE + ALTER TABLE ?1 ADD CONSTRAINT ?2 PRIMARY KEY (?3) + ALTER TABLE ?1 ADD CONSTRAINT ?2 FOREIGN KEY (?3) REFERENCES ?4 (?5) + t + _ + 32 + true + TRUE + FALSE + + + concat + concat(?1,?2) + + + substring + left(?1,?2) + + + lcase + lower(?1) + + + length + length(?1) + + + locate + locate(?1,?2) + + + abs + abs(?1) + + + sqrt + sqrt(?1) + + + ucase + upper(?1) + + + count + count(?1) + + + + + java.lang.Boolean + INTEGER + INTEGER + + + java.lang.Byte + TINYINT + INT1 + + + java.lang.Short + SMALLINT + SMALLINT + + + java.lang.Integer + INTEGER + INTEGER + + + java.lang.Long + BIGINT + INTEGER4 + + + java.lang.Float + FLOAT + FLOAT4 + + + java.lang.Double + DOUBLE + FLOAT8 + + + java.lang.Character + CHAR + CHAR + + + java.lang.String + VARCHAR + VARCHAR(256) + + + java.util.Date + TIMESTAMP + DATE + + + java.sql.Date + DATE + DATE + + + java.sql.Time + TIME + DATE + + + java.sql.Timestamp + TIMESTAMP + DATE + + + java.math.BigDecimal + DOUBLE + FLOAT8 + + + + java.lang.Object + JAVA_OBJECT + LONG VARCHAR + + + + McKoi + SELECT ?1 FROM ?2 WHERE ?3 ORDER BY ?4 FOR UPDATE + CONSTRAINT ?1 PRIMARY KEY (?2) + ALTER TABLE ?1 ADD CONSTRAINT ?2 FOREIGN KEY (?3) REFERENCES ?4 (?5) + t + _ + 32 + true + TRUE + FALSE + + + count + count(?1) + + + + java.lang.Boolean + BIT + BOOLEAN + + + java.lang.Byte + TINYINT + SMALLINT + + + java.lang.Short + SMALLINT + SMALLINT + + + java.lang.Integer + INTEGER + INTEGER + + + java.lang.Long + BIGINT + BIGINT + + + java.lang.Float + REAL + FLOAT + + + java.lang.Double + DOUBLE + DOUBLE + + + java.lang.Character + CHAR + CHAR + + + java.lang.String + VARCHAR + VARCHAR(64) + + + java.sql.Date + DATE + DATE + + + java.sql.Time + TIME + TIME + + + java.sql.Timestamp + TIMESTAMP + TIMESTAMP + + + java.lang.Object + JAVA_OBJECT + JAVA_OBJECT + + + + + Firebird + SELECT ?1 FROM ?2 WHERE ?3 ORDER BY ?4 FOR UPDATE + CONSTRAINT ?1 PRIMARY KEY (?2) + ALTER TABLE ?1 ADD CONSTRAINT ?2 FOREIGN KEY (?3) REFERENCES ?4 (?5) + t + _ + 31 + true + 1 + 0 + + + count + count(?1) + + + + java.lang.Boolean + BIT + SMALLINT default 0 + + + java.lang.Byte + TINYINT + SMALLINT default 0 + + + java.lang.Short + SMALLINT + SMALLINT default 0 + + + java.lang.Integer + INTEGER + INTEGER default 0 + + + java.lang.Long + BIGINT + NUMERIC(18,0) default 0 + + + java.lang.Float + REAL + FLOAT default 0 + + + java.lang.Double + DOUBLE + DOUBLE PRECISION default 0 + + + java.lang.Character + VARCHAR + CHAR + + + + java.lang.String + VARCHAR + VARCHAR(64) + + + java.sql.Date + DATE + DATE + + + java.sql.Time + TIME + TIME + + + java.sql.Timestamp + TIMESTAMP + TIMESTAMP + + + java.lang.Object + JAVA_OBJECT + BLOB + + + + + InterBase + SELECT ?1 FROM ?2 WHERE ?3 ORDER BY ?4 FOR UPDATE + CONSTRAINT ?1 PRIMARY KEY (?2) + ALTER TABLE ?1 ADD CONSTRAINT ?2 FOREIGN KEY (?3) REFERENCES ?4 (?5) + t + _ + 31 + true + 1 + 0 + + + count + count(?1) + + + + java.lang.Boolean + BIT + SMALLINT default 0 + + + java.lang.Byte + TINYINT + SMALLINT default 0 + + + java.lang.Short + SMALLINT + SMALLINT default 0 + + + java.lang.Integer + INTEGER + INTEGER default 0 + + + java.lang.Long + BIGINT + NUMERIC(18,0) default 0 + + + java.lang.Float + REAL + FLOAT default 0 + + + java.lang.Double + DOUBLE + DOUBLE PRECISION default 0 + + + java.lang.Character + VARCHAR + CHAR + + + java.lang.String + VARCHAR + VARCHAR(64) + + + java.sql.Date + DATE + DATE + + + java.sql.Time + TIME + TIME + + + java.sql.Timestamp + TIMESTAMP + TIMESTAMP + + + java.lang.Object + JAVA_OBJECT + VARCHAR(2000) + + + + + DB2 + + CONSTRAINT ?1 PRIMARY KEY (?2) + ALTER TABLE ?1 ADD CONSTRAINT ?2 FOREIGN KEY (?3) REFERENCES ?4 (?5) + t + _ + 32 + true + 1 + 0 + + + count + count(?1) + + + locate + locate(CAST(?1 as VARCHAR(254)), + CAST(?2 as VaRCHAR(254)),?3) + + + + java.lang.Boolean + BIT + SMALLINT + + + + java.lang.Short + SMALLINT + SMALLINT + + + java.lang.Integer + INTEGER + INTEGER + + + java.lang.Long + BIGINT + BIGINT + + + java.lang.Float + REAL + REAL + + + java.lang.Double + DOUBLE + DOUBLE + + + java.lang.Character + CHAR + CHAR + + + java.lang.String + VARCHAR + VARCHAR(254) + + + java.sql.Date + DATE + DATE + + + java.sql.Time + TIME + TIME + + + java.sql.Timestamp + TIMESTAMP + TIMESTAMP + + + + java.lang.Object + VARBINARY + BLOB(2000) + + + + + Derby + + CONSTRAINT ?1 PRIMARY KEY (?2) + ALTER TABLE ?1 ADD CONSTRAINT ?2 FOREIGN KEY (?3) REFERENCES ?4 (?5) + t + _ + 18 + true + 1 + 0 + + + concat + (?1 || ?2) + + + substr + substr(?1, ?2, ?3) + + + lcase + lower(?1) + + + length + length(?1) + + + locate + locate(?2, ?1, ?3) + + + abs + abs(?1) + + + sqrt + sqrt(?1) + + + ucase + upper(?1) + + + count + count(?1) + + + + java.math.BigDecimal + NUMERIC + DECIMAL + + + java.lang.Boolean + BIT + BOOLEAN + + + + java.lang.Short + SMALLINT + SMALLINT + + + java.lang.Integer + INTEGER + INTEGER + + + java.lang.Long + BIGINT + BIGINT + + + java.lang.Float + REAL + REAL + + + java.lang.Double + DOUBLE + DOUBLE PRECISION + + + java.lang.Character + CHAR + CHAR + + + java.lang.String + VARCHAR + VARCHAR(256) + + + java.sql.Date + DATE + DATE + + + java.sql.Time + TIME + TIME + + + java.sql.Timestamp + TIMESTAMP + TIMESTAMP + + + java.lang.Object + BLOB + BLOB + + + + + Oracle9i + + SELECT ?1 FROM ?2 WHERE ?3 ORDER BY ?4 FOR UPDATE + CONSTRAINT ?1 PRIMARY KEY (?2) + ALTER TABLE ?1 ADD CONSTRAINT ?2 FOREIGN KEY (?3) REFERENCES ?4 (?5) + t + _ + 30 + true + 1 + 0 + + + concat + (?1 || ?2) + + + substring + substr(?1, ?2, ?3) + + + lcase + lower(?1) + + + length + length(?1) + + + locate + instr(?2, ?1, ?3) + + + abs + abs(?1) + + + sqrt + sqrt(?1) + + + ucase + upper(?1) + + + count + count(?1) + + + + java.lang.Boolean + BIT + NUMBER(1) + + + java.lang.Byte + SMALLINT + NUMBER(3) + + + java.lang.Short + NUMERIC + + NUMBER(5) + + + java.lang.Integer + INTEGER + NUMBER(10) + + + java.lang.Long + BIGINT + NUMBER(19) + + + java.lang.Float + REAL + NUMBER(38,7) + + + java.math.BigDecimal + DECIMAL + NUMBER(38,15) + + + java.lang.Double + DOUBLE + NUMBER(38,15) + + + java.lang.Character + VARCHAR + CHAR + + + java.lang.String + VARCHAR + VARCHAR2(255) + + + java.util.Date + TIMESTAMP + TIMESTAMP(3) + + + java.sql.Date + DATE + DATE + + + java.sql.Time + TIME + DATE + + + java.sql.Timestamp + TIMESTAMP + TIMESTAMP(9) + + + java.lang.Object + BLOB + BLOB + + + + + + Oracle8 + SELECT ?1 FROM ?2 WHERE ?3 ORDER BY ?4 FOR UPDATE + CONSTRAINT ?1 PRIMARY KEY (?2) + ALTER TABLE ?1 ADD CONSTRAINT ?2 FOREIGN KEY (?3) REFERENCES ?4 (?5) + t + _ + 30 + true + 1 + 0 + + + concat + (?1 || ?2) + + + substring + substr(?1, ?2, ?3) + + + lcase + lower(?1) + + + length + length(?1) + + + locate + instr(?2, ?1, ?3) + + + abs + abs(?1) + + + sqrt + sqrt(?1) + + + ucase + upper(?1) + + + count + count(?1) + + + + java.lang.Boolean + BIT + NUMBER(1) + + + java.lang.Byte + NUMERIC + NUMBER(3) + + + java.lang.Short + NUMERIC + NUMBER(5) + + + java.lang.Integer + INTEGER + NUMBER(10) + + + java.lang.Long + BIGINT + NUMBER(19) + + + java.lang.Float + REAL + NUMBER(38,7) + + + java.math.BigDecimal + DECIMAL + NUMBER(38,15) + + + java.lang.Double + DOUBLE + NUMBER(38,15) + + + java.lang.Character + VARCHAR + CHAR + + + java.lang.String + VARCHAR + VARCHAR2(255) + + + + java.util.Date + TIMESTAMP + DATE + + + java.sql.Date + DATE + DATE + + + java.sql.Time + TIME + DATE + + + + java.sql.Timestamp + TIMESTAMP + DATE + + + java.lang.Object + BLOB + BLOB + + + + + + Oracle7 + SELECT ?1 FROM ?2 WHERE ?3 ORDER BY ?4 FOR UPDATE + CONSTRAINT ?1 PRIMARY KEY (?2) + ALTER TABLE ?1 ADD CONSTRAINT ?2 FOREIGN KEY (?3) REFERENCES ?4 (?5) + t + _ + 30 + true + 1 + 0 + + + concat + (?1 || ?2) + + + substring + substr(?1, ?2, ?3) + + + lcase + lower(?1) + + + length + length(?1) + + + locate + instr(?2, ?1, ?3) + + + abs + abs(?1) + + + sqrt + sqrt(?1) + + + ucase + upper(?1) + + + count + count(?1) + + + + java.lang.Boolean + BIT + NUMBER(1) + + + java.lang.Byte + NUMERIC + NUMBER(3) + + + java.lang.Short + NUMERIC + NUMBER(5) + + + java.lang.Integer + INTEGER + NUMBER(10) + + + java.lang.Long + BIGINT + NUMBER(19) + + + java.lang.Float + REAL + NUMBER(38,7) + + + java.lang.Double + DOUBLE + NUMBER(38,15) + + + java.lang.Character + VARCHAR + CHAR + + + java.lang.String + VARCHAR + VARCHAR2(255) + + + + java.util.Date + TIMESTAMP + DATE + + + java.sql.Date + DATE + DATE + + + java.sql.Time + TIME + DATE + + + + java.sql.Timestamp + TIMESTAMP + DATE + + + java.lang.Object + LONGVARBINARY + LONG RAW + + + + + + Sybase + + CONSTRAINT ?1 PRIMARY KEY (?2) + ALTER TABLE ?1 ADD CONSTRAINT ?2 FOREIGN KEY (?3) REFERENCES ?4 (?5) + t + _ + 30 + true + 1 + 0 + + + count + count(?1) + + + length + char_length(?1) + + + + java.lang.Boolean + BIT + BIT + + + + java.lang.Integer + INTEGER + INTEGER + + + java.lang.Long + NUMERIC + NUMERIC(38,0) + + + java.lang.Float + REAL + REAL + + + java.lang.Double + DOUBLE + DOUBLE PRECISION + + + java.lang.Character + CHAR + CHAR + + + java.lang.String + VARCHAR + VARCHAR(255) + + + java.util.Date + TIMESTAMP + DATETIME + + + java.sql.Date + DATE + DATETIME + + + java.sql.Time + TIME + SMALLDATETIME + + + java.sql.Timestamp + TIMESTAMP + DATETIME + + + java.lang.Object + JAVA_OBJECT + IMAGE + + + + + PostgreSQL + SELECT ?1 FROM ?2 WHERE ?3 ORDER BY ?4 FOR UPDATE + CONSTRAINT ?1 PRIMARY KEY (?2) + ALTER TABLE ?1 ADD CONSTRAINT ?2 FOREIGN KEY (?3) REFERENCES ?4 (?5) + ?1 + t + _ + 32 + true + TRUE + FALSE + + + concat + (?1 || ?2) + + + substring + substring(?1 FROM ?2 FOR ?3) + + + lcase + lower(?1) + + + length + length(?1) + + + locate + (CASE position(?1 in substring(?2 from ?3)) WHEN 0 THEN 0 ELSE position(?1 in substring(?2 from ?3)) + ?3 - 1 END) + + + abs + abs(?1) + + + sqrt + sqrt(CAST(?1 AS double precision)) + + + ucase + upper(?1) + + + count + count(?1) + + + + java.lang.Boolean + CHAR + BOOLEAN + + + java.lang.Byte + TINYINT + INT2 + + + java.lang.Short + SMALLINT + INT2 + + + java.lang.Integer + INTEGER + INT4 + + + java.lang.Long + BIGINT + INT8 + + + java.lang.Float + FLOAT + FLOAT(7) + + + java.lang.Double + DOUBLE + FLOAT8 + + + java.lang.Character + CHAR + CHAR(1) + + + java.lang.String + VARCHAR + TEXT + + + java.util.Date + TIMESTAMP + TIMESTAMP with time zone + + + java.sql.Date + DATE + DATE + + + java.sql.Time + TIME + TIME + + + java.sql.Timestamp + TIMESTAMP + TIMESTAMP with time zone + + + java.math.BigDecimal + NUMERIC + NUMERIC + + + java.lang.Object + VARBINARY + BYTEA + + + + + PostgreSQL 8.0 + SELECT ?1 FROM ?2 WHERE ?3 ORDER BY ?4 FOR UPDATE + CONSTRAINT ?1 PRIMARY KEY (?2) + ALTER TABLE ?1 ADD CONSTRAINT ?2 FOREIGN KEY (?3) REFERENCES ?4 (?5) + ?1 + t + _ + 32 + true + TRUE + FALSE + + + concat + (?1 || ?2) + + + substring + substring(?1 FROM ?2 FOR ?3) + + + lcase + lower(?1) + + + length + length(?1) + + + locate + (CASE position(?1 in substring(?2 from ?3)) WHEN 0 THEN 0 ELSE position(?1 in substring(?2 from ?3)) + ?3 - 1 END) + + + abs + abs(?1) + + + sqrt + sqrt(CAST(?1 AS double precision)) + + + ucase + upper(?1) + + + count + count(?1) + + + + java.lang.Boolean + BOOLEAN + BOOLEAN + + + java.lang.Byte + TINYINT + INT2 + + + java.lang.Short + SMALLINT + INT2 + + + java.lang.Integer + INTEGER + INT4 + + + java.lang.Long + BIGINT + INT8 + + + java.lang.Float + FLOAT + FLOAT(7) + + + java.lang.Double + DOUBLE + FLOAT8 + + + java.lang.Character + CHAR + CHAR(1) + + + java.lang.String + VARCHAR + TEXT + + + java.util.Date + TIMESTAMP + TIMESTAMP + + + java.sql.Date + DATE + DATE + + + java.sql.Time + TIME + TIME + + + java.sql.Timestamp + TIMESTAMP + TIMESTAMP + + + java.math.BigDecimal + NUMERIC + NUMERIC + + + java.lang.Object + VARBINARY + BYTEA + + + + + PostgreSQL 7.2 + SELECT ?1 FROM ?2 WHERE ?3 ORDER BY ?4 FOR UPDATE + CONSTRAINT ?1 PRIMARY KEY (?2) + ALTER TABLE ?1 ADD CONSTRAINT ?2 FOREIGN KEY (?3) REFERENCES ?4 (?5) + ?1 + t + _ + 32 + true + TRUE + FALSE + + + concat + (?1 || ?2) + + + substring + substring(?1 FROM ?2 FOR ?3) + + + lcase + lower(?1) + + + length + length(?1) + + + locate + (CASE position(?1 in substring(?2 from ?3)) WHEN 0 THEN 0 ELSE position(?1 in substring(?2 from ?3)) + ?3 - 1 END) + + + abs + abs(?1) + + + sqrt + sqrt(CAST(?1 AS double precision)) + + + ucase + upper(?1) + + + count + count(?1) + + + + java.lang.Boolean + CHAR + BOOLEAN + + + java.lang.Byte + TINYINT + INT2 + + + java.lang.Short + SMALLINT + INT2 + + + java.lang.Integer + INTEGER + INT4 + + + java.lang.Long + BIGINT + INT8 + + + java.lang.Float + FLOAT + FLOAT(7) + + + java.lang.Double + DOUBLE + FLOAT8 + + + java.lang.Character + CHAR + CHAR(1) + + + java.lang.String + VARCHAR + TEXT + + + java.util.Date + TIMESTAMP + TIMESTAMP + + + java.sql.Date + DATE + DATE + + + java.sql.Time + TIME + TIME + + + java.sql.Timestamp + TIMESTAMP + TIMESTAMP + + + java.math.BigDecimal + NUMERIC + NUMERIC + + + java.lang.Object + VARBINARY + BYTEA + + + + + Hypersonic SQL + + CONSTRAINT ?1 PRIMARY KEY (?2) + ALTER TABLE ?1 ADD CONSTRAINT ?2 FOREIGN KEY (?3) REFERENCES ?4 (?5) + ?1 IDENTITY + ALTER TABLE ?1 ADD COLUMN ?2 ?3 + ALTER TABLE ?1 DROP COLUMN ?2 + t + _ + 32 + true + (1=1) + (1=0) + + + concat + (?1 || ?2) + + + substring + SUBSTRING(?1, ?2, ?3) + + + lcase + lcase(?1) + + + length + LENGTH(?1) + + + locate + LOCATE(?1, ?2, ?3) + + + abs + ABS(?1) + + + sqrt + SQRT(?1) + + + ucase + ucase(?1) + + + count + count(?1) + + + + java.lang.Byte + SMALLINT + SMALLINT + + + java.util.Date + TIMESTAMP + TIMESTAMP + + + java.lang.Boolean + BIT + BIT + + + java.lang.Integer + INTEGER + INTEGER + + + java.lang.Object + + VARBINARY + VARBINARY + + + java.lang.Short + SMALLINT + SMALLINT + + + java.lang.Character + CHAR + CHAR + + + java.lang.String + VARCHAR + VARCHAR(256) + + + java.sql.Date + DATE + DATE + + + java.sql.Time + TIME + TIME + + + java.sql.Timestamp + TIMESTAMP + TIMESTAMP + + + java.lang.Float + REAL + REAL + + + java.lang.Long + BIGINT + BIGINT + + + java.lang.Double + DOUBLE + DOUBLE + + + java.math.BigDecimal + DECIMAL + DECIMAL + + + + + PointBase + SELECT ?1 FROM ?2 WHERE ?3 ORDER BY ?4 FOR UPDATE + CONSTRAINT ?1 PRIMARY KEY (?2) + ALTER TABLE ?1 ADD CONSTRAINT ?2 FOREIGN KEY (?3) REFERENCES ?4 (?5) + t + _ + 32 + true + TRUE + FALSE + + + lcase + lower(?1) + + + ucase + upper(?1) + + + count + count(?1) + + + + java.lang.Character + CHAR + CHAR + + + java.lang.Short + SMALLINT + SMALLINT + + + java.lang.Long + BIGINT + INTEGER + + + java.lang.Double + DOUBLE + FLOAT + + + java.lang.Float + FLOAT + FLOAT + + + java.lang.Boolean + BIT + BOOLEAN + + + java.lang.String + VARCHAR + VARCHAR(256) + + + java.lang.Byte + SMALLINT + SMALLINT + + + java.lang.Object + BLOB + BLOB + + + java.lang.Integer + INTEGER + INTEGER + + + java.util.Date + DATE + DATE + + + java.sql.Timestamp + TIMESTAMP + TIMESTAMP + + + + + SOLID + + PRIMARY KEY (?2) + ALTER TABLE ?1 ADD CONSTRAINT ?2 FOREIGN KEY (?3) REFERENCES ?4 (?5) + t + _ + 32 + true + 1 + 0 + + + count + count(?1) + + + + java.lang.Character + CHAR + CHAR + + + java.lang.Byte + TINYINT + TINYINT + + + java.lang.Short + INTEGER + INTEGER + + + java.lang.Double + DOUBLE + DOUBLE + + + java.lang.Object + BLOB + BLOB + + + java.lang.String + VARCHAR + VARCHAR(256) + + + java.lang.Integer + INTEGER + INTEGER + + + java.sql.Timestamp + TIMESTAMP + TIMESTAMP + + + java.lang.Boolean + BIT + BIT + + + java.lang.Float + FLOAT + FLOAT + + + java.lang.Long + BIGINT + BIGINT + + + java.util.Date + TIMESTAMP + TIMESTAMP + + + + + mySQL + SELECT ?1 FROM ?2 WHERE ?3 ORDER BY ?4 FOR UPDATE + CONSTRAINT ?1 PRIMARY KEY (?2) + + ALTER TABLE ?1 ADD INDEX (?3), ADD CONSTRAINT ?2 FOREIGN KEY (?3) REFERENCES ?4 (?5) + ?1 auto_increment + ALTER TABLE ?1 MODIFY ?2 ?3 + t + _ + 32 + false + 1 + 0 + + + concat + concat(?1, ?2) + + + substring + substring(?1 FROM ?2 FOR ?3) + + + lcase + lower(?1) + + + length + length(?1) + + + locate + locate(?1, ?2, ?3) + + + abs + abs(?1) + + + sqrt + sqrt(?1) + + + ucase + upper(?1) + + + count + count(?1) + + + + java.lang.Float + FLOAT + FLOAT + + + java.lang.Double + DOUBLE + DOUBLE + + + java.lang.Boolean + TINYINT + TINYINT + + + java.math.BigDecimal + DOUBLE + DOUBLE + + + java.lang.Object + BLOB + LONGBLOB + + + + java.lang.Integer + INTEGER + INTEGER + + + java.lang.Short + SMALLINT + SMALLINT + + + java.sql.Timestamp + TIMESTAMP + TIMESTAMP + + + + java.lang.Byte + TINYINT + TINYINT + + + java.lang.Character + CHAR + CHAR + + + java.lang.Long + BIGINT + BIGINT + + + java.lang.String + VARCHAR + VARCHAR(250) BINARY + + + java.util.Date + TIMESTAMP + DATETIME + + + + java.sql.Date + DATE + DATETIME + + + java.sql.Time + TIME + TIME + + + + + MS SQLSERVER + SELECT ?1 FROM ?2 with (updlock) WHERE ?3 ORDER BY ?4 + CONSTRAINT ?1 PRIMARY KEY (?2) + ALTER TABLE ?1 ADD CONSTRAINT ?2 FOREIGN KEY (?3) REFERENCES ?4 (?5) + ?1 IDENTITY + ALTER TABLE ?1 ALTER COLUMN ?2 ?3 + t + _ + 32 + true + 1 + 0 + + + concat + (?1 + ?2) + + + substring + substring(?1, ?2, ?3) + + + lcase + lower(?1) + + + length + len(?1) + + + locate + charindex(?1, ?2, ?3) + + + abs + abs(?1) + + + sqrt + sqrt(?1) + + + ucase + upper(?1) + + + count + count(?1) + + + + java.lang.Integer + INTEGER + INTEGER + + + java.lang.Character + CHAR + CHAR + + + java.lang.Short + SMALLINT + SMALLINT + + + java.lang.Double + DOUBLE + DOUBLE + + + java.lang.Long + DECIMAL + DECIMAL(20) + + + java.math.BigDecimal + VARCHAR + VARCHAR(256) + + + java.lang.String + VARCHAR + VARCHAR(256) + + + java.lang.Object + JAVA_OBJECT + IMAGE + + + java.lang.Byte + TINYINT + TINYINT + + + + java.sql.Timestamp + TIMESTAMP + DATETIME + + + java.sql.Date + DATE + DATETIME + + + java.sql.Time + TIME + DATETIME + + + java.util.Date + TIMESTAMP + DATETIME + + + java.lang.Boolean + BIT + BIT + + + java.lang.Float + FLOAT + FLOAT + + + + + MS SQLSERVER2000 + SELECT ?1 FROM ?2 with (xlock) WHERE ?3 ORDER BY ?4 + CONSTRAINT ?1 PRIMARY KEY (?2) + ALTER TABLE ?1 ADD CONSTRAINT ?2 FOREIGN KEY (?3) REFERENCES ?4 (?5) + ?1 IDENTITY + t + _ + 32 + true + 1 + 0 + + + concat + (?1 + ?2) + + + substring + substring(?1, ?2, ?3) + + + lcase + lower(?1) + + + length + len(?1) + + + locate + charindex(?1, ?2, ?3) + + + abs + abs(?1) + + + sqrt + sqrt(?1) + + + ucase + upper(?1) + + + count + count(?1) + + + + java.lang.Integer + INTEGER + INTEGER + + + + java.lang.Character + CHAR + CHAR + + + + java.lang.Short + SMALLINT + SMALLINT + + + + java.lang.Long + BIGINT + BIGINT + + + + java.math.BigDecimal + VARCHAR + VARCHAR(256) + + + + java.lang.String + VARCHAR + VARCHAR(256) + + + + java.lang.Object + LONGVARBINARY + IMAGE + + + + java.lang.Byte + TINYINT + TINYINT + + + + + java.sql.Timestamp + TIMESTAMP + DATETIME + + + + java.sql.Date + DATE + DATETIME + + + + java.sql.Time + TIME + DATETIME + + + + java.util.Date + TIMESTAMP + DATETIME + + + + java.lang.Boolean + BIT + BIT + + + + java.lang.Float + REAL + REAL + + + + java.lang.Double + DOUBLE + FLOAT + + + + + DB2/400 + + CONSTRAINT ?1 PRIMARY KEY (?2) + ALTER TABLE ?1 ADD CONSTRAINT ?2 FOREIGN KEY (?3) REFERENCES ?4 (?5) + t + _ + 32 + true + 1 + 0 + + + count + count(?1) + + + + java.lang.Character + CHAR + CHAR(1) + + + java.lang.String + VARCHAR + VARCHAR(256) + + + + java.util.Date + TIMESTAMP + TIMESTAMP + + + java.sql.Time + TIME + TIME + + + java.lang.Float + FLOAT + FLOAT + + + java.lang.Integer + INTEGER + INTEGER + + + java.lang.Double + DOUBLE + DOUBLE + + + java.lang.Long + BIGINT + INTEGER + + + java.lang.Boolean + CHAR + CHAR(5) + + + java.lang.Short + SMALLINT + SMALLINT + + + java.lang.Object + JAVA_OBJECT + VARCHAR(4096) FOR BIT DATA + + + java.sql.Timestamp + TIMESTAMP + TIMESTAMP + + + + + SapDB + + + SELECT ?1 FROM ?2 WHERE ?3 ORDER BY ?4 FOR UPDATE + CONSTRAINT ?1 PRIMARY KEY (?2) + ALTER TABLE ?1 ADD FOREIGN KEY ?2 (?3) REFERENCES ?4 (?5) + t + _ + 32 + true + 1 + 0 + + + count + count(?1) + + + + java.lang.Integer + INTEGER + INTEGER + + + java.lang.Character + CHAR + CHAR + + + java.lang.String + VARCHAR + VARCHAR(256) + + + java.lang.Object + JAVA_OBJECT + LONG BYTE + + + java.lang.Byte + TINYINT + CHAR BYTE + + + java.sql.Timestamp + TIMESTAMP + TIMESTAMP + + + java.util.Date + TIMESTAMP + TIMESTAMP + + + java.sql.Time + TIME + TIME + + + java.lang.Boolean + BIT + BOOLEAN + + + java.lang.Float + FLOAT + FLOAT + + + java.lang.Short + SMALLINT + SMALLINT + + + java.lang.Double + DOUBLE + DOUBLE PRECISION + + + java.lang.Long + DECIMAL + DECIMAL(20) + + + + + Cloudscape + + CONSTRAINT ?1 PRIMARY KEY (?2) + ALTER TABLE ?1 ADD CONSTRAINT ?2 FOREIGN KEY (?3) REFERENCES ?4 (?5) + t + _ + 32 + true + 1 + 0 + + + count + count(?1) + + + + java.math.BigDecimal + LONGVARCHAR + LONG VARCHAR + + + java.lang.Boolean + BIT + BOOLEAN + + + java.lang.Byte + TINYINT + TINYINT + + + java.lang.Short + SMALLINT + SMALLINT + + + java.lang.Integer + INTEGER + INTEGER + + + java.lang.Long + BIGINT + LONGINT + + + java.lang.Float + REAL + REAL + + + java.lang.Double + DOUBLE + DOUBLE PRECISION + + + java.lang.Character + CHAR + CHAR + + + java.lang.String + LONGVARCHAR + LONG VARCHAR + + + + java.sql.Date + DATE + DATE + + + java.sql.Time + TIME + TIME + + + java.sql.Timestamp + TIMESTAMP + TIMESTAMP + + + java.lang.Object + JAVA_OBJECT + LONG VARBINARY + + + + + + InformixDB + select ?1 from ?2 where ?3 order by ?4 for update + PRIMARY KEY (?2) CONSTRAINT ?1 + ALTER TABLE ?1 ADD CONSTRAINT FOREIGN KEY (?3) REFERENCES ?4 (?5) CONSTRAINT ?2 + t + _ + 32 + true + 1 + 0 + + + count + count(?1) + + + + java.lang.Character + CHAR + CHAR(1) + + + + java.lang.String + VARCHAR + VARCHAR(255,0) + + + + java.math.BigDecimal + NUMERIC + DECIMAL + + + + java.lang.Boolean + BIT + SMALLINT + + + + java.lang.Integer + INTEGER + INTEGER + + + + java.lang.Long + BIGINT + NUMERIC(18,0) + + + + java.lang.Float + REAL + FLOAT + + + + java.lang.Double + DOUBLE + DOUBLE PRECISION + + + + java.lang.Byte + TINYINT + SMALLINT + + + + java.lang.Short + SMALLINT + SMALLINT + + + + java.util.Date + TIMESTAMP + DATETIME YEAR TO FRACTION(3) + + + + java.sql.Date + DATE + DATE + + + + java.sql.Time + TIME + TIME + + + + java.sql.Timestamp + TIMESTAMP + DATETIME YEAR TO FRACTION(3) + + + + java.lang.Object + BLOB + BLOB + + + + + Mimer SQL + + CONSTRAINT ?1 PRIMARY KEY (?2) + ALTER TABLE ?1 ADD CONSTRAINT ?2 FOREIGN KEY (?3) REFERENCES ?4 (?5) + t + _ + 32 + true + 1 + 0 + + + java.lang.Boolean + BIT + SMALLINT + + + + java.lang.Byte + TINYINT + SMALLINT + + + + java.lang.Short + SMALLINT + SMALLINT + + + + java.lang.Integer + INTEGER + INTEGER + + + + java.lang.Long + BIGINT + BIGINT + + + + java.lang.Float + REAL + REAL + + + + java.lang.Double + DOUBLE + DOUBLE PRECISION + + + + java.lang.Character + CHAR + CHAR + + + + java.lang.String + VARCHAR + VARCHAR(5000) + + + + java.sql.Date + DATE + DATE + + + + java.sql.Time + TIME + TIME + + + + java.sql.Timestamp + TIMESTAMP + TIMESTAMP + + + + java.lang.Object + JAVA_OBJECT + VARBINARY(5000) + + + + + + + + + + + jboss.jdbc:service=SQLExceptionProcessor + + + + + + SELECT CURRENT_TIMESTAMP + + + + + + + + TEST_SEQUENCE + + + + + %%t_seq + + + + + + + + + + + + + + + + + + + + + + + + + + + + UUIDKeyGeneratorFactory + + + + + + + + + SELECT CURRENT_TIMESTAMP + + + + + + + alias + alter + between + char + column + commit + create + date + default + delete + drop + file + from + grant + group + index + integer + join + number + on + order + primary + public + revoke + rollback + row + select + set + session + size + table + trigger + update + unique + user + varchar + view + + diff --git a/jboss/server/adempiere/conf/xmdesc/AttributePersistenceService-xmbean.xml b/jboss/server/adempiere/conf/xmdesc/AttributePersistenceService-xmbean.xml new file mode 100644 index 0000000000..5e5ba5935e --- /dev/null +++ b/jboss/server/adempiere/conf/xmdesc/AttributePersistenceService-xmbean.xml @@ -0,0 +1,107 @@ + + + + + + + + XMBean Attribute Persistence Service + + + + + org.jboss.system.pm.AttributePersistenceService + + + + Specifies whether to call destroy() on the AttributePersistenceManager implementation, upon service stop + ApmDestroyOnServiceStop + boolean + + + + + + + The actual AttributePersistenceManager implementation + AttributePersistenceManagerClass + java.lang.String + + + + + + + The XML configuration that is passed to the AttributePersistenceManager implementation + AttributePersistenceManagerConfig + org.w3c.dom.Element + + + + + + + The version tag to use for stored/loaded Attribute data + VersionTag + java.lang.String + + + + + + &defaultAttributes; + + + + Factory method returning the active AttributePersistenceManager implementation, for internal usage + apmCreate + org.jboss.mx.persistence.AttributePersistenceManager + + + + Delegated to the active APM returns true when a persisted image with this id exists + apmExists + + The id of the persisted attribute image + id + java.lang.String + + boolean + + + + Delegated to the active APM removes the specified persisted attribute image + apmRemove + + The id of the persisted attribute image + id + java.lang.String + + void + + + + Delegated to the active APM removes the persisted attribute images + apmRemoveAll + void + + + + Delegated to the active APM it returns a list with the ids of all persisted attribute images + apmListAll + [Ljava.lang.String; + + + + Delegated to the active APM it returns a single string with the ids of all persisted attribute images + apmListAllAsString + java.lang.String + + + &defaultOperations; + + \ No newline at end of file diff --git a/jboss/server/adempiere/conf/xmdesc/ClientUserTransaction-xmbean.xml b/jboss/server/adempiere/conf/xmdesc/ClientUserTransaction-xmbean.xml new file mode 100644 index 0000000000..881abd88df --- /dev/null +++ b/jboss/server/adempiere/conf/xmdesc/ClientUserTransaction-xmbean.xml @@ -0,0 +1,28 @@ + + + + + ClientUserTransaction Service. + org.jboss.tm.usertx.server.ClientUserTransactionService + &defaultAttributes; + + Set the name of the proxy factory service used for the UserTransactionSession + TxProxyName + javax.management.ObjectName + + + + Expose UserTransactionSession and UserTransactionSessionFactory interfaces via JMX to invokers. + invoke + + A pointer to the invocation object + invocation + org.jboss.invocation.Invocation + + java.lang.Object + + + &defaultOperations; + \ No newline at end of file diff --git a/jboss/server/adempiere/conf/xmdesc/JNDIView-xmbean.xml b/jboss/server/adempiere/conf/xmdesc/JNDIView-xmbean.xml new file mode 100644 index 0000000000..26d03d0219 --- /dev/null +++ b/jboss/server/adempiere/conf/xmdesc/JNDIView-xmbean.xml @@ -0,0 +1,28 @@ + + + + + JNDIView Service. List deployed application java:comp namespaces, + the java: namespace as well as the global InitialContext JNDI namespace. + + org.jboss.naming.JNDIView + &defaultAttributes; + + Output JNDI info as text + list + + If true, list the class of each object in addition to its name + verbose + boolean + + java.lang.String + + + Output JNDI info in XML format + listXML + java.lang.String + + &defaultOperations; + \ No newline at end of file diff --git a/jboss/server/adempiere/conf/xmdesc/Log4jService-xmbean.xml b/jboss/server/adempiere/conf/xmdesc/Log4jService-xmbean.xml new file mode 100644 index 0000000000..a81ded2810 --- /dev/null +++ b/jboss/server/adempiere/conf/xmdesc/Log4jService-xmbean.xml @@ -0,0 +1,110 @@ + + +]> + + + + This MBean allows to get and set Log4j specific options. +See also resource:log4j.xml + + org.jboss.logging.Log4jService + + The default constructor + Log4jService + + + &defaultAttributes; + + + The URL of the log4j.xml config file. + ConfigurationURL + java.net.URL + + + Should data writen to standard error be caught and integrated into the log output. + CatchSystemErr + boolean + + + Should data writen to standard output be caught and integrated into the log output. + CatchSystemOut + boolean + + + Sets the log4j quite mode. For log4j 1.2.8 this must stay on true. + Log4jQuietMode + boolean + + + The time in seconds between checking for new config. + RefreshPeriod + int + + + + Displays the log level of a given logger. + getLoggerLevel + + The name of the logger to display. + logger + java.lang.String + + java.lang.String + + + Sets the log level for a given logger. + setLoggerLevel + + The name of the logger to set. + logger + java.lang.String + + + The log level to set. + level + java.lang.String + + void + + + Sets the levels of each logger specified by the given comma + seperated list of logger names. + setLoggerLevels + + The list of loggers + loggers + java.lang.String + + + The log level to set + level + java.lang.String + + void + + + Force the logging system to reconfigure. + reconfigure + void + + + Force the logging system to reconfigure with the given URL. + reconfigure + + The url for the new configuration. + url + java.lang.String + + void + + + + &defaultOperations; + + \ No newline at end of file diff --git a/jboss/server/adempiere/conf/xmdesc/NamingService-xmbean.xml b/jboss/server/adempiere/conf/xmdesc/NamingService-xmbean.xml new file mode 100644 index 0000000000..0650ed7142 --- /dev/null +++ b/jboss/server/adempiere/conf/xmdesc/NamingService-xmbean.xml @@ -0,0 +1,129 @@ + + +]> + + + + The standard JBoss JNDI naming server with a custom + ProxyFactoryInterceptor interceptor that does replacement of NamingContext + objects with the detached invoker proxy. + + + + + + + + + + + + org.jboss.naming.NamingService + + + The default constructor + NamingService + + + &defaultAttributes; + + + MethodMap + java.util.Map + + + The call by value mode. true if all lookups are unmarshalled using + the caller's TCL, false if in VM lookups return the value by reference. + CallByValue + boolean + + + The bind address of the bootstrap lookup socket. + BindAddress + java.lang.String + + + The listening port for the bootstrap JNP service. Set this to -1 + to run the NamingService without the JNP invoker listening port. + Port + int + + + The bootstrap socket backlog count. + Backlog + int + + + The bootstrap socket javax.net.ServerSocketFactory + JNPServerSocketFactory + java.lang.String + + + + The port of the RMI naming service, 0 == anonymous. This + is only used if an explicit InvokerProxyFactory has not been set. + RmiPort + int + + + The RMI service bind address. Empty == all addresses + RmiBindAddress + java.lang.String + + + The RMI service java.rmi.server.RMIClientSocketFactory + ClientSocketFactory + java.lang.String + + + The RMI service java.rmi.server.RMIServerSocketFactory + ServerSocketFactory + java.lang.String + + + + InstallGlobalService + boolean + + + The thread pool service used to control the bootstrap lookups + LookupPool + org.jboss.util.threadpool.BasicThreadPoolMBean + + + The detached invoker proxy factory to use for the naming + service transport. + InvokerProxyFactory + org.jboss.invocation.jrmp.server.JRMPProxyFactoryMBean + + + + + The generic invocation operation used by detached invokers + to route requests to the service + + invoke + + The Naming interface method invocation encapsulation + + invocation + org.jboss.invocation.Invocation + + java.lang.Object + + + &defaultOperations; + + diff --git a/jboss/server/adempiere/conf/xmdesc/TransactionManagerService-xmbean.xml b/jboss/server/adempiere/conf/xmdesc/TransactionManagerService-xmbean.xml new file mode 100644 index 0000000000..f259cef077 --- /dev/null +++ b/jboss/server/adempiere/conf/xmdesc/TransactionManagerService-xmbean.xml @@ -0,0 +1,84 @@ + + + + + + TransactionManager Service. + org.jboss.tm.TransactionManagerService + &defaultAttributes; + + Should be set to true for transaction demarcation over IIOP + GlobalIdsEnabled + boolean + + + Whether to interrupt threads at transaction timeout + InterruptThreads + boolean + + + The transaction timeout in seconds + TransactionTimeout + int + + + Name of the xidFactory + XidFactory + javax.management.ObjectName + + + Returns the TransactionManager managed by this service + TransactionManager + javax.transaction.TransactionManager + + + Returns the XATerminator managed by this service + XATerminator + org.jboss.tm.JBossXATerminator + + + Counts the number of active transactions + TransactionCount + long + + + Counts the number of commited transactions + CommitCount + long + + + Counts the number of transactions that have been rolled back + RollbackCount + long + + + + Register a XAException Formatter + registerXAExceptionFormatter + + The class of the formatter + clazz + java.lang.Class + + + A XAExceptionFromatter value + formatter + org.jboss.tm.XAExceptionFormatter + + void + + + Unregister a XAException Formatter + unregisterXAExceptionFormatter + + The class of the formatter + clazz + java.lang.Class + + void + + + &defaultOperations; + \ No newline at end of file diff --git a/jboss/server/adempiere/conf/xmdesc/org.jboss.deployment.JARDeployer-xmbean.xml b/jboss/server/adempiere/conf/xmdesc/org.jboss.deployment.JARDeployer-xmbean.xml new file mode 100644 index 0000000000..a7386ad40c --- /dev/null +++ b/jboss/server/adempiere/conf/xmdesc/org.jboss.deployment.JARDeployer-xmbean.xml @@ -0,0 +1,102 @@ + + + + + The JARDeployer adds archives that do not contain META-INF/*.xml + files. The pattern of xml files that correspond to deployment descriptors + can be specified using the DescriptorNames attribute. + + org.jboss.deployment.JARDeployer + + The list of suffixes that define deployment descriptors which + if found in an archive META-INF directory indicate non-jar deployments + which should be ignored by the JARDeployer. + DescriptorNames + [Ljava.lang.String; + + + + + + + + &defaultAttributes; + + + Get the associated service DeploymentInfo if found, null otherwise + getService + + serviceName + javax.management.ObjectName + + org.jboss.deployment.DeploymentInfo + + + This method is called by MainDeployer to determine which + deployer is suitable for a DeploymentInfo. + accepts + + di + org.jboss.deployment.DeploymentInfo + + boolean + + + The init method lets the deployer set a few properties of the + DeploymentInfo, such as the watch url. + init + + di + org.jboss.deployment.DeploymentInfo + + void + + + Set up the components of the deployment that do not refer to + other components. + create + + di + org.jboss.deployment.DeploymentInfo + + void + + + The start method starts all the mbeans in this DeploymentInfo. + start + + di + org.jboss.deployment.DeploymentInfo + + void + + + The stop method invokes stop on the mbeans associated with + the deployment in reverse order relative to start. + stop + + di + org.jboss.deployment.DeploymentInfo + + void + + + The destroy method invokes destroy on the mbeans associated + with the deployment in reverse order relative to create. + destroy + + di + org.jboss.deployment.DeploymentInfo + + void + + + &defaultOperations; + diff --git a/jboss/server/adempiere/conf/xmdesc/org.jboss.deployment.MainDeployer-xmbean.xml b/jboss/server/adempiere/conf/xmdesc/org.jboss.deployment.MainDeployer-xmbean.xml new file mode 100644 index 0000000000..99ccff46dc --- /dev/null +++ b/jboss/server/adempiere/conf/xmdesc/org.jboss.deployment.MainDeployer-xmbean.xml @@ -0,0 +1,235 @@ + + + + + The Main deployer is the service which acts as the entry + point for the deployment/undeployment requests. + + org.jboss.deployment.MainDeployer + + + + CopyFiles + boolean + + + + + + + ServiceController + javax.management.ObjectName + + + + ServiceName + javax.management.ObjectName + + + + SuffixOrder + [Ljava.lang.String; + + + + EnhancedSuffixOrder + [Ljava.lang.String; + + + + + TempDir + java.io.File + + + + TempDirString + java.lang.String + + &defaultAttributes; + + + + addDeployer + + deployer + org.jboss.deployment.SubDeployer + + void + + + + removeDeployer + + deployer + org.jboss.deployment.SubDeployer + + void + + + + deploy + + url + java.lang.String + + void + + + deploy + + url + java.net.URL + + void + + + + deploy + + sdi + org.jboss.deployment.DeploymentInfo + + void + + + + getDeployment + + url + java.net.URL + + org.jboss.deployment.DeploymentInfo + + + + getWatchUrl + + url + java.net.URL + + java.net.URL + + + + isDeployed + + url + java.net.URL + + boolean + + + + isDeployed + + url + java.lang.String + + boolean + + + + listDeployed + java.util.Collection + + + + listDeployedAsString + java.lang.String + + + + listDeployedModules + java.util.Collection + + + + listDeployers + java.util.Collection + + + Check the current deployment states and generate a + IncompleteDeploymentException if there are mbeans waiting for depedencies. + + checkIncompleteDeployments + void + + + + listIncompletelyDeployed + java.util.Collection + + + + listWaitingForDeployer + java.util.Collection + + + + redeploy + + url + java.lang.String + + void + + + + redeploy + + url + java.net.URL + + void + + + + redeploy + + sdi + org.jboss.deployment.DeploymentInfo + + void + + + + shutdown + void + + + + undeploy + + url + java.lang.String + + void + + + + undeploy + + url + java.net.URL + + void + + + + undeploy + + sdi + org.jboss.deployment.DeploymentInfo + + void + + + &defaultOperations; + \ No newline at end of file diff --git a/jboss/server/adempiere/conf/xmdesc/org.jboss.deployment.SARDeployer-xmbean.xml b/jboss/server/adempiere/conf/xmdesc/org.jboss.deployment.SARDeployer-xmbean.xml new file mode 100644 index 0000000000..618ab22112 --- /dev/null +++ b/jboss/server/adempiere/conf/xmdesc/org.jboss.deployment.SARDeployer-xmbean.xml @@ -0,0 +1,107 @@ + + + + + The SAR deployer handles the JBoss service archive deployments. + + org.jboss.deployment.SARDeployer + + + Get the JMX ObjectName of the service that provides the SubDeployer + ServiceName + javax.management.ObjectName + + + Get an array of suffixes of interest to this subdeployer + Suffixes + [Ljava.lang.String; + + + Get the relative order of the specified suffixes + RelativeOrder + int + + + A flag passed to the JAXP DocumentBuilderFactory setNamespaceAware method + UseNamespaceAwareParser + boolean + + + + + + &defaultAttributes; + + + Get the associated service DeploymentInfo if found, null otherwise + getService + + serviceName + javax.management.ObjectName + + org.jboss.deployment.DeploymentInfo + + + This method is called by MainDeployer to determine which + deployer is suitable for a DeploymentInfo. + accepts + + di + org.jboss.deployment.DeploymentInfo + + boolean + + + The init method lets the deployer set a few properties of the + DeploymentInfo, such as the watch url. + init + + di + org.jboss.deployment.DeploymentInfo + + void + + + Set up the components of the deployment that do not refer to + other components. + create + + di + org.jboss.deployment.DeploymentInfo + + void + + + The start method starts all the mbeans in this DeploymentInfo. + start + + di + org.jboss.deployment.DeploymentInfo + + void + + + The stop method invokes stop on the mbeans associated with + the deployment in reverse order relative to start. + stop + + di + org.jboss.deployment.DeploymentInfo + + void + + + The destroy method invokes destroy on the mbeans associated + with the deployment in reverse order relative to create. + destroy + + di + org.jboss.deployment.DeploymentInfo + + void + + + &defaultOperations; + \ No newline at end of file diff --git a/jboss/server/adempiere/deploy/cache-invalidation-service.xml b/jboss/server/adempiere/deploy/cache-invalidation-service.xml new file mode 100644 index 0000000000..08b9541860 --- /dev/null +++ b/jboss/server/adempiere/deploy/cache-invalidation-service.xml @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/jboss/server/adempiere/deploy/client-deployer-service.xml b/jboss/server/adempiere/deploy/client-deployer-service.xml new file mode 100644 index 0000000000..b982ae29ce --- /dev/null +++ b/jboss/server/adempiere/deploy/client-deployer-service.xml @@ -0,0 +1,47 @@ + + + + + + + + diff --git a/jboss/server/adempiere/deploy/ear-deployer.xml b/jboss/server/adempiere/deploy/ear-deployer.xml new file mode 100644 index 0000000000..2f3e836bb0 --- /dev/null +++ b/jboss/server/adempiere/deploy/ear-deployer.xml @@ -0,0 +1,19 @@ + + + + + + + + false + + false + + diff --git a/jboss/server/adempiere/deploy/ejb-deployer.xml b/jboss/server/adempiere/deploy/ejb-deployer.xml new file mode 100644 index 0000000000..f8bd8b444b --- /dev/null +++ b/jboss/server/adempiere/deploy/ejb-deployer.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + jboss.ejb:service=EJBTimerService,retryPolicy=fixedDelay + jboss.ejb:service=EJBTimerService,persistencePolicy=database + org.jboss.ejb.txtimer.BigIntegerTimerIdGenerator + org.jboss.ejb.txtimer.TimedObjectInvokerImpl + + + + + 100 + + + + + + + + + + + + + + + true + + false + + true + + true + + + jboss:service=TransactionManager + + jboss:service=WebService + + + diff --git a/jboss/server/adempiere/deploy/http-invoker.sar/META-INF/jboss-serviceTemplate.xml b/jboss/server/adempiere/deploy/http-invoker.sar/META-INF/jboss-serviceTemplate.xml new file mode 100644 index 0000000000..3eb00233bf --- /dev/null +++ b/jboss/server/adempiere/deploy/http-invoker.sar/META-INF/jboss-serviceTemplate.xml @@ -0,0 +1,61 @@ + + + + + + + + + + http:// + :@ADEMPIERE_WEB_PORT@/invoker/EJBInvokerServlet + true + + + + + + jboss:service=Naming + + http:// + :@ADEMPIERE_WEB_PORT@/invoker/JMXInvokerServlet + true + org.jnp.interfaces.Naming + + + + org.jboss.proxy.ClientMethodInterceptor + org.jboss.proxy.SecurityInterceptor + org.jboss.naming.interceptors.ExceptionInterceptor + org.jboss.invocation.InvokerInterceptor + + + + + + + jboss:service=Naming + http:// + :@ADEMPIERE_WEB_PORT@/invoker/readonly/JMXInvokerServlet + true + org.jnp.interfaces.Naming + + + + org.jboss.proxy.ClientMethodInterceptor + org.jboss.proxy.SecurityInterceptor + org.jboss.naming.interceptors.ExceptionInterceptor + org.jboss.invocation.InvokerInterceptor + + + + diff --git a/jboss/server/adempiere/deploy/http-invoker.sar/invoker.war/WEB-INF/classes/org/jboss/invocation/http/servlet/InvokerServlet$GetCredentialAction.class b/jboss/server/adempiere/deploy/http-invoker.sar/invoker.war/WEB-INF/classes/org/jboss/invocation/http/servlet/InvokerServlet$GetCredentialAction.class new file mode 100644 index 0000000000..00e5e297dc Binary files /dev/null and b/jboss/server/adempiere/deploy/http-invoker.sar/invoker.war/WEB-INF/classes/org/jboss/invocation/http/servlet/InvokerServlet$GetCredentialAction.class differ diff --git a/jboss/server/adempiere/deploy/http-invoker.sar/invoker.war/WEB-INF/classes/org/jboss/invocation/http/servlet/InvokerServlet$GetPrincipalAction.class b/jboss/server/adempiere/deploy/http-invoker.sar/invoker.war/WEB-INF/classes/org/jboss/invocation/http/servlet/InvokerServlet$GetPrincipalAction.class new file mode 100644 index 0000000000..981d32e665 Binary files /dev/null and b/jboss/server/adempiere/deploy/http-invoker.sar/invoker.war/WEB-INF/classes/org/jboss/invocation/http/servlet/InvokerServlet$GetPrincipalAction.class differ diff --git a/jboss/server/adempiere/deploy/http-invoker.sar/invoker.war/WEB-INF/classes/org/jboss/invocation/http/servlet/InvokerServlet.class b/jboss/server/adempiere/deploy/http-invoker.sar/invoker.war/WEB-INF/classes/org/jboss/invocation/http/servlet/InvokerServlet.class new file mode 100644 index 0000000000..304e1551b3 Binary files /dev/null and b/jboss/server/adempiere/deploy/http-invoker.sar/invoker.war/WEB-INF/classes/org/jboss/invocation/http/servlet/InvokerServlet.class differ diff --git a/jboss/server/adempiere/deploy/http-invoker.sar/invoker.war/WEB-INF/classes/org/jboss/invocation/http/servlet/NamingFactoryServlet.class b/jboss/server/adempiere/deploy/http-invoker.sar/invoker.war/WEB-INF/classes/org/jboss/invocation/http/servlet/NamingFactoryServlet.class new file mode 100644 index 0000000000..61d65f82c3 Binary files /dev/null and b/jboss/server/adempiere/deploy/http-invoker.sar/invoker.war/WEB-INF/classes/org/jboss/invocation/http/servlet/NamingFactoryServlet.class differ diff --git a/jboss/server/adempiere/deploy/http-invoker.sar/invoker.war/WEB-INF/classes/org/jboss/invocation/http/servlet/ReadOnlyAccessFilter.class b/jboss/server/adempiere/deploy/http-invoker.sar/invoker.war/WEB-INF/classes/org/jboss/invocation/http/servlet/ReadOnlyAccessFilter.class new file mode 100644 index 0000000000..e89a6f2dd6 Binary files /dev/null and b/jboss/server/adempiere/deploy/http-invoker.sar/invoker.war/WEB-INF/classes/org/jboss/invocation/http/servlet/ReadOnlyAccessFilter.class differ diff --git a/jboss/server/adempiere/deploy/http-invoker.sar/invoker.war/WEB-INF/jboss-web.xml b/jboss/server/adempiere/deploy/http-invoker.sar/invoker.war/WEB-INF/jboss-web.xml new file mode 100644 index 0000000000..c61b6e17b6 --- /dev/null +++ b/jboss/server/adempiere/deploy/http-invoker.sar/invoker.war/WEB-INF/jboss-web.xml @@ -0,0 +1,3 @@ + + java:/jaas/jmx-console + diff --git a/jboss/server/adempiere/deploy/http-invoker.sar/invoker.war/WEB-INF/web.xml b/jboss/server/adempiere/deploy/http-invoker.sar/invoker.war/WEB-INF/web.xml new file mode 100644 index 0000000000..edf4c6ccae --- /dev/null +++ b/jboss/server/adempiere/deploy/http-invoker.sar/invoker.war/WEB-INF/web.xml @@ -0,0 +1,174 @@ + + + + + + + ReadOnlyAccessFilter + org.jboss.invocation.http.servlet.ReadOnlyAccessFilter + + readOnlyContext + readonly + The top level JNDI context the filter will enforce + read-only access on. If specified only Context.lookup operations + will be allowed on this context. Another other operations or lookups + on any other context will fail. Do not associate this filter with the + JMXInvokerServlets if you want unrestricted access. + + + + invokerName + jboss:service=Naming + The JMX ObjectName of the naming service mbean + + + + + + ReadOnlyAccessFilter + /readonly/* + + + + + EJBInvokerServlet + The EJBInvokerServlet receives posts containing serlized + MarshalledInvocation objects that are routed to the EJB invoker given by + the invokerName init-param. The return content is a serialized + MarshalledValue containg the return value of the inovocation, or any + exception that may have been thrown. + + org.jboss.invocation.http.servlet.InvokerServlet + + invokerName + jboss:service=invoker,type=http + The RMI/HTTP EJB compatible invoker + + 1 + + + JMXInvokerServlet + The JMXInvokerServlet receives posts containing serlized + MarshalledInvocation objects that are routed to the invoker given by + the the MBean whose object name hash is specified by the + invocation.getObjectName() value. The return content is a serialized + MarshalledValue containg the return value of the inovocation, or any + exception that may have been thrown. + + org.jboss.invocation.http.servlet.InvokerServlet + 1 + + + + JNDIFactory + A servlet that exposes the JBoss JNDI Naming service stub + through http. The return content is a serialized + MarshalledValue containg the org.jnp.interfaces.Naming stub. This + configuration handles requests for the standard JNDI naming service. + + org.jboss.invocation.http.servlet.NamingFactoryServlet + + namingProxyMBean + jboss:service=invoker,type=http,target=Naming + + + proxyAttribute + Proxy + + 2 + + + + ReadOnlyJNDIFactory + A servlet that exposes the JBoss JNDI Naming service stub + through http, but only for a single read-only context. The return content + is a serialized MarshalledValue containg the org.jnp.interfaces.Naming + stub. + + org.jboss.invocation.http.servlet.NamingFactoryServlet + + namingProxyMBean + jboss:service=invoker,type=http,target=Naming,readonly=true + + + proxyAttribute + Proxy + + 2 + + + + + JNDIFactory + /JNDIFactory/* + + + + ReadOnlyJNDIFactory + /ReadOnlyJNDIFactory/* + + + EJBInvokerServlet + /EJBInvokerServlet/* + + + JMXInvokerServlet + /JMXInvokerServlet/* + + + + JMXInvokerServlet + /readonly/JMXInvokerServlet/* + + + + + JNDIFactory + /restricted/JNDIFactory/* + + + JMXInvokerServlet + /restricted/JMXInvokerServlet/* + + + + + + HttpInvokers + An example security config that only allows users with the + role HttpInvoker to access the HTTP invoker servlets + + /restricted/* + GET + POST + + + HttpInvoker + + + + BASIC + JBoss HTTP Invoker + + + + HttpInvoker + + diff --git a/jboss/server/adempiere/deploy/jbossjca-service.xml b/jboss/server/adempiere/deploy/jbossjca-service.xml new file mode 100644 index 0000000000..ede4aae514 --- /dev/null +++ b/jboss/server/adempiere/deploy/jbossjca-service.xml @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + WorkManager + + 1024 + + 100 + + 60000 + + + + jboss.jca:service=WorkManagerThreadPool + jboss:service=TransactionManager + + + + jboss.jca:service=WorkManager + jboss:service=TransactionManager + + + + -ds.xml + stylesheets/ConnectionFactoryTemplate.xsl + + + + + jboss:service=TransactionManager + + + false + + + true + + + + diff --git a/jboss/server/adempiere/deploy/jbossweb-tomcat55.sar/META-INF/jboss-service.xml b/jboss/server/adempiere/deploy/jbossweb-tomcat55.sar/META-INF/jboss-service.xml new file mode 100644 index 0000000000..cb531d73bf --- /dev/null +++ b/jboss/server/adempiere/deploy/jbossweb-tomcat55.sar/META-INF/jboss-service.xml @@ -0,0 +1,138 @@ + + + + + + + + + java:/jaas/other + + + false + + false + + org.apache.commons.logging + + true + + + org.jboss.web.tomcat.tc5.session.JBossCacheManager + + + + + + + + + + instant + 2000 + + true + + + false + + jboss.web + + + jboss.security:service=JaasSecurityManager + + + + + jboss:service=TransactionManager + + + + + diff --git a/jboss/server/adempiere/deploy/jbossweb-tomcat55.sar/ROOT.war/WEB-INF/web.xml b/jboss/server/adempiere/deploy/jbossweb-tomcat55.sar/ROOT.war/WEB-INF/web.xml new file mode 100644 index 0000000000..822a69b46d --- /dev/null +++ b/jboss/server/adempiere/deploy/jbossweb-tomcat55.sar/ROOT.war/WEB-INF/web.xml @@ -0,0 +1,20 @@ + + + + + + Welcome to JBoss + + Welcome to JBoss + + + Status Servlet + org.jboss.web.tomcat.tc5.StatusServlet + + + Status Servlet + /status + + diff --git a/jboss/server/adempiere/deploy/jbossweb-tomcat55.sar/ROOT.war/index.html b/jboss/server/adempiere/deploy/jbossweb-tomcat55.sar/ROOT.war/index.html new file mode 100644 index 0000000000..e0db9cdd72 --- /dev/null +++ b/jboss/server/adempiere/deploy/jbossweb-tomcat55.sar/ROOT.war/index.html @@ -0,0 +1,47 @@ + + + + +Welcome to JBoss™ + + + + + + + + + + + + + +

JBoss Online Resources

+ + + +

JBoss Management

+ + + + + + + + diff --git a/jboss/server/adempiere/deploy/jbossweb-tomcat55.sar/ROOT.war/jboss.css b/jboss/server/adempiere/deploy/jbossweb-tomcat55.sar/ROOT.war/jboss.css new file mode 100644 index 0000000000..53d63132a7 --- /dev/null +++ b/jboss/server/adempiere/deploy/jbossweb-tomcat55.sar/ROOT.war/jboss.css @@ -0,0 +1,145 @@ +body { + margin: 13px 0px 10px 0px; + background-color: #ffffff; + font-size: 10px; + font-family: verdana, arial, "sans-serif"; + color: #606060; + } +img { + border: 0px; + } +#header { + background-color: #FF7A22; + background-image: url("header_bg.jpg"); + background-repeat: no-repeat; + background-position: 226px 0px; + width: 100%; + height: 80px; + } +#header #banner { + float: right; + margin: 8px 5px 0px 0px; + } +#logo { + position: absolute; + top: 4px; + left: 4px; + z-index: 200; +} +#navigation_bar { + background-color: #f0f0f0; + border-bottom: 1px dotted #999999; + height: 20px; + } +#items { + font-size: 12px; + width: 600px; + margin: 5px 5px 5px 170px; + position: relative; + z-index: 300; + } +#items .item { + margin-right: 10px; + } +.side_block { + margin: 15px 5px 10px 5px; + background-color: #fbfbfb; + border: 1px solid #f0f0f0; + } +.side_block h3 { + font-size: 11px; + font-weight: 100; + width: 100%; + margin: 0px 0px 5px 0px; + padding: 4px 4px 4px 10x; + background-color: #f0f0f0; + } +.side_block h4 { + font-size: 11px; + color: #FF7A22; + font-weight: bold; + margin: 10px 5px 4px 5px; + } +.side_block p { + margin: 5px 5px 3px 5px; + } +.side_block form { + margin: 0px 0px 0px 5px; + } +.side_block #login { + font-size: 9px; + } +.side_block p img { + text-align: center; + } +#content { + width: 90%; + margin: 10px auto; + } +#left { + float: left; + width: 14%; + } +#right { + float: right; + width: 14%; + } +.content_block { + text-align: justify; + border: 1px solid #999999; + margin: 5px; + width: 31%; + float: left; + } +.content_block p { + margin: 0px 5px 3px 5px; + } +.content_block h3 { + font-size: 11px; + font-weight: bold; + color: #000000; + margin: 0px 0px 5px 0px; + padding: 4px 4px 4px 4x; + text-align: center; + background-color: #f0f0f0; + border-bottom: 1px solid #999999 + } +.content_block h4 { + font-size: 11px; + color: #FF7A22; + text-align: left; + font-weight: bold; + margin: 10px 5px 4px 5px; + } +#footer { + clear: both; + border-top: 1px dotted #999999; + } +#credits { + background-color: #f0f0f0; + padding: 5px; + text-align: center; + } +#footer_bar { + height: 20px; + width: 100%; + background-color: #FF7A22; + } +.hide { + display: none; + } +.spacer { + clear: both; + } +.spacer hr { + display: none; + } +.center { + text-align: center; + } +#youcandoit { + background-image: url("youcandoit.jpg"); + background-repeat: repeat-x; + height: 165px; + margin: 0px 30px 0px 30px; + } diff --git a/jboss/server/adempiere/deploy/jbossweb-tomcat55.sar/ROOT.war/logo.gif b/jboss/server/adempiere/deploy/jbossweb-tomcat55.sar/ROOT.war/logo.gif new file mode 100644 index 0000000000..724660296c Binary files /dev/null and b/jboss/server/adempiere/deploy/jbossweb-tomcat55.sar/ROOT.war/logo.gif differ diff --git a/jboss/server/adempiere/deploy/jbossweb-tomcat55.sar/ROOT.war/xform.xsl b/jboss/server/adempiere/deploy/jbossweb-tomcat55.sar/ROOT.war/xform.xsl new file mode 100644 index 0000000000..7a68ce6e41 --- /dev/null +++ b/jboss/server/adempiere/deploy/jbossweb-tomcat55.sar/ROOT.war/xform.xsl @@ -0,0 +1,96 @@ + + + + + + + + + + + Tomcat Status + + + +
Tomcat Status
+ + + + + +
+ + + + + + + + + + + + +
JVM:free: total: max:

+
+ + + Connector --
+ + + + +
+ + + + + + + + + + +
threadInfo maxThreads: minSpareThreads: maxSpareThreads: currentThreadCount: currentThreadsBusy:

+
+ + + + + + + + + + + +
requestInfo maxTime: processingTime: requestCount: errorCount: bytesReceived: bytesSent:

+
+ + + + + + +
StageTimeB SentB RecvClientVHostRequest

+
+ + + + + + + + + + ? + + + +
diff --git a/jboss/server/adempiere/deploy/jbossweb-tomcat55.sar/conf/web.xml b/jboss/server/adempiere/deploy/jbossweb-tomcat55.sar/conf/web.xml new file mode 100644 index 0000000000..5111e9c0bd --- /dev/null +++ b/jboss/server/adempiere/deploy/jbossweb-tomcat55.sar/conf/web.xml @@ -0,0 +1,984 @@ + + + + + + + + + + + + + + + + CommonHeadersFilter + org.jboss.web.tomcat.filters.ReplyHeaderFilter + + X-Powered-By + Servlet 2.4; JBoss-4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)/Tomcat-5.5 + + + + + CommonHeadersFilter + /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + default + org.apache.catalina.servlets.DefaultServlet + + debug + 0 + + + listings + true + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + jsp + org.apache.jasper.servlet.JspServlet + + fork + false + + + xpoweredBy + false + + + + engineOptionsClass + org.jboss.web.tomcat.tc5.jasper.JspServletOptions + + + + MyFaces tlds + tagLibJar0 + jsf-libs/myfaces-impl.jar + + + 3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + default + / + + + + + + + + jsp + *.jsp + + + + jsp + *.jspx + + + + + + + + + + + + + + + + 30 + + + + + + + + + + + + abs + audio/x-mpeg + + + ai + application/postscript + + + aif + audio/x-aiff + + + aifc + audio/x-aiff + + + aiff + audio/x-aiff + + + aim + application/x-aim + + + art + image/x-jg + + + asf + video/x-ms-asf + + + asx + video/x-ms-asf + + + au + audio/basic + + + avi + video/x-msvideo + + + avx + video/x-rad-screenplay + + + bcpio + application/x-bcpio + + + bin + application/octet-stream + + + bmp + image/bmp + + + body + text/html + + + cdf + application/x-cdf + + + cer + application/x-x509-ca-cert + + + class + application/java + + + cpio + application/x-cpio + + + csh + application/x-csh + + + css + text/css + + + dib + image/bmp + + + doc + application/msword + + + dtd + text/plain + + + dv + video/x-dv + + + dvi + application/x-dvi + + + eps + application/postscript + + + etx + text/x-setext + + + exe + application/octet-stream + + + gif + image/gif + + + gtar + application/x-gtar + + + gz + application/x-gzip + + + hdf + application/x-hdf + + + hqx + application/mac-binhex40 + + + htc + text/x-component + + + htm + text/html + + + html + text/html + + + hqx + application/mac-binhex40 + + + ief + image/ief + + + jad + text/vnd.sun.j2me.app-descriptor + + + jar + application/java-archive + + + java + text/plain + + + jnlp + application/x-java-jnlp-file + + + jpe + image/jpeg + + + jpeg + image/jpeg + + + jpg + image/jpeg + + + js + text/javascript + + + jsf + text/plain + + + jspf + text/plain + + + kar + audio/x-midi + + + latex + application/x-latex + + + m3u + audio/x-mpegurl + + + mac + image/x-macpaint + + + man + application/x-troff-man + + + me + application/x-troff-me + + + mid + audio/x-midi + + + midi + audio/x-midi + + + mif + application/x-mif + + + mov + video/quicktime + + + movie + video/x-sgi-movie + + + mp1 + audio/x-mpeg + + + mp2 + audio/x-mpeg + + + mp3 + audio/x-mpeg + + + mpa + audio/x-mpeg + + + mpe + video/mpeg + + + mpeg + video/mpeg + + + mpega + audio/x-mpeg + + + mpg + video/mpeg + + + mpv2 + video/mpeg2 + + + ms + application/x-wais-source + + + nc + application/x-netcdf + + + oda + application/oda + + + pbm + image/x-portable-bitmap + + + pct + image/pict + + + pdf + application/pdf + + + pgm + image/x-portable-graymap + + + pic + image/pict + + + pict + image/pict + + + pls + audio/x-scpls + + + png + image/png + + + pnm + image/x-portable-anymap + + + pnt + image/x-macpaint + + + ppm + image/x-portable-pixmap + + + ppt + application/powerpoint + + + ps + application/postscript + + + psd + image/x-photoshop + + + qt + video/quicktime + + + qti + image/x-quicktime + + + qtif + image/x-quicktime + + + ras + image/x-cmu-raster + + + rgb + image/x-rgb + + + rm + application/vnd.rn-realmedia + + + roff + application/x-troff + + + rtf + application/rtf + + + rtx + text/richtext + + + sh + application/x-sh + + + shar + application/x-shar + + + smf + audio/x-midi + + + sit + application/x-stuffit + + + snd + audio/basic + + + src + application/x-wais-source + + + sv4cpio + application/x-sv4cpio + + + sv4crc + application/x-sv4crc + + + swf + application/x-shockwave-flash + + + t + application/x-troff + + + tar + application/x-tar + + + tcl + application/x-tcl + + + tex + application/x-tex + + + texi + application/x-texinfo + + + texinfo + application/x-texinfo + + + tif + image/tiff + + + tiff + image/tiff + + + tr + application/x-troff + + + tsv + text/tab-separated-values + + + txt + text/plain + + + ulw + audio/basic + + + ustar + application/x-ustar + + + xbm + image/x-xbitmap + + + xht + application/xhtml + + + xhtml + application/xhtml + + + xml + text/xml + + + xpm + image/x-xpixmap + + + xsl + text/xml + + + xwd + image/x-xwindowdump + + + wav + audio/x-wav + + + svg + image/svg + + + svgz + image/svg + + + vsd + application/x-visio + + + + wbmp + image/vnd.wap.wbmp + + + + wml + text/vnd.wap.wml + + + + wmlc + application/vnd.wap.wmlc + + + + wmls + text/vnd.wap.wmlscript + + + + wmlscriptc + application/vnd.wap.wmlscriptc + + + wrl + x-world/x-vrml + + + Z + application/x-compress + + + z + application/x-compress + + + zip + application/zip + + + + + + + + + + + + + + + + + index.html + index.htm + index.jsp + + + diff --git a/jboss/server/adempiere/deploy/jbossweb-tomcat55.sar/context.xml b/jboss/server/adempiere/deploy/jbossweb-tomcat55.sar/context.xml new file mode 100644 index 0000000000..8c6fb6c4e4 --- /dev/null +++ b/jboss/server/adempiere/deploy/jbossweb-tomcat55.sar/context.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/jboss/server/adempiere/deploy/jbossweb-tomcat55.sar/serverTemplate.xml b/jboss/server/adempiere/deploy/jbossweb-tomcat55.sar/serverTemplate.xml new file mode 100644 index 0000000000..ea7077b44d --- /dev/null +++ b/jboss/server/adempiere/deploy/jbossweb-tomcat55.sar/serverTemplate.xml @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jboss/server/adempiere/deploy/jmx-console.war/META-INF/MANIFEST.MF b/jboss/server/adempiere/deploy/jmx-console.war/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..d33b84725d --- /dev/null +++ b/jboss/server/adempiere/deploy/jmx-console.war/META-INF/MANIFEST.MF @@ -0,0 +1,4 @@ +Manifest-Version: 1.0 +Ant-Version: Apache Ant 1.6.2 +Created-By: 1.4.2_05-b04 (Sun Microsystems Inc.) + diff --git a/jboss/server/adempiere/deploy/jmx-console.war/WEB-INF/classes/org/jboss/jmx/adaptor/control/AddressPort.class b/jboss/server/adempiere/deploy/jmx-console.war/WEB-INF/classes/org/jboss/jmx/adaptor/control/AddressPort.class new file mode 100644 index 0000000000..f04674ffcf Binary files /dev/null and b/jboss/server/adempiere/deploy/jmx-console.war/WEB-INF/classes/org/jboss/jmx/adaptor/control/AddressPort.class differ diff --git a/jboss/server/adempiere/deploy/jmx-console.war/WEB-INF/classes/org/jboss/jmx/adaptor/control/AttrResultInfo.class b/jboss/server/adempiere/deploy/jmx-console.war/WEB-INF/classes/org/jboss/jmx/adaptor/control/AttrResultInfo.class new file mode 100644 index 0000000000..f28dcbdeea Binary files /dev/null and b/jboss/server/adempiere/deploy/jmx-console.war/WEB-INF/classes/org/jboss/jmx/adaptor/control/AttrResultInfo.class differ diff --git a/jboss/server/adempiere/deploy/jmx-console.war/WEB-INF/classes/org/jboss/jmx/adaptor/control/OpResultInfo.class b/jboss/server/adempiere/deploy/jmx-console.war/WEB-INF/classes/org/jboss/jmx/adaptor/control/OpResultInfo.class new file mode 100644 index 0000000000..7ecae15d49 Binary files /dev/null and b/jboss/server/adempiere/deploy/jmx-console.war/WEB-INF/classes/org/jboss/jmx/adaptor/control/OpResultInfo.class differ diff --git a/jboss/server/adempiere/deploy/jmx-console.war/WEB-INF/classes/org/jboss/jmx/adaptor/control/Server.class b/jboss/server/adempiere/deploy/jmx-console.war/WEB-INF/classes/org/jboss/jmx/adaptor/control/Server.class new file mode 100644 index 0000000000..28344ca8b9 Binary files /dev/null and b/jboss/server/adempiere/deploy/jmx-console.war/WEB-INF/classes/org/jboss/jmx/adaptor/control/Server.class differ diff --git a/jboss/server/adempiere/deploy/jmx-console.war/WEB-INF/classes/org/jboss/jmx/adaptor/html/ClusteredConsoleServlet.class b/jboss/server/adempiere/deploy/jmx-console.war/WEB-INF/classes/org/jboss/jmx/adaptor/html/ClusteredConsoleServlet.class new file mode 100644 index 0000000000..31135260aa Binary files /dev/null and b/jboss/server/adempiere/deploy/jmx-console.war/WEB-INF/classes/org/jboss/jmx/adaptor/html/ClusteredConsoleServlet.class differ diff --git a/jboss/server/adempiere/deploy/jmx-console.war/WEB-INF/classes/org/jboss/jmx/adaptor/html/HtmlAdaptorServlet.class b/jboss/server/adempiere/deploy/jmx-console.war/WEB-INF/classes/org/jboss/jmx/adaptor/html/HtmlAdaptorServlet.class new file mode 100644 index 0000000000..59715e4b66 Binary files /dev/null and b/jboss/server/adempiere/deploy/jmx-console.war/WEB-INF/classes/org/jboss/jmx/adaptor/html/HtmlAdaptorServlet.class differ diff --git a/jboss/server/adempiere/deploy/jmx-console.war/WEB-INF/classes/org/jboss/jmx/adaptor/model/DomainData.class b/jboss/server/adempiere/deploy/jmx-console.war/WEB-INF/classes/org/jboss/jmx/adaptor/model/DomainData.class new file mode 100644 index 0000000000..59a4691c9d Binary files /dev/null and b/jboss/server/adempiere/deploy/jmx-console.war/WEB-INF/classes/org/jboss/jmx/adaptor/model/DomainData.class differ diff --git a/jboss/server/adempiere/deploy/jmx-console.war/WEB-INF/classes/org/jboss/jmx/adaptor/model/MBeanData.class b/jboss/server/adempiere/deploy/jmx-console.war/WEB-INF/classes/org/jboss/jmx/adaptor/model/MBeanData.class new file mode 100644 index 0000000000..a2dca33131 Binary files /dev/null and b/jboss/server/adempiere/deploy/jmx-console.war/WEB-INF/classes/org/jboss/jmx/adaptor/model/MBeanData.class differ diff --git a/jboss/server/adempiere/deploy/jmx-console.war/WEB-INF/jboss-web.xml b/jboss/server/adempiere/deploy/jmx-console.war/WEB-INF/jboss-web.xml new file mode 100644 index 0000000000..38c3fdcb6d --- /dev/null +++ b/jboss/server/adempiere/deploy/jmx-console.war/WEB-INF/jboss-web.xml @@ -0,0 +1,7 @@ + + + diff --git a/jboss/server/adempiere/deploy/jmx-console.war/WEB-INF/web.xml b/jboss/server/adempiere/deploy/jmx-console.war/WEB-INF/web.xml new file mode 100644 index 0000000000..d876671c55 --- /dev/null +++ b/jboss/server/adempiere/deploy/jmx-console.war/WEB-INF/web.xml @@ -0,0 +1,89 @@ + + + + + The standard web descriptor for the html adaptor + + HtmlAdaptor + org.jboss.jmx.adaptor.html.HtmlAdaptorServlet + + + ClusteredConsoleServlet + org.jboss.jmx.adaptor.html.ClusteredConsoleServlet + + jgProps + UDP(ip_mcast=true;ip_ttl=16;loopback=false;mcast_addr=228.1.2.3;mcast_port=45566): +org.jboss.jmx.adaptor.control.FindView + + The JGroups protocol stack config + + + + DisplayMBeans + /displayMBeans.jsp + + + InspectMBean + /inspectMBean.jsp + + + DisplayOpResult + /displayOpResult.jsp + + + ClusterView + /cluster/clusterView.jsp + + + + HtmlAdaptor + /HtmlAdaptor + + + ClusteredConsoleServlet + /cluster/ClusteredConsole + + + DisplayMBeans + /DisplayMBeans + + + InspectMBean + /InspectMBean + + + DisplayOpResult + /DisplayOpResult + + + + + + BASIC + JBoss JMX Console + + + + JBossAdmin + + diff --git a/jboss/server/adempiere/deploy/jmx-console.war/cluster/bootstrap.html b/jboss/server/adempiere/deploy/jmx-console.war/cluster/bootstrap.html new file mode 100644 index 0000000000..afa00d7fc4 --- /dev/null +++ b/jboss/server/adempiere/deploy/jmx-console.war/cluster/bootstrap.html @@ -0,0 +1,69 @@ + + + Cluster View Bootstrap + + + + + + + + +

JBoss Cluster Bootstrap

+
+ +The cluster nodes to view need to be specified via some bootstrap mechanism. +This can be done using any of the following methods. + +

Bootstrap Using Naming Discovery

+This determines the cluster entry point by doing an HAJNDI naming service +discovery query. The query may be restricted to a given partition name by +specifying the name in the PartitionName field. +If not specified than the first partition to respond will be choosen. +
+ + + + + + + + + + + + + + + + + + +
PartitionName:
DiscoveryName:
DiscoveryPort:
DiscoveryTimeout:
+
+ +

Bootstrap Using a Hostname

+This determines the cluster entry point(s) by querying the JNDI service +on the indicated server for the available cluster paritition services. +Any cluster to which the server belongs will serve as an entry point for +determining the members of the cluster. To query the server hosting the +jmx-console application use "locahost" for the hostname. +
+ + + + + + + + + + + + +
Hostname:
Port:
+
+ + + + diff --git a/jboss/server/adempiere/deploy/jmx-console.war/cluster/clusterView.jsp b/jboss/server/adempiere/deploy/jmx-console.war/cluster/clusterView.jsp new file mode 100644 index 0000000000..0f27c92a96 --- /dev/null +++ b/jboss/server/adempiere/deploy/jmx-console.war/cluster/clusterView.jsp @@ -0,0 +1,44 @@ +<%@page contentType="text/html" + import="java.net.*,java.io.*" +%> + +Clustered JBoss Management Console + + + + + +
+

Cluster View Bootstrap

+Reinvoke Bootstrap + +

Loaded Clusters

+<% + String partition = (String) request.getAttribute("partition"); +%> +

<%= partition %>

+
    +<% + String[] partitionHosts = (String[]) request.getAttribute("partitionHosts"); + for(int h = 0; h < partitionHosts.length; h ++) + { + String host = partitionHosts[h]; + String hostname = ""; + + try + { + hostname = InetAddress.getByName(host).getHostName(); + } + catch(IOException e) {} + + String hostURL = "http://"+host+":8080/jmx-console//HtmlAdaptor?action=displayMBeans"; +%> +
  • <%= hostname %>
  • +<% + } +%> +
+
+ + + diff --git a/jboss/server/adempiere/deploy/jmx-console.war/cluster/index.html b/jboss/server/adempiere/deploy/jmx-console.war/cluster/index.html new file mode 100644 index 0000000000..c3da41e902 --- /dev/null +++ b/jboss/server/adempiere/deploy/jmx-console.war/cluster/index.html @@ -0,0 +1,6 @@ + + + + + A frames enabled browser is required for the cluster view + diff --git a/jboss/server/adempiere/deploy/jmx-console.war/displayMBeans.jsp b/jboss/server/adempiere/deploy/jmx-console.war/displayMBeans.jsp new file mode 100644 index 0000000000..1ace7654a0 --- /dev/null +++ b/jboss/server/adempiere/deploy/jmx-console.war/displayMBeans.jsp @@ -0,0 +1,59 @@ +<%@page contentType="text/html" + import="java.net.*,java.util.*,org.jboss.jmx.adaptor.model.*,java.io.*" +%> + + + JBoss JMX Management Console + + + + + +
+ + + + +
JBoss + <% + String hostname = ""; + try + { + hostname = InetAddress.getLocalHost().getHostName(); + } + catch(IOException e) {} + %> +

JMX Agent View <%= hostname %>

+
+
+
+ObjectName Filter (e.g. "jboss:*", "*:service=invoker,*") :"> +
+
+<% + Iterator mbeans = (Iterator) request.getAttribute("mbeans"); + while( mbeans.hasNext() ) + { + DomainData domainData = (DomainData) mbeans.next(); +%> +

<%= domainData.getDomainName() %>

+
    +<% + MBeanData[] data = domainData.getData(); + for(int d = 0; d < data.length; d ++) + { + String name = data[d].getObjectName().toString(); + String properties = data[d].getNameProperties(); +%> +
  • <%= URLDecoder.decode(properties) %>
  • +<% + } +%> +
+<% + } +%> + + + + diff --git a/jboss/server/adempiere/deploy/jmx-console.war/displayOpResult.jsp b/jboss/server/adempiere/deploy/jmx-console.war/displayOpResult.jsp new file mode 100644 index 0000000000..e7d483b8e3 --- /dev/null +++ b/jboss/server/adempiere/deploy/jmx-console.war/displayOpResult.jsp @@ -0,0 +1,74 @@ +<%@page contentType="text/html" + import="java.net.*" +%> + + + Operation Results + + + + + + + + +
+ + + + +
JBoss

JMX MBean Operation Result <%= opResultInfo.name%>()

+ + + + + + + + + + +
Back to Agent View + Back to MBean View + Reinvoke MBean Operation"); +%> +
+ + +
+ +<% + if( opResultInfo.result == null ) + { +%> + Operation completed successfully without a return value. +<% + } + else + { + String opResultString = opResultInfo.result.toString(); + boolean hasPreTag = opResultString.startsWith("
");
+      if( hasPreTag == false )
+         out.println("
");
+      out.println(opResultString);
+      if( hasPreTag == false )
+         out.println("
"); + } +%> + + + + + diff --git a/jboss/server/adempiere/deploy/jmx-console.war/images/logo.gif b/jboss/server/adempiere/deploy/jmx-console.war/images/logo.gif new file mode 100644 index 0000000000..724660296c Binary files /dev/null and b/jboss/server/adempiere/deploy/jmx-console.war/images/logo.gif differ diff --git a/jboss/server/adempiere/deploy/jmx-console.war/index.jsp b/jboss/server/adempiere/deploy/jmx-console.war/index.jsp new file mode 100644 index 0000000000..af65bc0633 --- /dev/null +++ b/jboss/server/adempiere/deploy/jmx-console.war/index.jsp @@ -0,0 +1,2 @@ +<%@page contentType="text/html"%> + diff --git a/jboss/server/adempiere/deploy/jmx-console.war/inspectMBean.jsp b/jboss/server/adempiere/deploy/jmx-console.war/inspectMBean.jsp new file mode 100644 index 0000000000..6d716829c9 --- /dev/null +++ b/jboss/server/adempiere/deploy/jmx-console.war/inspectMBean.jsp @@ -0,0 +1,309 @@ +<%@page contentType="text/html" + import="java.net.*,java.util.*,javax.management.*,javax.management.modelmbean.*, + org.jboss.jmx.adaptor.control.Server, + org.jboss.jmx.adaptor.control.AttrResultInfo, + org.jboss.jmx.adaptor.model.*, + java.lang.reflect.Array" +%> +<%! public String fixDescription(String desc) + { + if (desc == null || desc.equals("")) + { + return "(no description)"; + } + return desc; + } +%> + + + MBean Inspector + + + + + + + +<% + ObjectName objectName = mbeanData.getObjectName(); + String objectNameString = mbeanData.getName(); + MBeanInfo mbeanInfo = mbeanData.getMetaData(); + MBeanAttributeInfo[] attributeInfo = mbeanInfo.getAttributes(); + MBeanOperationInfo[] operationInfo = mbeanInfo.getOperations(); +%> + + +
+ + + + +
JBoss

JMX MBean View

+
    + + + + + + +<% + Hashtable properties = objectName.getKeyPropertyList(); + Iterator it = properties.keySet().iterator(); + while( it.hasNext() ) + { + String key = (String) it.next(); + String value = (String) properties.get( key ); +%> + +<% + } +%> + +
    MBean Name:Domain Name:<%= objectName.getDomain() %>
    <%= key %>: <%= value %>
    MBean Java Class:
    +
+ + + + + +
Back to Agent View + Refresh MBean View
+ +
+

MBean description:

+<%= fixDescription(mbeanInfo.getDescription())%> + +
+

List of MBean attributes:

+ +
+ + + + + + + + + + +<% + boolean hasWriteable = false; + for(int a = 0; a < attributeInfo.length; a ++) + { + MBeanAttributeInfo attrInfo = attributeInfo[a]; + String attrName = attrInfo.getName(); + String attrType = attrInfo.getType(); + AttrResultInfo attrResult = Server.getMBeanAttributeResultInfo(objectNameString, attrInfo); + String attrValue = attrResult.getAsText(); + String access = ""; + if( attrInfo.isReadable() ) + access += "R"; + if( attrInfo.isWritable() ) + { + access += "W"; + hasWriteable = true; + } + String attrDescription = fixDescription(attrInfo.getDescription()); +%> + + + + + + + +<% + } +%> +
NameTypeAccessValueDescription
<%= attrName %><%= attrType %><%= access %> +<% + if( attrInfo.isWritable() ) + { + String readonly = attrResult.editor == null ? "readonly" : ""; + if( attrType.equals("boolean") || attrType.equals("java.lang.Boolean") ) + { + // Boolean true/false radio boxes + Boolean value = Boolean.valueOf(attrValue); + String trueChecked = (value == Boolean.TRUE ? "checked" : ""); + String falseChecked = (value == Boolean.FALSE ? "checked" : ""); +%> + >True + >False +<% + } + else if( attrInfo.isReadable() ) + { // Text fields for read-write string values +%> + " <%= readonly %>> + +<% + } + else + { // Empty text fields for write-only +%> + > +<% + } + } + else + { + if( attrType.equals("[Ljavax.management.ObjectName;") ) + { + // Array of Object Names + ObjectName[] names = (ObjectName[]) Server.getMBeanAttributeObject(objectNameString, attrName); + if( names != null ) + { +%> + +<% + for( int i = 0; i < names.length; i++ ) + { +%> + +<% + } +%> +
+ "><%= ( names[ i ] + "" ) %> +
+<% + } + } + // Array of some objects + else if( attrType.endsWith("[]")) + { + Object arrayObject = Server.getMBeanAttributeObject(objectNameString, attrName); + if (arrayObject != null) { +%> + +<% + for (int i = 0; i < Array.getLength(arrayObject); ++i) { +%> + +<% + } +%> +
<%=Array.get(arrayObject,i)%>
+<% + } + + } + else + { + // Just the value string +%> + <%= attrValue %> +<% + } + } + if( attrType.equals("javax.management.ObjectName") ) + { + // Add a link to the mbean + if( attrValue != null ) + { +%> + View MBean +<% + } + } +%> +
<%= attrDescription%>
+<% if( hasWriteable ) + { +%> + +<% + } +%> +
+ +
+

List of MBean operations:

+<% + for(int a = 0; a < operationInfo.length; a ++) + { + MBeanOperationInfo opInfo = operationInfo[a]; + boolean accept = true; + if (opInfo instanceof ModelMBeanOperationInfo) + { + Descriptor desc = ((ModelMBeanOperationInfo)opInfo).getDescriptor(); + String role = (String)desc.getFieldValue("role"); + if ("getter".equals(role) || "setter".equals(role)) + { + accept = false; + } + } + if (accept) + { + MBeanParameterInfo[] sig = opInfo.getSignature(); +%> +
+ + + +
+

<%= opInfo.getReturnType() + " " + opInfo.getName() + "()" %>

+

<%= fixDescription(opInfo.getDescription())%>

+<% + if( sig.length > 0 ) + { +%> + + + + + + + +<% + for(int p = 0; p < sig.length; p ++) + { + MBeanParameterInfo paramInfo = sig[p]; + String pname = paramInfo.getName(); + String ptype = paramInfo.getType(); + if( pname == null || pname.length() == 0 || pname.equals(ptype) ) + { + pname = "arg"+p; + } +%> + + + + + + +<% + } +%> +
ParamParamTypeParamValueParamDescription
<%= pname %><%= ptype %> +<% + if( ptype.equals("boolean") || ptype.equals("java.lang.Boolean") ) + { + // Boolean true/false radio boxes +%> + True + False +<% + } + else + { +%> + +<% + } +%> + <%= fixDescription(paramInfo.getDescription())%>
+<% + } +%> + +
+<% + } + } +%> + + + + diff --git a/jboss/server/adempiere/deploy/jmx-console.war/jboss.css b/jboss/server/adempiere/deploy/jmx-console.war/jboss.css new file mode 100644 index 0000000000..ff56bec620 --- /dev/null +++ b/jboss/server/adempiere/deploy/jmx-console.war/jboss.css @@ -0,0 +1,146 @@ +body { + margin: 13px 0px 10px 0px; + background-color: #ffffff; + font-size: 12px; + font-family: verdana, arial, "sans-serif"; + color: #606060; + } +td { + font-size: 12px; + font-family: verdana, arial, "sans-serif"; + color: #606060; + } +input { + font-size: 13px; + font-family: verdana, arial, "sans-serif"; + color: #FF5906; + background-color: #f0f0f0; + border: 1px solid #cccccc; + } +img { + border: 0px; + } +p { + margin: 10px 30px 10px 20px + } +h3 { + color: #FF5906; + font-size: 13px; + font-family: verdana, arial, "sans-serif"; + margin: 10px 30px 10px 20px; + } +h4 { + color: #999999; + font-size: 13px; + font-family: verdana, arial, "sans-serif"; + margin: 10px 30px 10px 20px; + } +table { + border: 0px #999999; + } +a { + text-decoration : none; + } +a:link { + color: #FF5906; + } +a:visited { + color: #FF5906; + } +a:active { + background-color:transparent; + } +a:hover { + text-decoration : underline; + } +a.soft, a.soft:visited, a.soft:link { + TEXT-DECORATION: none; + COLOR: #000000; + } +a.soft:hover { + TEXT-DECORATION: underline; + BACKGROUND-COLOR: transparent; + COLOR: #000000 + } +#header { + background-color: #FF7A22; + background-image: url("header_bg.jpg"); + background-repeat: no-repeat; + background-position: 226px 0px; + width: 100%; + height: 80px; + } +#header #banner { + float: right; + margin: 8px 5px 0px 0px; + } +#logo { + position: absolute; + top: 4px; + left: 4px; + z-index: 200; +} +#services { + position: absolute; + top: 16px; + right: 10px; + z-index: 200; +} +#filter { + position: absolute; + top: 65px; + right: 30px; + z-index: 220; +} +#filter_label { + position: absolute; + top: 61px; + right: 215px; + z-index: 220; +} +#apply { + position: absolute; + top: -5px; + right: -30px; + z-index: 220; + border: none; +} +#navigation_bar { + background-color: #f0f0f0; + border-bottom: 1px dotted #999999; + height: 20px; + } +#separator_bar { + background-color: #ffffff; + border-bottom: 1px dotted #999999; + height: 20px; + } +#footer { + clear: both; + border-top: 1px dotted #999999; + } +#footer_bar { + height: 20px; + width: 100%; + background-color: #FF7A22; + } +.attribute_link a { + color: #606060; + text-decoration: none; + } +.attribute_link a:hover { + color: #606060; + border-bottom: 1px dotted #999999; + } +.hide { + display: none; + } +.spacer { + clear: both; + } +.spacer hr { + display: none; + } +.center { + text-align: center; + } diff --git a/jboss/server/adempiere/deploy/jmx-console.war/style_master.css b/jboss/server/adempiere/deploy/jmx-console.war/style_master.css new file mode 100644 index 0000000000..cb645708e8 --- /dev/null +++ b/jboss/server/adempiere/deploy/jmx-console.war/style_master.css @@ -0,0 +1,64 @@ +BODY { + font-family: Verdana, Arial, Helvetica, sans-serif; + font-size: 14px; + background-color : White; +} + +H1{ + font-family: Verdana, Arial, Helvetica, sans-serif; + font-size: 25px; + font-weight: bold; + color: #000099} +H2 { + font-family: Verdana, Arial, Helvetica, sans-serif; + font-size: 20px; + font-weight: bold; + color: #000000 +} +H3 { + font-family: Verdana, Arial, Helvetica, sans-serif; + font-size: 17px; + font-weight: bold; + color: #000000 +} +TH { + background-color : #000099; + color: #DEB887; + font-weight: bold; +}.bg_table { + background-color : #DEB887; +} +}.bg_cell{ + background-color : #ffffff; +} +A:ACTIVE { + font-family: Arial, Helvetica, sans-serif; + font-size: 14px; + color:Red; + background-color: #DEB887; + text-decoration : underline; + font-weight:bold; +} + A:HOVER { + font-family:Arial, Helvetica, sans-serif; + font-size: 14px; + color:Red; + text-decoration : underline; + font-weight:bold; +} + A:LINK { + font-family: Arial, Helvetica, sans-serif; + font-size: 14px; + color:#000099; + text-decoration : underline; + font-weight:bold; +} + A:VISITED { + font-family: Arial, Helvetica, sans-serif; + font-size: 14px; + color:Purple; + text-decoration : underline; + font-weight:bold; +} + + diff --git a/jboss/server/adempiere/deploy/jmx-invoker-service.xml b/jboss/server/adempiere/deploy/jmx-invoker-service.xml new file mode 100644 index 0000000000..36c9f6cf51 --- /dev/null +++ b/jboss/server/adempiere/deploy/jmx-invoker-service.xml @@ -0,0 +1,117 @@ + + + + + + + + + jboss:service=invoker,type=jrmp + + jboss.jmx:type=adaptor,name=Invoker + + jmx/invoker/RMIAdaptor + + org.jboss.jmx.adaptor.rmi.RMIAdaptor, + org.jboss.jmx.adaptor.rmi.RMIAdaptorExt + + + + org.jboss.proxy.ClientMethodInterceptor + org.jboss.proxy.SecurityInterceptor + org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor + org.jboss.invocation.InvokerInterceptor + + + + + + + jmx/rmi/RMIAdaptor + jmx/invoker/RMIAdaptor + + + + + + The JMX Detached Invoker Service + org.jboss.jmx.connector.invoker.InvokerAdaptorService + + + + The class name of the MBean + Name + java.lang.String + + + The status of the MBean + State + int + + + The status of the MBean in text form + StateString + java.lang.String + + + The interfaces the invoker proxy supports + ExportedInterfaces + [Ljava.lang.Class; + + + Map(Long hash, Method) of the proxy interface methods + MethodMap + java.util.Map + + + + The start lifecycle operation + start + + + The stop lifecycle operation + stop + + + The detyped lifecycle operation (for internal use only) + jbossInternalLifecycle + + The lifecycle operation + method + java.lang.String + + void + + + + The detached invoker entry point + invoke + + The method invocation context + invocation + org.jboss.invocation.Invocation + + java.lang.Object + + + + org.jboss.jmx.adaptor.rmi.RMIAdaptor, + org.jboss.jmx.adaptor.rmi.RMIAdaptorExt + + + + diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/META-INF/MANIFEST.MF b/jboss/server/adempiere/deploy/management/console-mgr.sar/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..d33b84725d --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/META-INF/MANIFEST.MF @@ -0,0 +1,4 @@ +Manifest-Version: 1.0 +Ant-Version: Apache Ant 1.6.2 +Created-By: 1.4.2_05-b04 (Sun Microsystems Inc.) + diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/META-INF/jboss-service.xml b/jboss/server/adempiere/deploy/management/console-mgr.sar/META-INF/jboss-service.xml new file mode 100644 index 0000000000..8f621d25c8 --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/META-INF/jboss-service.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + jboss.console:sar=console-mgr.sar + + java2ParentDelegation=true + + + + + + jboss.jmx:type=adaptor,name=Invoker,protocol=jrmp,service=proxyFactory + /web-console/images/jboss.gif + /web-console/ServerInfo.jsp + true + console/PluginManager + + + + ./deploy/management + + + diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPBinding.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPBinding.jsp new file mode 100644 index 0000000000..ffe7f3b36c --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPBinding.jsp @@ -0,0 +1,71 @@ +<%@ taglib uri="/webconsole" prefix="jb" %> +<%@ page import="org.jboss.aop.*,java.util.*, + org.jboss.aop.advice.AdviceBinding" %> + + + +<% + String myUrl = response.encodeURL(request.getRequestURI() + "?" + request.getQueryString()); +%> + + + + +JBoss Management Console - AOP Pointcuts + + + + + + + + + +<% + String name = request.getParameter("binding"); + AdviceBinding binding = (AdviceBinding)AspectManager.instance().getBindings().get(name); +%> +
+
+

<%=name%>

+
+
+

Advice Binding

+

 

+ + + + + +
+

Pointcut Expression: <%=binding.getPointcut().getExpr()%>

+ <% if (binding.getCFlowString() != null) { + %> +

CFlow Expression: <%=binding.getCFlowString()%>

+ <% } %> +
+

 

+

 

+

Refresh

+ +

 

+

 

+

 

+
+

+
+
+ + +
+ + + + + diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPClassMetaData.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPClassMetaData.jsp new file mode 100644 index 0000000000..e989b55cfa --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPClassMetaData.jsp @@ -0,0 +1,38 @@ +<%@ taglib uri="/webconsole" prefix="jb" %> +<%@ page import="org.jboss.aop.*,java.util.*"%> + + + +<% + String myUrl = response.encodeURL(request.getRequestURI() + "?" + request.getQueryString()); +%> + + + + +JBoss Management Console - AOP Pointcuts + + + + + + + + + +<% + String classname = request.getParameter("classname"); + String group = request.getParameter("group"); + ClassAdvisor advisor = (ClassAdvisor)AspectManager.instance().getAdvisor(classname); + HashMap groupAttrs = advisor.getClassMetaData().tag(group); +%> +
+
+
+
+

Metadata for class <%= classname %>

+

 

+<%@ include file="AOPMetaData.jsp" %> diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPConstructorChain.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPConstructorChain.jsp new file mode 100644 index 0000000000..de43f46b4b --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPConstructorChain.jsp @@ -0,0 +1,84 @@ +<%@ taglib uri="/webconsole" prefix="jb" %> +<%@ page import="org.jboss.aop.*,org.jboss.aop.advice.*,java.util.*,java.lang.reflect.Field, + java.lang.reflect.Constructor, + org.jboss.console.plugins.AOPLister"%> + + + +<% + String myUrl = response.encodeURL(request.getRequestURI() + "?" + request.getQueryString()); +%> + + + + +JBoss Management Console - AOP Pointcuts + + + + + + + + + +<% + String classname = request.getParameter("classname"); + int idx = Integer.parseInt(request.getParameter("constructor")); + ClassAdvisor advisor = (ClassAdvisor)AspectManager.instance().getAdvisor(classname); + Constructor constructor = advisor.getConstructors()[idx]; + Interceptor[] interceptors = advisor.getConstructorInterceptors()[idx]; + +%> +
+
+
+
+

<%=classname%>

+

 

+ + + + + + + + +<% + if (interceptors != null) + { + String chain = AOPLister.outputChain(interceptors); +%> +<%=chain%> +<% } %> +
+

Constructor Chain for <%=AOPLister.shortenConstructor(classname, constructor)%>

+
+

Type

+
+

Description

+
+

 

+

Refresh

+ +

 

+

 

+

 

+
+

+
+
+ + +
+ + + + + \ No newline at end of file diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPConstructorConstructorCallerChain.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPConstructorConstructorCallerChain.jsp new file mode 100644 index 0000000000..529cefd51e --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPConstructorConstructorCallerChain.jsp @@ -0,0 +1,91 @@ +<%@ taglib uri="/webconsole" prefix="jb" %> +<%@ page import="org.jboss.aop.*,org.jboss.aop.advice.*,java.util.*,java.lang.reflect.Field, + java.lang.reflect.Constructor, + org.jboss.console.plugins.AOPLister, + gnu.trove.TLongObjectHashMap"%> + + + +<% + String myUrl = response.encodeURL(request.getRequestURI() + "?" + request.getQueryString()); +%> + + + + +JBoss Management Console - AOP Pointcuts + + + + + + + + + +<% + String classname = request.getParameter("classname"); + int idx = Integer.parseInt(request.getParameter("index")); + String calledClassname = request.getParameter("calledclassname"); + long hash = Long.parseLong(request.getParameter("hash")); + ClassAdvisor advisor = (ClassAdvisor)AspectManager.instance().getAdvisor(classname); + Constructor constructor = advisor.getConstructors()[idx]; + HashMap called = advisor.getConCalledByConInterceptors()[idx]; + TLongObjectHashMap map = (TLongObjectHashMap)called.get(calledClassname); + CallerConstructorInfo info = (CallerConstructorInfo)map.get(hash); + Interceptor[] interceptors = info.interceptors; + +%> +
+
+
+
+

<%=classname%>

+

 

+ + + + + + + + +<% + if (interceptors != null) + { + String chain = AOPLister.outputChain(interceptors); +%> +<%=chain%> +<% } %> +
+

Constructor Caller: <%=AOPLister.shortenConstructor(classname, constructor)%>

+

Called Constructor: <%=info.constructor.toString()%>

+
+

Type

+
+

Description

+
+

 

+

Refresh

+ +

 

+

 

+

 

+
+

+
+
+ + +
+ + + + + \ No newline at end of file diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPConstructorMetaData.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPConstructorMetaData.jsp new file mode 100644 index 0000000000..e08c9e7ed2 --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPConstructorMetaData.jsp @@ -0,0 +1,53 @@ +<%@ taglib uri="/webconsole" prefix="jb" %> +<%@ page import="org.jboss.aop.*,java.util.*,java.lang.reflect.*, + org.jboss.aop.metadata.ConstructorMetaData"%> + + + +<% + String myUrl = response.encodeURL(request.getRequestURI() + "?" + request.getQueryString()); +%> + + + + +JBoss Management Console - AOP Pointcuts + + + + + + + + + +<% + + String classname = request.getParameter("classname"); + String group = request.getParameter("group"); + String con = request.getParameter("constructor"); + ClassAdvisor advisor = (ClassAdvisor)AspectManager.instance().getAdvisor(classname); + HashMap groupAttrs = new HashMap(); + ConstructorMetaData metaData = advisor.getConstructorMetaData(); + Iterator conit = metaData.getConstructors(); + while (conit.hasNext()) + { + String constructor = (String)conit.next(); + if (constructor.equals(con)) + { + groupAttrs = metaData.getConstructorMetaData(constructor).tag(group); + break; + } + } + +%> +
+
+
+
+

Metadata for constructor <%=con%>

+

 

+<%@ include file="AOPMetaData.jsp" %> diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPConstructorMethodCallerChain.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPConstructorMethodCallerChain.jsp new file mode 100644 index 0000000000..47f33d605c --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPConstructorMethodCallerChain.jsp @@ -0,0 +1,91 @@ +<%@ taglib uri="/webconsole" prefix="jb" %> +<%@ page import="org.jboss.aop.*,org.jboss.aop.advice.*,java.util.*,java.lang.reflect.Field, + java.lang.reflect.Constructor, + org.jboss.console.plugins.AOPLister, + gnu.trove.TLongObjectHashMap"%> + + + +<% + String myUrl = response.encodeURL(request.getRequestURI() + "?" + request.getQueryString()); +%> + + + + +JBoss Management Console - AOP Pointcuts + + + + + + + + + +<% + String classname = request.getParameter("classname"); + int idx = Integer.parseInt(request.getParameter("index")); + String calledClassname = request.getParameter("calledclassname"); + long hash = Long.parseLong(request.getParameter("hash")); + ClassAdvisor advisor = (ClassAdvisor)AspectManager.instance().getAdvisor(classname); + Constructor constructor = advisor.getConstructors()[idx]; + HashMap called = advisor.getMethodCalledByConInterceptors()[idx]; + TLongObjectHashMap map = (TLongObjectHashMap)called.get(calledClassname); + CallerMethodInfo info = (CallerMethodInfo)map.get(hash); + Interceptor[] interceptors = info.interceptors; + +%> +
+
+
+
+

<%=classname%>

+

 

+ + + + + + + + +<% + if (interceptors != null) + { + String chain = AOPLister.outputChain(interceptors); +%> +<%=chain%> +<% } %> +
+

Constructor Caller: <%=AOPLister.shortenConstructor(classname, constructor)%>

+

Called Method: <%=info.method.toString()%>

+
+

Type

+
+

Description

+
+

 

+

Refresh

+ +

 

+

 

+

 

+
+

+
+
+ + +
+ + + + + \ No newline at end of file diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPDefaultMetaData.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPDefaultMetaData.jsp new file mode 100644 index 0000000000..80511407c6 --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPDefaultMetaData.jsp @@ -0,0 +1,38 @@ +<%@ taglib uri="/webconsole" prefix="jb" %> +<%@ page import="org.jboss.aop.*,java.util.*"%> + + + +<% + String myUrl = response.encodeURL(request.getRequestURI() + "?" + request.getQueryString()); +%> + + + + +JBoss Management Console - AOP Pointcuts + + + + + + + + + +<% + String classname = request.getParameter("classname"); + String group = request.getParameter("group"); + ClassAdvisor advisor = (ClassAdvisor)AspectManager.instance().getAdvisor(classname); + HashMap groupAttrs = advisor.getDefaultMetaData().tag(group); +%> +
+
+
+
+

<%=classname%> Default MetaData

+

 

+<%@ include file="AOPMetaData.jsp" %> diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPFieldChain.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPFieldChain.jsp new file mode 100644 index 0000000000..d1b62fbfbe --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPFieldChain.jsp @@ -0,0 +1,84 @@ +<%@ taglib uri="/webconsole" prefix="jb" %> +<%@ page import="org.jboss.aop.*,org.jboss.aop.advice.*,java.util.*,java.lang.reflect.Field, + org.jboss.console.plugins.AOPLister"%> + + + +<% + String myUrl = response.encodeURL(request.getRequestURI() + "?" + request.getQueryString()); +%> + + + + +JBoss Management Console - AOP Pointcuts + + + + + + + + + +<% + String classname = request.getParameter("classname"); + int idx = Integer.parseInt(request.getParameter("field")); + ClassAdvisor advisor = (ClassAdvisor)AspectManager.instance().getAdvisor(classname); + Field field = advisor.getAdvisedFields()[idx]; + boolean read = request.getParameter("mode").equals("read"); + Interceptor[] interceptors = read ? advisor.getFieldReadInterceptors()[idx] : advisor.getFieldWriteInterceptors()[idx]; +%> +
+
+
+
+

<%=classname%>

+

 

+ + + + + + + + +<% + if (interceptors != null) + { + String chain = AOPLister.outputChain(interceptors); +%> +<%=chain%> +<% } %> + +
+

Field <%= (read) ? "Read" : "Write" %> Chain for <%=AOPLister.shortenField(classname, field)%>

+
+

Type

+
+

Description

+
+

 

+

Refresh

+ +

 

+

 

+

 

+
+

+
+
+ + +
+ + + + + \ No newline at end of file diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPFieldMetaData.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPFieldMetaData.jsp new file mode 100644 index 0000000000..a18a6f0ef2 --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPFieldMetaData.jsp @@ -0,0 +1,39 @@ +<%@ taglib uri="/webconsole" prefix="jb" %> +<%@ page import="org.jboss.aop.*,java.util.*"%> + + + +<% + String myUrl = response.encodeURL(request.getRequestURI() + "?" + request.getQueryString()); +%> + + + + +JBoss Management Console - AOP Pointcuts + + + + + + + + + +<% + String classname = request.getParameter("classname"); + String group = request.getParameter("group"); + String field = request.getParameter("field"); + ClassAdvisor advisor = (ClassAdvisor)AspectManager.instance().getAdvisor(classname); + HashMap groupAttrs = advisor.getFieldMetaData().getFieldMetaData(field).tag(group); +%> +
+
+
+
+

Metadata for field <%=field%>

+

 

+<%@ include file="AOPMetaData.jsp" %> diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPIntroductionPointcut.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPIntroductionPointcut.jsp new file mode 100644 index 0000000000..797172bb52 --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPIntroductionPointcut.jsp @@ -0,0 +1,105 @@ +<%@ taglib uri="/webconsole" prefix="jb" %> +<%@ page import="org.jboss.aop.*,java.util.*, + org.jboss.aop.introduction.InterfaceIntroduction"%> + + + +<% + String myUrl = response.encodeURL(request.getRequestURI() + "?" + request.getQueryString()); +%> + + + + +JBoss Management Console - AOP Pointcuts + + + + + + + + + +<% + String name = request.getParameter("pointcut"); + InterfaceIntroduction introduction = AspectManager.instance().getInterfaceIntroduction(name); +%> +
+

<%=name%>

+
+
+

Introduction Pointcut

+

 

+ + + + +<% + Iterator mixins = introduction.getMixins().iterator(); + while (mixins.hasNext()) { + InterfaceIntroduction.Mixin mixin = (InterfaceIntroduction.Mixin)mixins.next(); + String[] interfaces = mixin.getInterfaces(); + String initializer = (mixin.getConstruction() == null) ? ("new " + mixin.getClassName() + "()") : mixin.getConstruction(); +%> + + + + +<% } %> +<% + String[] interfaces = introduction.getInterfaces(); + if (interfaces != null && interfaces.length > 0) { +%> + + + +<% }%> + +
+

Class Expression: <%=introduction.getClassExpr()%>

+
+

Mixin Class

+

<%=mixin.getClassName()%>

+

Mixin Initializer

+

<%=initializer%>

+
+

Interfaces

+<% + for (int j = 0; j < interfaces.length; j++) { +%> +

<%=interfaces[j]%>

+<% } %> +
+

Other Interfaces

+<% + for (int j = 0; j < interfaces.length; j++) { +%> +

<%=interfaces[j]%>

+<% } %> +
+

 

+

 

+

Refresh

+ +

 

+

 

+

 

+
+

+
+
+ + +
+ + + + + diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPMetaData.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPMetaData.jsp new file mode 100644 index 0000000000..b4a6790141 --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPMetaData.jsp @@ -0,0 +1,79 @@ +<%@ page import="java.util.Iterator, + java.util.Map, + org.jboss.aop.metadata.SimpleMetaData, + org.jboss.aop.metadata.MetaDataResolver" %> + + + + + + + + + + +<% + boolean hasValues = false; + + Iterator it = groupAttrs.entrySet().iterator(); + while (it.hasNext()) + { + Map.Entry entry = (Map.Entry)it.next(); + String attr = (String)entry.getKey(); + if (!attr.equals(MetaDataResolver.EMPTY_TAG)) + { + hasValues = true; + SimpleMetaData.MetaDataValue value = (SimpleMetaData.MetaDataValue)entry.getValue(); +%> + + + +<% } + } + + if (!hasValues) + { +%> + + + +<% } + +%> + +
+

<%=group%>

+
+

Attribute Name

+
+

Type

+
+

Value (as String)

+
+

Serialization

+
<%=attr%> + <%=value.value.getClass().getName()%> + <%=value.value.toString()%> + <%=value.type%> +
empty
+

 

+

Refresh

+ +

 

+

 

+

 

+
+

+
+
+ + +
+ + + + + \ No newline at end of file diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPMethodChain.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPMethodChain.jsp new file mode 100644 index 0000000000..55a3ac2ff3 --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPMethodChain.jsp @@ -0,0 +1,86 @@ +<%@ taglib uri="/webconsole" prefix="jb" %> +<%@ page import="org.jboss.aop.*,org.jboss.aop.advice.*,java.util.*,gnu.trove.TLongObjectHashMap, + java.lang.reflect.Method, + org.jboss.console.plugins.AOPLister"%> + + + +<% + String myUrl = response.encodeURL(request.getRequestURI() + "?" + request.getQueryString()); +%> + + + + +JBoss Management Console - AOP Pointcuts + + + + + + + + + +<% + String classname = request.getParameter("classname"); + long hash = Long.parseLong(request.getParameter("method")); + ClassAdvisor advisor = (ClassAdvisor)AspectManager.instance().getAdvisor(classname); + TLongObjectHashMap methodChains = advisor.getMethodInterceptors(); + MethodInfo info = (MethodInfo)methodChains.get(hash); + Interceptor[] interceptors = info.interceptors; + Method method = (Method)advisor.getAdvisedMethods().get(hash); +%> +
+
+
+
+

<%=classname%>

+

 

+ + + + + + + + +<% + if (interceptors != null) + { + String chain = AOPLister.outputChain(interceptors); +%> +<%=chain%> +<% } %> + +
+

Method Chain for <%=AOPLister.shortenMethod(classname, method)%>

+
+

Type

+
+

Description

+
+

 

+

Refresh

+ +

 

+

 

+

 

+
+

+
+
+ + +
+ + + + + \ No newline at end of file diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPMethodConstructorCallerChain.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPMethodConstructorCallerChain.jsp new file mode 100644 index 0000000000..15af4493b3 --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPMethodConstructorCallerChain.jsp @@ -0,0 +1,92 @@ +<%@ taglib uri="/webconsole" prefix="jb" %> +<%@ page import="org.jboss.aop.*,org.jboss.aop.advice.*,java.util.*,java.lang.reflect.Field, + java.lang.reflect.Constructor, + org.jboss.console.plugins.AOPLister, + gnu.trove.TLongObjectHashMap, + java.lang.reflect.Method"%> + + + +<% + String myUrl = response.encodeURL(request.getRequestURI() + "?" + request.getQueryString()); +%> + + + + +JBoss Management Console - AOP Pointcuts + + + + + + + + + +<% + String classname = request.getParameter("classname"); + String calledClassname = request.getParameter("calledclassname"); + long hash = Long.parseLong(request.getParameter("hash")); + long callingHash = Long.parseLong(request.getParameter("callinghash")); + ClassAdvisor advisor = (ClassAdvisor)AspectManager.instance().getAdvisor(classname); + Method method = (Method)advisor.getAdvisedMethods().get(callingHash); + HashMap called = (HashMap)advisor.getConCalledByMethodInterceptors().get(callingHash); + TLongObjectHashMap map = (TLongObjectHashMap)called.get(calledClassname); + CallerConstructorInfo info = (CallerConstructorInfo)map.get(hash); + Interceptor[] interceptors = info.interceptors; + +%> +
+
+
+
+

<%=classname%>

+

 

+ + + + + + + + +<% + if (interceptors != null) + { + String chain = AOPLister.outputChain(interceptors); +%> +<%=chain%> +<% } %> +
+

Method Caller: <%=AOPLister.shortenMethod(classname, method)%>

+

Called Constructor: <%=info.constructor.toString()%>

+
+

Type

+
+

Description

+
+

 

+

Refresh

+ +

 

+

 

+

 

+
+

+
+
+ + +
+ + + + + \ No newline at end of file diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPMethodMetaData.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPMethodMetaData.jsp new file mode 100644 index 0000000000..a88d651cdb --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPMethodMetaData.jsp @@ -0,0 +1,39 @@ +<%@ taglib uri="/webconsole" prefix="jb" %> +<%@ page import="org.jboss.aop.*,java.util.*"%> + + + +<% + String myUrl = response.encodeURL(request.getRequestURI() + "?" + request.getQueryString()); +%> + + + + +JBoss Management Console - AOP Pointcuts + + + + + + + + + +<% + String classname = request.getParameter("classname"); + String group = request.getParameter("group"); + String method = request.getParameter("method"); + ClassAdvisor advisor = (ClassAdvisor)AspectManager.instance().getAdvisor(classname); + HashMap groupAttrs = advisor.getMethodMetaData().getMethodMetaData(method).tag(group); +%> +
+
+
+
+

Metadata for method <%=method%>

+

 

+<%@ include file="AOPMetaData.jsp" %> diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPMethodMethodCallerChain.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPMethodMethodCallerChain.jsp new file mode 100644 index 0000000000..35cbf27125 --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/AOPMethodMethodCallerChain.jsp @@ -0,0 +1,92 @@ +<%@ taglib uri="/webconsole" prefix="jb" %> +<%@ page import="org.jboss.aop.*,org.jboss.aop.advice.*,java.util.*,java.lang.reflect.Field, + java.lang.reflect.Constructor, + org.jboss.console.plugins.AOPLister, + gnu.trove.TLongObjectHashMap, + java.lang.reflect.Method"%> + + + +<% + String myUrl = response.encodeURL(request.getRequestURI() + "?" + request.getQueryString()); +%> + + + + +JBoss Management Console - AOP Pointcuts + + + + + + + + + +<% + String classname = request.getParameter("classname"); + String calledClassname = request.getParameter("calledclassname"); + long hash = Long.parseLong(request.getParameter("hash")); + long callingHash = Long.parseLong(request.getParameter("callinghash")); + ClassAdvisor advisor = (ClassAdvisor)AspectManager.instance().getAdvisor(classname); + Method method = (Method)advisor.getAdvisedMethods().get(callingHash); + HashMap called = (HashMap)advisor.getMethodCalledByMethodInterceptors().get(callingHash); + TLongObjectHashMap map = (TLongObjectHashMap)called.get(calledClassname); + CallerMethodInfo info = (CallerMethodInfo)map.get(hash); + Interceptor[] interceptors = info.interceptors; + +%> +
+
+
+
+

<%=classname%>

+

 

+ + + + + + + + +<% + if (interceptors != null) + { + String chain = AOPLister.outputChain(interceptors); +%> +<%=chain%> +<% } %> +
+

Method Caller: <%=AOPLister.shortenMethod(classname, method)%>

+

Called Method: <%=info.method.toString()%>

+
+

Type

+
+

Description

+
+

 

+

Refresh

+ +

 

+

 

+

 

+
+

+
+
+ + +
+ + + + + \ No newline at end of file diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/EJB.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/EJB.jsp new file mode 100644 index 0000000000..7b8b315e71 --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/EJB.jsp @@ -0,0 +1,42 @@ +<%@ taglib uri="/webconsole" prefix="jb" %> + + +<% + String ejbName = new javax.management.ObjectName(request.getParameter("ObjectName")).getKeyProperty ("name"); + String containerUrl = "jboss.j2ee:service=EJB,jndiName=" + ejbName; + containerUrl = java.net.URLEncoder.encode(containerUrl); + containerUrl = "../jmx-console/HtmlAdaptor?action=inspectMBean&name=" + containerUrl; +%> + + + +EJB: <%=ejbName%> + + + + +

EJB '<%=ejbName%>'

+ +

+

+ + + + + + + + + + + + + + +
Management Object Name:
<%=ejb.getobjectName()%> 
Provides Statistics:
<%=ejb.isstatisticsProvider()%> 
+ + Visit associated container MBean... + + + + \ No newline at end of file diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/EJBModule.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/EJBModule.jsp new file mode 100644 index 0000000000..0e948ae420 --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/EJBModule.jsp @@ -0,0 +1,44 @@ +<%@ page import="javax.management.ObjectName"%> +<%@ taglib uri="/webconsole" prefix="jb" %> + + +<% + String moduleName = new ObjectName(module.getobjectName()).getKeyProperty ("name"); +%> + + + +EJB-Module: <%=moduleName%> + + + + +

EJB-Module '<%=moduleName%>'

+ +

+

+ + + + + + + + + + + + + + + + + + + + +
Management Object Name:
<%=module.getobjectName()%>
Provides Statistics:
<%=module.isstatisticsProvider()%>
Deployment Descriptor:
<%=org.jboss.console.plugins.helpers.servlet.ServletHelper.filter(module.getdeploymentDescriptor())%>
+ + + + diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/EntityEjb.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/EntityEjb.jsp new file mode 100644 index 0000000000..0fc61e61a4 --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/EntityEjb.jsp @@ -0,0 +1,229 @@ +<%@ taglib uri="/webconsole" prefix="jb" %> + + +<% + String ejbName = new javax.management.ObjectName(request.getParameter("ObjectName")).getKeyProperty ("name"); + String ejbModule = new javax.management.ObjectName(request.getParameter("ObjectName")).getKeyProperty ("EJBModule"); + String containerUrl = "jboss.j2ee:service=EJB,jndiName=" + ejbName; + containerUrl = java.net.URLEncoder.encode(containerUrl); + containerUrl = "../jmx-console/HtmlAdaptor?action=inspectMBean&name=" + containerUrl; + + org.jboss.invocation.InvocationStatistics invokeStats= container.getInvokeStats (); + + String doReset = request.getParameter("doReset"); + if (doReset != null && doReset.equals("true")) + { + ejb.resetStats (); + } + String doResetInvoc= request.getParameter("doResetInvoc"); + if (doResetInvoc!= null && doResetInvoc.equals("true")) + { + invokeStats.resetStats (); + } + + String resetUrl = response.encodeURL(request.getRequestURI()) + "?doReset=true&ObjectName=" + java.net.URLEncoder.encode(request.getParameter("ObjectName")); + String resetInvocUrl = response.encodeURL(request.getRequestURI()) + "?doResetInvoc=true&ObjectName=" + java.net.URLEncoder.encode(request.getParameter("ObjectName")); + String myUrl = response.encodeURL(request.getRequestURI()) + "?" + "&ObjectName=" + java.net.URLEncoder.encode(request.getParameter("ObjectName")); + org.jboss.metadata.BeanMetaData beanMetaData = container.getBeanMetaData(); + +%> +<%! +public String addStatRow (javax.management.j2ee.statistics.Statistic stat) +{ + String start = new java.util.Date(stat.getStartTime ()).toString (); + String lastSample = new java.util.Date(stat.getLastSampleTime ()).toString (); + + String result = "" + stat.getName() + " (unit: " + stat.getUnit () + ")" + + ""; + + if (stat instanceof javax.management.j2ee.statistics.CountStatistic) + { + result+= ""; + } + else if (stat instanceof javax.management.j2ee.statistics.RangeStatistic) + { + javax.management.j2ee.statistics.RangeStatistic rStat = (javax.management.j2ee.statistics.RangeStatistic)stat; + + result+= "" + + ""; + } + + result+= "
" + ((javax.management.j2ee.statistics.CountStatistic)stat).getCount() + "" + rStat.getCurrent () + "" + rStat.getLowWaterMark () + "" + rStat.getHighWaterMark() + "
" + start + "" + lastSample + " "; + + return result; + +} +%> + + + + +JBoss Management Console - Entity Bean + + + + + + +

+ + +
+
+
+
+

Entity Bean

+

Name

+

<%=beanMetaData.getEjbName()%> (JNDI: <%=ejbName%>)

+

EJB Module

+

<%=ejbModule %>

+

Bean Statistics:

+

 

+<% +if (ejb.isstatisticsProvider()) +{ +%> + + + + + + + + <% + javax.management.j2ee.statistics.EntityBeanStats stats = (javax.management.j2ee.statistics.EntityBeanStats)ejb.getstats (); +%> + <%=addStatRow (stats.getCreateCount ()) %> + <%=addStatRow (stats.getRemoveCount ()) %> + <%=addStatRow (stats.getReadyCount ()) %> + <%=addStatRow (stats.getPooledCount ()) %> + +
+

Name

+
+

Value

+ + + + + + +
+

Current

+
+

Low

+
+

High

+
+
+

Start Time

+
+

Last Sample Time

+
+

Reset Stats / Refresh Stats

+<% +} +else +{ +%> +

none.

+<% +} +%> +

 

+

 

+

Invocation Statistics:

+

 

+<% + java.util.Iterator iterInvoc = invokeStats.getStats().entrySet().iterator(); + if (iterInvoc.hasNext()) + { + +%> + + + + + + + + + + + <% + while (iterInvoc.hasNext()) + { + java.util.Map.Entry entry = (java.util.Map.Entry) iterInvoc.next(); + org.jboss.invocation.InvocationStatistics.TimeStatistic stat = (org.jboss.invocation.InvocationStatistics.TimeStatistic) entry.getValue(); + %> + + + + + + + + + + <% + } + %> +
+

Method name

+
+

Min (ms)

+
+

Max (ms)

+
+

Average (ms)

+
+

Total (ms)

+
+

# Invocations

+
+

<%=((java.lang.reflect.Method)entry.getKey()).getName()%>

+
+

<%=stat.minTime%>

+
+

<%=stat.maxTime%>

+
+

<%=(float)stat.totalTime/(float)stat.count%>

+
+

<%=stat.totalTime%>

+
+

<%=stat.count%>

+
+

Reset Stats / Refresh Stats

+<% + } + else + { +%> +

none.

+<% + } +%> + +

 

+

Actual concurrent invocations: <%=invokeStats.concurrentCalls%> (max: <%=invokeStats.maxConcurrentCalls%>)

+

 

+

 

+

 

+

View associated container MBean

+
+

+
+
+ + +
+ + + + + diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/J2EEApp.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/J2EEApp.jsp new file mode 100644 index 0000000000..1ee90836bc --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/J2EEApp.jsp @@ -0,0 +1,44 @@ +<%@ page import="javax.management.ObjectName"%> +<%@ taglib uri="/webconsole" prefix="jb" %> + + +<% + String appName = new ObjectName(app.getobjectName()).getKeyProperty ("name"); +%> + + + +J2EE Application: <%=appName%> + + + + +

J2EE Application '<%=appName%>'

+ +

+

+ + + + + + + + + + + + + + + + + + + + +
Management Object Name:
<%=app.getobjectName()%>
Provides Statistics:
<%=app.isstatisticsProvider()%>
Deployment Descriptor:
<%=org.jboss.console.plugins.helpers.servlet.ServletHelper.filter(app.getdeploymentDescriptor())%>
+ + + + diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/JNDIView.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/JNDIView.jsp new file mode 100644 index 0000000000..83cbdfdf01 --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/JNDIView.jsp @@ -0,0 +1,38 @@ +<%@ taglib uri="/webconsole" prefix="jb" %> + + + + +JBoss Management Console - JNDI View + + + + + + + +

+ + +
+

JNDI View

+

 

+ + <%=org.jboss.console.util.XMLToHTMLTreeBuilder.convertJNDIXML(jndiview.listXML())%> + +

 

+ + +
+ + + + + diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/META-INF/MANIFEST.MF b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..d33b84725d --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/META-INF/MANIFEST.MF @@ -0,0 +1,4 @@ +Manifest-Version: 1.0 +Ant-Version: Apache Ant 1.6.2 +Created-By: 1.4.2_05-b04 (Sun Microsystems Inc.) + diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/MdbEjb.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/MdbEjb.jsp new file mode 100644 index 0000000000..3e4ac99d4b --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/MdbEjb.jsp @@ -0,0 +1,239 @@ +<%@ page language="java" + import="java.util.Map" + import="java.util.HashMap" + import="java.util.Iterator" + import="org.jboss.invocation.InvocationStatistics" + import="org.jboss.invocation.InvocationStatistics.*" %> + +<%@ taglib uri="/webconsole" prefix="jb" %> + + + +<% + // Author: Boris Cinkler cinkler@users.sourceforge.net + + String ejbName = new javax.management.ObjectName(request.getParameter("ObjectName")).getKeyProperty ("name"); + String ejbModule = new javax.management.ObjectName(request.getParameter("ObjectName")).getKeyProperty ("EJBModule"); + String containerUrl = "jboss.j2ee:service=EJB,jndiName=" + ejbName; + containerUrl = java.net.URLEncoder.encode(containerUrl); + containerUrl = "../jmx-console/HtmlAdaptor?action=inspectMBean&name=" + containerUrl; + + org.jboss.invocation.InvocationStatistics invokeStats= container.getInvokeStats (); + + String doReset = request.getParameter("doReset"); + if (doReset != null && doReset.equals("true")) + { + ejb.resetStats (); + } + String doResetInvoc= request.getParameter("doResetInvoc"); + if (doResetInvoc!= null && doResetInvoc.equals("true")) + { + invokeStats.resetStats (); + } + + String resetUrl = response.encodeURL(request.getRequestURI()) + "?doReset=true&ObjectName=" + java.net.URLEncoder.encode(request.getParameter("ObjectName")); + String resetInvocUrl = response.encodeURL(request.getRequestURI()) + "?doResetInvoc=true&ObjectName=" + java.net.URLEncoder.encode(request.getParameter("ObjectName")); + String myUrl = response.encodeURL(request.getRequestURI()) + "?" + "&ObjectName=" + java.net.URLEncoder.encode(request.getParameter("ObjectName")); + org.jboss.metadata.BeanMetaData beanMetaData = container.getBeanMetaData(); + + %> + + <%! +public String addStatRow (javax.management.j2ee.statistics.Statistic stat) +{ + String start = new java.util.Date(stat.getStartTime ()).toString (); + String lastSample = new java.util.Date(stat.getLastSampleTime ()).toString (); + + String result = "" + stat.getName() + " (unit: " + stat.getUnit () + ")" + + ""; + + if (stat instanceof javax.management.j2ee.statistics.CountStatistic) + { + result += ""; + } + else if (stat instanceof javax.management.j2ee.statistics.RangeStatistic) + { + javax.management.j2ee.statistics.RangeStatistic rStat = (javax.management.j2ee.statistics.RangeStatistic)stat; + + result += "" + + ""; + } + + result += "
" + ((javax.management.j2ee.statistics.CountStatistic)stat).getCount() + "" + rStat.getCurrent () + "" + rStat.getLowWaterMark () + "" + rStat.getHighWaterMark() + "
" + start + "" + lastSample + " "; + + return result; +} +%> + + + + + +JBoss Management Console - Message Driven Bean + + + + + + + + + +
+
+
+
+

Message Driven Bean

+

Name

+

<%=beanMetaData.getEjbName()%> (JNDI: <%=ejbName%>)

+

EJB Module

+

<%=ejbModule %>

+

Bean Statistics:

+

 

+<% +if (ejb.isstatisticsProvider()) +{ +%> + + + + + + + + <% + javax.management.j2ee.statistics.MessageDrivenBeanStats stats = (javax.management.j2ee.statistics.MessageDrivenBeanStats)ejb.getstats (); +%> + <%=addStatRow (stats.getCreateCount ()) %> + <%=addStatRow (stats.getRemoveCount ()) %> + <%=addStatRow (stats.getMessageCount ()) %> + +
+

Name

+
+

Value

+ + + + + + +
+

Current

+
+

Low

+
+

High

+
+
+

Start Time

+
+

Last Sample Time

+
+

Reset Stats / Refresh Stats

+<% +} +else +{ +%> +

none.

+<% +} +%> +

 

+

 

+

Invocation Statistics:

+

 

+<% + java.util.Iterator iterInvoc = invokeStats.getStats().entrySet().iterator(); + if (iterInvoc.hasNext()) + { + +%> + + + + + + + + + + + <% + while (iterInvoc.hasNext()) + { + java.util.Map.Entry entry = (java.util.Map.Entry) iterInvoc.next(); + org.jboss.invocation.InvocationStatistics.TimeStatistic stat = (org.jboss.invocation.InvocationStatistics.TimeStatistic) entry.getValue(); + %> + + + + + + + + + + <% + } + %> +
+

Method name

+
+

Min (ms)

+
+

Max (ms)

+
+

Average (ms)

+
+

Total (ms)

+
+

# Invocations

+
+

<%=((java.lang.reflect.Method)entry.getKey()).getName()%>

+
+

<%=stat.minTime%>

+
+

<%=stat.maxTime%>

+
+

<%=(float)stat.totalTime/(float)stat.count%>

+
+

<%=stat.totalTime%>

+
+

<%=stat.count%>

+
+

Reset Stats / Refresh Stats

+<% + } + else + { +%> +

none.

+<% + } +%> + +

 

+

Actual concurrent invocations: <%=invokeStats.concurrentCalls%> (max: <%=invokeStats.maxConcurrentCalls%>)

+

 

+

 

+

 

+

View associated container MBean

+
+

+
+
+ + +
+ + + + + diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/Queue.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/Queue.jsp new file mode 100644 index 0000000000..251da621b5 --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/Queue.jsp @@ -0,0 +1,119 @@ +<%@ page import="org.jboss.mq.*"%> +<%@ page import="org.jboss.mq.server.*"%> +<%@ page import="java.text.DateFormat"%> +<%@ page import="java.util.Date"%> +<%@ taglib uri="/webconsole" prefix="jb" %> + +<% + String resetUrl = response.encodeURL(request.getRequestURI()) + "?doReset=true&ObjectName=" + java.net.URLEncoder.encode(request.getParameter("ObjectName")); + String myUrl = response.encodeURL(request.getRequestURI()) + "?" + "&ObjectName=" + java.net.URLEncoder.encode(request.getParameter("ObjectName")); + MessageCounter counter = queue.getMessageCounter()[0]; + + //check reset first + String doReset = request.getParameter("doReset"); + if (doReset != null && doReset.equals("true")) + { + counter.resetCounter(); + } + + String lastModified = "N/A"; + DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.MEDIUM); + if (counter.getLastUpdate() > 0) + { + lastModified = dateFormat.format(new Date(counter.getLastUpdate())); + } + + +%> + + + + + +JBoss Management Console - JMS Queue + + + + + + + + + +
+ + +
+
+
+

JMS Queue

+

Name

+

<%=queue.getQueueName()%>

+

JNDI Name

+

<%=queue.getJNDIName()%>

+

Receiver Count

+

<%=queue.getReceiversCount()%>

+

Message statistics:

+ + + + + + + + + + + +
+

Queue Depth:

+
+

Queue Depth Delta:

+
+

Maximum Depth:

+
<%=queue.getQueueDepth()%><%=counter.getDepthDelta()%><%=queue.getMaxDepth()%>
+

 

+

 

+

Message statistics since startup or reset:

+ + + + + + + + + + + +
+

Message Count:

+
+

Message Count Delta:

+
+

Last Message Add Date:

+
<%=counter.getCount()%><%=counter.getCountDelta()%><%=lastModified%>
+

Reset Stats / Refresh Stats

+

 

+

 

+ +
+

+
+
+ + + +
+ +
+ + + + + \ No newline at end of file diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/ServerInfo.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/ServerInfo.jsp new file mode 100644 index 0000000000..1a3b0fa0f6 --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/ServerInfo.jsp @@ -0,0 +1,136 @@ +<%-- + | + | Author: Sacha Labourey (sacha@jboss.org) + | + | Distributable under LGPL license. + | See terms of license at gnu.org. + +--%> +<%@ taglib uri="/webconsole" prefix="jb" %> + + + +<% + String myUrl = response.encodeURL(request.getRequestURI()); +%> +<%! +public String memSize (java.lang.Long lOctets) +{ + long octets = lOctets.longValue(); + int ratio = 3*1024; + String unit = ""; + if (octets > ratio) + { + unit = "KB"; + octets/=1024; + + if (octets > ratio) + { + unit = "MB"; + octets/=1024; + + if (octets > ratio) + { + unit = "GB"; + octets/=1024; + + if (octets > ratio) + { + unit = "TB"; + octets/=1024; + } + } + } + } + + return octets + " " + unit; +} +%> + + + + +JBoss Management Console - Server Information + + + + + + + + + +
+
+
+
+

JBoss™ Application Server

+

 

+ + + + + + + + + +
+

JBoss

+
+

Version

+

Version: <%=server.getVersion()%>

+

Version Name: <%=server.getVersionName()%>

+

Built on: <%=server.getBuildDate()%> +

+

Environment

+

Start date: <%=server.getStartDate()%>

+

Host: <%=serverInfo.getHostName()%> (<%=serverInfo.getHostAddress ()%>)

+

Base Location: <%=serverConfig.getServerBaseURL()%>

+

Base Location (local): <%=serverConfig.getServerBaseDir()%>

+

Running config: '<%= serverConfig.getServerHomeDir().getName()%>'

+

 

+ + + + + + + + + +
+

JVM - Hardware

+
+

Hardware

+

#CPU: <%=serverInfo.getAvailableProcessors()%>

+

OS: <%=serverInfo.getOSName()%> <%=serverInfo.getOSVersion()%> (<%=serverInfo.getOSArch()%>)

+

JVM Environment

+

Free Memory: <%=memSize(serverInfo.getFreeMemory())%>

+

Max Memory: <%=memSize(serverInfo.getMaxMemory())%>

+

Total Memory: <%=memSize(serverInfo.getTotalMemory())%>

+

#Threads: <%=serverInfo.getActiveThreadCount()%>

+

JVM Version: <%=serverInfo.getJavaVMVersion()%> (<%=serverInfo.getJavaVMVendor()%>)

+

JVM Name: <%=serverInfo.getJavaVMName()%>

+

 

+

Refresh

+ +

 

+

 

+

 

+
+

+
+
+ + +
+ + + + + diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/Servlet.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/Servlet.jsp new file mode 100644 index 0000000000..07c1d526c4 --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/Servlet.jsp @@ -0,0 +1,102 @@ +<%@ page import="javax.management.ObjectName, + javax.management.j2ee.statistics.ServletStats, + javax.management.j2ee.statistics.TimeStatistic"%> +<%@ taglib uri="/webconsole" prefix="jb" %> + +<% + String doReset = request.getParameter("doReset"); + if (doReset != null && doReset.equals("true")) + { + servlet.resetStats(); + } + + String resetUrl = response.encodeURL(request.getRequestURI()) + "?doReset=true&ObjectName=" + java.net.URLEncoder.encode(request.getParameter("ObjectName")); + String myUrl = response.encodeURL(request.getRequestURI()) + "?" + "&ObjectName=" + java.net.URLEncoder.encode(request.getParameter("ObjectName")); +%> + + + + + +JBoss Management Console - Servlet + + + + + + + + + +
+
+
+
+

Servlet

+

Name

+

<%=new ObjectName(servlet.getobjectName()).getKeyProperty("name")%>

+

Servlet Statistics:

+

 

+ + + + + + + + + + <% + ServletStats stats = (ServletStats)servlet.getstats(); + TimeStatistic stat = stats.getServiceTime(); + %> + + + + + + + + +
+

Min (ms)

+
+

Max (ms)

+
+

Average (ms)

+
+

Total (ms)

+
+

# Invocations

+
+

<%=stat.getMinTime()%>

+
+

<%=stat.getMaxTime()%>

+
+

<%=(float)stat.getTotalTime()/(float)stat.getCount()%>

+
+

<%=stat.getTotalTime()%>

+
+

<%=stat.getCount()%>

+
+

Reset Stats / Refresh Stats

+

 

+

 

+ +
+

+
+
+ + +
+ + + + + diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/StatefulEjb.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/StatefulEjb.jsp new file mode 100644 index 0000000000..d96294b543 --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/StatefulEjb.jsp @@ -0,0 +1,229 @@ +<%@ taglib uri="/webconsole" prefix="jb" %> + + +<% + String ejbName = new javax.management.ObjectName(request.getParameter("ObjectName")).getKeyProperty ("name"); + String ejbModule = new javax.management.ObjectName(request.getParameter("ObjectName")).getKeyProperty ("EJBModule"); + String containerUrl = "jboss.j2ee:service=EJB,jndiName=" + ejbName; + containerUrl = java.net.URLEncoder.encode(containerUrl); + containerUrl = "../jmx-console/HtmlAdaptor?action=inspectMBean&name=" + containerUrl; + + org.jboss.invocation.InvocationStatistics invokeStats= container.getInvokeStats (); + + String doReset = request.getParameter("doReset"); + if (doReset != null && doReset.equals("true")) + { + ejb.resetStats (); + } + String doResetInvoc= request.getParameter("doResetInvoc"); + if (doResetInvoc!= null && doResetInvoc.equals("true")) + { + invokeStats.resetStats (); + } + + String resetUrl = response.encodeURL(request.getRequestURI()) + "?doReset=true&ObjectName=" + java.net.URLEncoder.encode(request.getParameter("ObjectName")); + String resetInvocUrl = response.encodeURL(request.getRequestURI()) + "?doResetInvoc=true&ObjectName=" + java.net.URLEncoder.encode(request.getParameter("ObjectName")); + String myUrl = response.encodeURL(request.getRequestURI()) + "?" + "&ObjectName=" + java.net.URLEncoder.encode(request.getParameter("ObjectName")); + org.jboss.metadata.BeanMetaData beanMetaData = container.getBeanMetaData(); + +%> +<%! +public String addStatRow (javax.management.j2ee.statistics.Statistic stat) +{ + String start = new java.util.Date(stat.getStartTime ()).toString (); + String lastSample = new java.util.Date(stat.getLastSampleTime ()).toString (); + + String result = "" + stat.getName() + " (unit: " + stat.getUnit () + ")" + + ""; + + if (stat instanceof javax.management.j2ee.statistics.CountStatistic) + { + result+= ""; + } + else if (stat instanceof javax.management.j2ee.statistics.RangeStatistic) + { + javax.management.j2ee.statistics.RangeStatistic rStat = (javax.management.j2ee.statistics.RangeStatistic)stat; + + result+= "" + + ""; + } + + result+= "
" + ((javax.management.j2ee.statistics.CountStatistic)stat).getCount() + "" + rStat.getCurrent () + "" + rStat.getLowWaterMark () + "" + rStat.getHighWaterMark() + "
" + start + "" + lastSample + " "; + + return result; + +} +%> + + + + +JBoss Management Console - Stateful Session Bean + + + + + + + + + +
+
+
+
+

Stateful Session Bean

+

Name

+

<%=beanMetaData.getEjbName()%> (JNDI: <%=ejbName%>)

+

EJB Module

+

<%=ejbModule %>

+

Bean Statistics:

+

 

+<% +if (ejb.isstatisticsProvider()) +{ +%> + + + + + + + + <% + javax.management.j2ee.statistics.StatefulSessionBeanStats stats = (javax.management.j2ee.statistics.StatefulSessionBeanStats)ejb.getstats (); +%> + <%=addStatRow (stats.getMethodReadyCount ()) %> + <%=addStatRow (stats.getCreateCount ()) %> + <%=addStatRow (stats.getRemoveCount ()) %> + <%=addStatRow (stats.getPassiveCount ()) %> + +
+

Name

+
+

Value

+ + + + + + +
+

Current

+
+

Low

+
+

High

+
+
+

Start Time

+
+

Last Sample Time

+
+

Reset Stats / Refresh Stats

+<% +} +else +{ +%> +

none.

+<% +} +%> +

 

+

 

+

Invocation Statistics:

+

 

+<% + java.util.Iterator iterInvoc = invokeStats.getStats().entrySet().iterator(); + if (iterInvoc.hasNext()) + { + +%> + + + + + + + + + + + <% + while (iterInvoc.hasNext()) + { + java.util.Map.Entry entry = (java.util.Map.Entry) iterInvoc.next(); + org.jboss.invocation.InvocationStatistics.TimeStatistic stat = (org.jboss.invocation.InvocationStatistics.TimeStatistic) entry.getValue(); + %> + + + + + + + + + + <% + } + %> +
+

Method name

+
+

Min (ms)

+
+

Max (ms)

+
+

Average (ms)

+
+

Total (ms)

+
+

# Invocations

+
+

<%=((java.lang.reflect.Method)entry.getKey()).getName()%>

+
+

<%=stat.minTime%>

+
+

<%=stat.maxTime%>

+
+

<%=(float)stat.totalTime/(float)stat.count%>

+
+

<%=stat.totalTime%>

+
+

<%=stat.count%>

+
+

Reset Stats / Refresh Stats

+<% + } + else + { +%> +

none.

+<% + } +%> + +

 

+

Actual concurrent invocations: <%=invokeStats.concurrentCalls%> (max: <%=invokeStats.maxConcurrentCalls%>)

+

 

+

 

+

 

+

View associated container MBean

+
+

+
+
+ + +
+ + + + + diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/StatelessEjb.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/StatelessEjb.jsp new file mode 100644 index 0000000000..fbe4010a28 --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/StatelessEjb.jsp @@ -0,0 +1,228 @@ +<%@ taglib uri="/webconsole" prefix="jb" %> + + +<% + String ejbName = new javax.management.ObjectName(request.getParameter("ObjectName")).getKeyProperty ("name"); + String ejbModule = new javax.management.ObjectName(request.getParameter("ObjectName")).getKeyProperty ("EJBModule"); + String containerUrl = "jboss.j2ee:service=EJB,jndiName=" + ejbName; + containerUrl = java.net.URLEncoder.encode(containerUrl); + containerUrl = "../jmx-console/HtmlAdaptor?action=inspectMBean&name=" + containerUrl; + + org.jboss.invocation.InvocationStatistics invokeStats= container.getInvokeStats (); + + String doReset = request.getParameter("doReset"); + if (doReset != null && doReset.equals("true")) + { + ejb.resetStats (); + } + String doResetInvoc= request.getParameter("doResetInvoc"); + if (doResetInvoc!= null && doResetInvoc.equals("true")) + { + invokeStats.resetStats (); + } + + String resetUrl = response.encodeURL(request.getRequestURI()) + "?doReset=true&ObjectName=" + java.net.URLEncoder.encode(request.getParameter("ObjectName")); + String resetInvocUrl = response.encodeURL(request.getRequestURI()) + "?doResetInvoc=true&ObjectName=" + java.net.URLEncoder.encode(request.getParameter("ObjectName")); + String myUrl = response.encodeURL(request.getRequestURI()) + "?" + "&ObjectName=" + java.net.URLEncoder.encode(request.getParameter("ObjectName")); + org.jboss.metadata.BeanMetaData beanMetaData = container.getBeanMetaData(); + +%> +<%! +public String addStatRow (javax.management.j2ee.statistics.Statistic stat) +{ + String start = new java.util.Date(stat.getStartTime ()).toString (); + String lastSample = new java.util.Date(stat.getLastSampleTime ()).toString (); + + String result = "" + stat.getName() + " (unit: " + stat.getUnit () + ")" + + ""; + + if (stat instanceof javax.management.j2ee.statistics.CountStatistic) + { + result+= ""; + } + else if (stat instanceof javax.management.j2ee.statistics.RangeStatistic) + { + javax.management.j2ee.statistics.RangeStatistic rStat = (javax.management.j2ee.statistics.RangeStatistic)stat; + + result+= "" + + ""; + } + + result+= "
" + ((javax.management.j2ee.statistics.CountStatistic)stat).getCount() + "" + rStat.getCurrent () + "" + rStat.getLowWaterMark () + "" + rStat.getHighWaterMark() + "
" + start + "" + lastSample + " "; + + return result; + +} +%> + + + + +JBoss Management Console - Stateless Session Bean + + + + + + + + + +
+
+
+
+

Stateless Session Bean

+

Name

+

<%=beanMetaData.getEjbName()%> (JNDI: <%=ejbName%>)

+

EJB Module

+

<%=ejbModule %>

+

Bean Statistics:

+

 

+<% +if (ejb.isstatisticsProvider()) +{ +%> + + + + + + + + <% + javax.management.j2ee.statistics.StatelessSessionBeanStats stats = (javax.management.j2ee.statistics.StatelessSessionBeanStats)ejb.getstats (); +%> + <%=addStatRow (stats.getMethodReadyCount ()) %> + <%=addStatRow (stats.getCreateCount ()) %> + <%=addStatRow (stats.getRemoveCount ()) %> + +
+

Name

+
+

Value

+ + + + + + +
+

Current

+
+

Low

+
+

High

+
+
+

Start Time

+
+

Last Sample Time

+
+

Reset Stats / Refresh Stats

+<% +} +else +{ +%> +

none.

+<% +} +%> +

 

+

 

+

Invocation Statistics:

+

 

+<% + java.util.Iterator iterInvoc = invokeStats.getStats().entrySet().iterator(); + if (iterInvoc.hasNext()) + { + +%> + + + + + + + + + + + <% + while (iterInvoc.hasNext()) + { + java.util.Map.Entry entry = (java.util.Map.Entry) iterInvoc.next(); + org.jboss.invocation.InvocationStatistics.TimeStatistic stat = (org.jboss.invocation.InvocationStatistics.TimeStatistic) entry.getValue(); + %> + + + + + + + + + + <% + } + %> +
+

Method name

+
+

Min (ms)

+
+

Max (ms)

+
+

Average (ms)

+
+

Total (ms)

+
+

# Invocations

+
+

<%=((java.lang.reflect.Method)entry.getKey()).getName()%>

+
+

<%=stat.minTime%>

+
+

<%=stat.maxTime%>

+
+

<%=(float)stat.totalTime/(float)stat.count%>

+
+

<%=stat.totalTime%>

+
+

<%=stat.count%>

+
+

Reset Stats / Refresh Stats

+<% + } + else + { +%> +

none.

+<% + } +%> + +

 

+

Actual concurrent invocations: <%=invokeStats.concurrentCalls%> (max: <%=invokeStats.maxConcurrentCalls%>)

+

 

+

 

+

 

+

View associated container MBean

+
+

+
+
+ + +
+ + + + + diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/SysProperties.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/SysProperties.jsp new file mode 100644 index 0000000000..20ea078bdc --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/SysProperties.jsp @@ -0,0 +1,55 @@ + + + + +JBoss Management Console - System Properties + + + + + + + +
+
+
+
+

JBoss™ System Properties

+

 

+ + +<% + java.util.Properties props = System.getProperties (); + java.util.Iterator iter = props.keySet().iterator(); + + while (iter.hasNext()) + { + String key = (String)iter.next(); + String value = props.getProperty (key); +%> + + + + +<% + } +%> + +
<%=key%> <%=value%> 
+

+
+

+
+
+ + +
+ + + + + diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/Topic.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/Topic.jsp new file mode 100644 index 0000000000..f183ea3e12 --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/Topic.jsp @@ -0,0 +1,114 @@ +<%@ page import="java.net.URLEncoder, + org.jboss.mq.*, + org.jboss.mq.server.*" +%> +<%@ taglib uri="/webconsole" prefix="jb" %> + +<% + String objParameter = "&ObjectName=" + URLEncoder.encode(request.getParameter("ObjectName")); + String myUrl = response.encodeURL(request.getRequestURI()) + "?" + objParameter; +%> + + + + + +JBoss Management Console - JMS Topic + + + + + + + + + +
+ + +
+
+ + + + + + + +
+ + + +
+

Name

+

<%=topic.getTopicName()%>

+

JNDI Name

+

<%=topic.getJNDIName()%>

+

Message statistics:

+ + + + + + + + + + + + + +
+

All Message Count:

+
+

Durable Message Count:

+
+

Non Durable Message Count:

+
+

Maximum Depth:

+
<%=topic.getAllMessageCount()%><%=topic.getDurableMessageCount()%><%=topic.getNonDurableMessageCount()%><%=topic.getMaxDepth()%>
+

 

+

 

+

Subscription statistics:

+ + + + + + + + + + + +
+

All Subscriptions Count:

+
+

Durable Subcriptions Count

+
+

Non Durable Subscriptions Count:

+
<%=topic.getAllSubscriptionsCount()%><%=topic.getDurableSubscriptionsCount()%><%=topic.getNonDurableSubscriptionsCount()%>
+

Refresh

+

 

+

 

+ +
+

+
+
+ + + +
+ +
+ + + + + \ No newline at end of file diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/TopicNavigation.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/TopicNavigation.jsp new file mode 100644 index 0000000000..b481c0c0b7 --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/TopicNavigation.jsp @@ -0,0 +1,9 @@ +<%@ page import="java.net.URLEncoder" %> +<%@ taglib uri="/webconsole" prefix="jb" %> +<% + String objParameter = "ObjectName=" + URLEncoder.encode(request.getParameter("ObjectName")); +%> +"> + " /> + " /> + \ No newline at end of file diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/TopicSubscriptions.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/TopicSubscriptions.jsp new file mode 100644 index 0000000000..89eb38ed95 --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/TopicSubscriptions.jsp @@ -0,0 +1,108 @@ +<%@ page import="java.net.URLEncoder, + org.jboss.mq.*, + org.jboss.mq.server.*, + java.util.*, + java.text.DateFormat" +%> +<%@ taglib uri="/webconsole" prefix="jb" %> + +<% + String objParameter = "&ObjectName=" + URLEncoder.encode(request.getParameter("ObjectName")); + String myUrl = response.encodeURL(request.getRequestURI()) + "?" + objParameter; + + MessageCounter[] counter = topic.getMessageCounter(); + DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.MEDIUM); +%> + + + + + +JBoss Management Console - JMS Topic + + + + + + + + + +
+ + +
+
+ + + + + + + +
+ + + +
+

Name

+

<%=topic.getTopicName()%>

+

Subscriptions:

+ + + + + + + + +<% for(int i = 0; i < counter.length; i++) +{ + String lastModified = "N/A"; + if (counter[i].getLastUpdate() > 0) + { + lastModified = dateFormat.format(new Date(counter[i].getLastUpdate())); + } +%> + + + + + + + +<%}%> +
+

Subscription Name:

+
+

Durable:

+
+

Message Count:

+
+

Message Count Delta:

+
+

Last Message Add Date:

+
 <%=counter[i].getDestinationSubscription()%> <%=counter[i].getDestinationDurable()%><%=counter[i].getDepth()%><%=counter[i].getDepthDelta()%><%=lastModified%>
+

Refresh

+

 

+

 

+
+

+
+
+ + + +
+ +
+ + + + + \ No newline at end of file diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/WEB-INF/classes/Classloaders.bsh b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/WEB-INF/classes/Classloaders.bsh new file mode 100644 index 0000000000..438489760f --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/WEB-INF/classes/Classloaders.bsh @@ -0,0 +1,83 @@ +import org.jboss.console.manager.interfaces.*; +import org.jboss.console.manager.interfaces.impl.*; +import org.jboss.console.plugins.*; +import org.jboss.console.plugins.helpers.*; + +import javax.management.*; + + String getVersion (PluginContext ctx) + { + return "0.0a"; + } + + String getName (PluginContext ctx) + { + return "UCL lister"; + } + + ResourceTreeNode createUCLSubResource (PluginContext ctx, ObjectInstance instance) + { + String uclName = instance.getObjectName().getKeyProperty ("UCL"); + TreeNodeMenuEntry[] menus = ctx.createMenus (new String[] + { + "Before for UCL="+uclName, "before.html&ucl="+uclName, + null, + "After", "test.html" + }); + + return ctx.createResourceNode ( + "UCL " + uclName, // name + "UCL with id " + uclName, // description + "arrow.gif", // Icon URL + "mapage&ucl=" + uclName, // Default URL + menus, + null, + null, + instance.getObjectName().toString(), + instance.getClassName () ); + } + + ResourceTreeNode[] createUCLSubResources (PluginContext ctx) + { + ObjectInstance[] insts = + ctx.getMBeansForClass("jmx.loading:*", + "org.jboss.mx.loading.UnifiedClassLoader2"); + ctx.getLogger().info("TAILLE: " + insts.length); + ResourceTreeNode[] result = new ResourceTreeNode[10];//[insts.length]; + for (int i=0; i + + + + + + + + + jboss.admin:service=PluginManager + diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/WEB-INF/tlds/webconsole.tld b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/WEB-INF/tlds/webconsole.tld new file mode 100644 index 0000000000..5baeb3a20e --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/WEB-INF/tlds/webconsole.tld @@ -0,0 +1,64 @@ + + + + + 1.0 + 1.1 + webconsole + + + mbean + org.jboss.console.plugins.helpers.servlet.MBeanTag + org.jboss.console.plugins.helpers.servlet.MBeanTagExtraInfo + JSP + Returns a proxy to an MBean reading the "ObjectName" query parameter + + mbean + false + true + + + intf + true + true + + + id + true + false + + + + + navigation + org.jboss.console.plugins.helpers.servlet.NavigationTag + JSP + + selectedTabName + false + true + + + + + tab + org.jboss.console.plugins.helpers.servlet.TabTag + JSP + + name + true + true + + + href + true + + + selected + true + + + + \ No newline at end of file diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/WEB-INF/web.xml b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/WEB-INF/web.xml new file mode 100644 index 0000000000..18d89ecb6d --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/WEB-INF/web.xml @@ -0,0 +1,356 @@ + + + + + Web Admin Console + + J2EEFolder + org.jboss.console.plugins.helpers.ServletPluginHelper + + ScriptName + J2EEFolder.bsh + + + IsRootNode + true + + + ContextName + /web-console + + 1 + + + + SystemFolder + org.jboss.console.plugins.helpers.ServletPluginHelper + + ScriptName + SystemFolder.bsh + + + IsRootNode + true + + + ContextName + /web-console + + 1 + + + + MonitorsFolder + org.jboss.console.plugins.helpers.ServletPluginHelper + + WrapperClass + org.jboss.console.plugins.MonitorLister + + + IsRootNode + true + + + ContextName + /web-console + + 1 + + + + AOPFolder + org.jboss.console.plugins.helpers.ServletPluginHelper + + WrapperClass + org.jboss.console.plugins.AOPLister + + + IsRootNode + true + + + ContextName + /web-console + + 1 + + + + JMS Message + org.jboss.console.plugins.helpers.ServletPluginHelper + + WrapperClass + org.jboss.console.plugins.JMSLister + + + MBeanClass + org.jboss.management.j2ee.JMSResource + + + ContextName + /web-console + + 1 + + + + + + UCLs + org.jboss.console.plugins.helpers.ServletPluginHelper + + WrapperClass + org.jboss.console.plugins.UCLLister + + + FolderName + ROOT/System + + + ContextName + /web-console + + 1 + + + + MBeans + org.jboss.console.plugins.helpers.ServletPluginHelper + + WrapperClass + org.jboss.console.plugins.MBeansLister + + + FolderName + ROOT/System + + + ContextName + /web-console + + 1 + + + + JSR77 Domains and Servers + org.jboss.console.plugins.helpers.ServletPluginHelper + + WrapperClass + org.jboss.console.plugins.JSR77Lister + + + FolderName + ROOT/J2EE + + + ContextName + /web-console + + 1 + + + + JSR77 EJBModules and EJBs + org.jboss.console.plugins.helpers.ServletPluginHelper + + WrapperClass + org.jboss.console.plugins.EJBModuleLister + + + MBeanClass + org.jboss.management.j2ee.EJBModule + + + ContextName + /web-console + + 1 + + + + JSR77 J2EE Apps + org.jboss.console.plugins.helpers.ServletPluginHelper + + WrapperClass + org.jboss.console.plugins.J2EEAppLister + + + MBeanClass + org.jboss.management.j2ee.J2EEApplication + + + ContextName + /web-console + + 1 + + + + JSR77 WebModule + org.jboss.console.plugins.helpers.ServletPluginHelper + + WrapperClass + org.jboss.console.plugins.WebModuleLister + + + MBeanClass + org.jboss.management.j2ee.WebModule + + + ContextName + /web-console + + 1 + + + + HTTP Invocation + org.jboss.console.remote.InvokerServlet + 1 + + + + Create Snapshot + org.jboss.console.plugins.monitor.CreateSnapshotServlet + 1 + + + + Manage Snapshot + org.jboss.console.plugins.monitor.ManageSnapshotServlet + 1 + + + + Create Threshold Monitor + org.jboss.console.plugins.monitor.CreateThresholdMonitorServlet + 1 + + + + Manage Threshold Monitor + org.jboss.console.plugins.monitor.ManageThresholdMonitorServlet + 1 + + + + Create String Threshold Monitor + org.jboss.console.plugins.monitor.CreateStringThresholdMonitorServlet + 1 + + + + Manage String Threshold Monitor + org.jboss.console.plugins.monitor.ManageStringThresholdMonitorServlet + 1 + + + + Clear Monitor Alerts + org.jboss.console.plugins.monitor.ClearMonitorAlertsServlet + 1 + + + + Status Servlet + org.jboss.web.tomcat.tc5.StatusServlet + + + + Status Servlet + /status + + + + HTTP Invocation + /Invoker/* + + + + Create Snapshot + /CreateSnapshot + + + + Manage Snapshot + /ManageSnapshot + + + + Create Threshold Monitor + /CreateThresholdMonitor + + + + Manage Threshold Monitor + /ManageThresholdMonitor + + + + Create String Threshold Monitor + /CreateStringThresholdMonitor + + + + Manage String Threshold Monitor + /ManageStringThresholdMonitor + + + + Clear Monitor Alerts + /ClearMonitorAlerts + + + + /webconsole + /WEB-INF/tlds/webconsole.tld + + + + + + BASIC + JBoss WEB Console + + + + JBossAdmin + + diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/WebModule.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/WebModule.jsp new file mode 100644 index 0000000000..ce860d42d1 --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/WebModule.jsp @@ -0,0 +1,102 @@ +<%@ page import="javax.management.ObjectName"%> + <%-- + | + | Author: Sacha Labourey (sacha@jboss.org) + | + | Distributable under LGPL license. + | See terms of license at gnu.org. + +--%> +<%@ taglib uri="/webconsole" prefix="jb" %> + + + + + +JBoss Management Console - Web Module + + + + + + + + + +
+
+
+
+

Web Module: '<%=new ObjectName(webModule.getobjectName()).getKeyProperty("name")%>'

+

 

+ + + + + + + + +
+

Servlets

+
+

This Web Module is composed of the following Servlets:

+ <% + String[] namesStr = webModule.getservlets(); + ObjectName[] names = null; + if (namesStr != null) { + names = new ObjectName[namesStr.length]; + for (int i = 0; i < namesStr.length; i++) { + names[i] = new ObjectName(namesStr[i]); + } + } + if (names != null) + %> +
    + <% + for (int i = 0; i < names.length; i++) + { + %> +
  • +

    <%=names[i].getKeyProperty("name")%>

    +
  • + <% + } + %> +
+

Number of Servlets: <%=(names!=null?names.length:0)%>

+
+

 

+ + + + + + + + +
+

Deployment + Descriptor

+
+                    <%=org.jboss.console.plugins.helpers.servlet.ServletHelper.filter(webModule.getdeploymentDescriptor())%>
+                    
+
+

 

+

 

+
+

+
+
+ + +
+ + + + + diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/applet.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/applet.jsp new file mode 100644 index 0000000000..57ece06565 --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/applet.jsp @@ -0,0 +1,24 @@ + + + + + + + +

+ + + + + + +

+ + + + diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/createSnapshot.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/createSnapshot.jsp new file mode 100644 index 0000000000..41e1bbbd9c --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/createSnapshot.jsp @@ -0,0 +1,98 @@ +<%@ page import="javax.management.MBeanServer, + org.jboss.mx.util.MBeanServerLocator, + org.jboss.mx.util.InstanceOfQueryExp, + java.util.Set, + java.util.Iterator, + javax.management.ObjectInstance, + javax.management.ObjectName, + java.util.HashSet"%> + <%-- + | + | Author: Bill Burke (bill@jboss.org) + | + | Distributable under LGPL license. + | See terms of license at gnu.org. + +--%> +<% + String error = (String)request.getAttribute("error"); + String attribute = request.getParameter("attribute"); + if (attribute == null) attribute = ""; + String monitorName = request.getParameter("monitorName"); + if (monitorName == null) monitorName = attribute + " Snapshot"; + String objectName = request.getParameter("objectName"); + if (objectName == null) objectName = ""; + String period = request.getParameter("period"); + if (period == null) period = ""; + String maxSize = request.getParameter("maxSize"); + if (maxSize == null) maxSize = ""; +%> + + + + +JBoss Management Console - Create Snapshot + + + + + + + + + +
+
+
+
+

Create Snapshot MBean Monitor

+

 

+<% + if (error != null) + { +%> +

<%=error%>

+<% + } +%> +
+ + + + + + + + + + + + + + + + + + + + + +
Monitor NameThe name of the monitor and how it will be references within web console
Object NameThe MBean javax.management.ObjectName of the MBean you are monitoring
AttributeThe MBean Attribute you are monitoring
Time PeriodHow often should threshold be tested.
+ +
+
+

+
+
+ + +
+ + + + + diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/createStringThresholdMonitor.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/createStringThresholdMonitor.jsp new file mode 100644 index 0000000000..47db044c40 --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/createStringThresholdMonitor.jsp @@ -0,0 +1,173 @@ +<%@ page import="javax.management.MBeanServer, + org.jboss.mx.util.MBeanServerLocator, + org.jboss.mx.util.InstanceOfQueryExp, + java.util.Set, + java.util.Iterator, + javax.management.ObjectInstance, + javax.management.ObjectName, + java.util.HashSet"%> + <%-- + | + | Author: Bill Burke (bill@jboss.org) + | + | Distributable under LGPL license. + | See terms of license at gnu.org. + +--%> +<% + MBeanServer mbeanServer = MBeanServerLocator.locateJBoss(); + String error = (String)request.getAttribute("error"); + String monitorName = request.getParameter("monitorName"); + if (monitorName == null) monitorName = ""; + String objectName = request.getParameter("objectName"); + if (objectName == null) objectName = ""; + String attribute = request.getParameter("attribute"); + if (attribute == null) attribute = ""; + String threshold = request.getParameter("threshold"); + if (threshold == null && objectName != null && attribute != null) + { + threshold = (String)mbeanServer.getAttribute(new ObjectName(objectName), attribute); + } + else if (threshold == null) threshold = ""; + + String period = request.getParameter("period"); + if (period == null) period = ""; + String equality = request.getParameter("equality"); + if (equality == null) equality = ""; + else equality = "checked"; + String enabled = request.getParameter("enabled"); + if (enabled == null) enabled = ""; + else enabled = "checked"; + String[] alertStrings = request.getParameterValues("alerts"); + HashSet alertSet = null; + if (alertStrings != null) + { + alertSet = new HashSet(); + for (int i = 0; i < alertStrings.length; i++) + { + alertSet.add(alertStrings[i]); + } + } + + + +%> + + + + +JBoss Management Console - Create String Threshold Monitor + + + + + + + + + +
+
+
+
+

Create String Threshold MBean Monitor

+

 

+<% + if (error != null) + { +%> +

<%=error%>

+<% + } +%> +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Monitor NameThe name of the monitor and how it will be references within web console
Object NameThe MBean javax.management.ObjectName of the MBean you are monitoring
AttributeThe MBean Attribute you are monitoring
ThresholdThe value that will trigger an alert when the Comparison Equation is reached for the attribute value
Time PeriodHow often should threshold be tested.
Equality Trigger>Uncheck this box if you want an alert to trigger when attribute changes from threshold value
PersistedShould this monitor be created for next JBoss reboot?
Enable Monitor>Should this monitor be enabled.
Alerts +<% + InstanceOfQueryExp queryExp = null; + queryExp = new InstanceOfQueryExp("org.jboss.monitor.alerts.JBossAlertListener"); + Set alerts = mbeanServer.queryNames(null, queryExp); + if (alerts.size() > 0) + { +%> + + + Alert Listeners to trigger.
+ +
+
+

+
+
+ + +
+ + + + + diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/createStringThresholdMonitorSummary.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/createStringThresholdMonitorSummary.jsp new file mode 100644 index 0000000000..1fdbaae43f --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/createStringThresholdMonitorSummary.jsp @@ -0,0 +1,154 @@ +<%@ page import="javax.management.MBeanServer, + org.jboss.mx.util.MBeanServerLocator, + org.jboss.mx.util.InstanceOfQueryExp, + java.util.Set, + java.util.Iterator, + javax.management.ObjectInstance, + javax.management.ObjectName, + java.util.HashSet"%> + <%-- + | + | Author: Bill Burke (bill@jboss.org) + | + | Distributable under LGPL license. + | See terms of license at gnu.org. + +--%> +<% + String monitorName = request.getParameter("monitorName"); + if (monitorName == null) monitorName = ""; + String objectName = request.getParameter("objectName"); + if (objectName == null) objectName = ""; + String attribute = request.getParameter("attribute"); + if (attribute == null) attribute = ""; + String threshold = request.getParameter("threshold"); + if (threshold == null) threshold = ""; + String period = request.getParameter("period"); + if (period == null) period = ""; + String equality = request.getParameter("equality"); + if (equality == null) equality = ""; + else equality = "checked"; + String enabled = request.getParameter("enabled"); + if (enabled == null) enabled = ""; + else enabled = "checked"; + String[] alertStrings = request.getParameterValues("alerts"); + HashSet alertSet = null; + if (alertStrings != null) + { + alertSet = new HashSet(); + for (int i = 0; i < alertStrings.length; i++) + { + alertSet.add(alertStrings[i]); + } + } + + + +%> + + + + +JBoss Management Console - Create String Monitor Summary + + + + + + + + + +
+
+
+
+

String MBean Monitor Created

+

 

+

 

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Monitor NameThe name of the monitor and how it will be references within web console
Object NameThe MBean javax.management.ObjectName of the MBean you are monitoring
AttributeThe MBean Attribute you are monitoring
ThresholdThe value that will trigger an alert when the Comparison Equation is reached for the attribute value
Time PeriodHow often should threshold be tested.
Equality Trigger>Uncheck this box if you want an alert to trigger when attribute changes from threshold value
Enable Monitor>Should this monitor be enabled.
Alerts +<% + MBeanServer mbeanServer = MBeanServerLocator.locateJBoss(); + InstanceOfQueryExp queryExp = null; + queryExp = new InstanceOfQueryExp("org.jboss.monitor.alerts.JBossAlertListener"); + Set alerts = mbeanServer.queryNames(null, queryExp); + if (alerts.size() > 0) + { +%> + + + Alert Listeners to trigger.
+ +
+

+
+
+ + +
+ + + + + diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/createThresholdMonitor.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/createThresholdMonitor.jsp new file mode 100644 index 0000000000..15e9962641 --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/createThresholdMonitor.jsp @@ -0,0 +1,171 @@ +<%@ page import="javax.management.MBeanServer, + org.jboss.mx.util.MBeanServerLocator, + org.jboss.mx.util.InstanceOfQueryExp, + java.util.Set, + java.util.Iterator, + javax.management.ObjectInstance, + javax.management.ObjectName, + java.util.HashSet"%> + <%-- + | + | Author: Bill Burke (bill@jboss.org) + | + | Distributable under LGPL license. + | See terms of license at gnu.org. + +--%> +<% + String error = (String)request.getAttribute("error"); + String monitorName = request.getParameter("monitorName"); + if (monitorName == null) monitorName = ""; + String objectName = request.getParameter("objectName"); + if (objectName == null) objectName = ""; + String attribute = request.getParameter("attribute"); + if (attribute == null) attribute = ""; + String threshold = request.getParameter("threshold"); + if (threshold == null) threshold = ""; + String period = request.getParameter("period"); + if (period == null) period = ""; + String compare = request.getParameter("compare"); + if (compare == null) compare = "gt"; + String enabled = request.getParameter("enabled"); + if (enabled == null) enabled = ""; + String[] alertStrings = request.getParameterValues("alerts"); + HashSet alertSet = null; + if (alertStrings != null) + { + alertSet = new HashSet(); + for (int i = 0; i < alertStrings.length; i++) + { + alertSet.add(alertStrings[i]); + } + } + + + +%> + + + + +JBoss Management Console - Server Information + + + + + + + + + +
+
+
+
+

Create Threshold MBean Monitor

+

 

+<% + if (error != null) + { +%> +

<%=error%>

+<% + } +%> +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Monitor NameThe name of the monitor and how it will be references within web console
Object NameThe MBean javax.management.ObjectName of the MBean you are monitoring
AttributeThe MBean Attribute you are monitoring
ThresholdThe value that will trigger an alert when the Comparison Equation is reached for the attribute value
Time PeriodHow often should threshold be tested.
Comparison Equation + Boolean expression to use when testing threshold hit.
PersistedShould this monitor be created for next JBoss reboot?
Enable Monitor>Should this monitor be enabled.
Alerts +<% + MBeanServer mbeanServer = MBeanServerLocator.locateJBoss(); + InstanceOfQueryExp queryExp = null; + queryExp = new InstanceOfQueryExp("org.jboss.monitor.alerts.JBossAlertListener"); + Set alerts = mbeanServer.queryNames(null, queryExp); + if (alerts.size() > 0) + { +%> + + + Alert Listeners to trigger.
+ +
+
+

+
+
+ + +
+ + + + + diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/createThresholdMonitorSummary.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/createThresholdMonitorSummary.jsp new file mode 100644 index 0000000000..b3ca7ca247 --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/createThresholdMonitorSummary.jsp @@ -0,0 +1,157 @@ +<%@ page import="javax.management.MBeanServer, + org.jboss.mx.util.MBeanServerLocator, + org.jboss.mx.util.InstanceOfQueryExp, + java.util.Set, + java.util.Iterator, + javax.management.ObjectInstance, + javax.management.ObjectName, + java.util.HashSet"%> + <%-- + | + | Author: Bill Burke (bill@jboss.org) + | + | Distributable under LGPL license. + | See terms of license at gnu.org. + +--%> +<% + String monitorName = request.getParameter("monitorName"); + if (monitorName == null) monitorName = ""; + String objectName = request.getParameter("objectName"); + if (objectName == null) objectName = ""; + String attribute = request.getParameter("attribute"); + if (attribute == null) attribute = ""; + String threshold = request.getParameter("threshold"); + if (threshold == null) threshold = ""; + String period = request.getParameter("period"); + if (period == null) period = ""; + String compare = request.getParameter("compare"); + if (compare == null) compare = "gt"; + String enabled = request.getParameter("enabled"); + if (enabled == null) enabled = ""; + String[] alertStrings = request.getParameterValues("alerts"); + HashSet alertSet = null; + if (alertStrings != null) + { + alertSet = new HashSet(); + for (int i = 0; i < alertStrings.length; i++) + { + alertSet.add(alertStrings[i]); + } + } + + + +%> + + + + +JBoss Management Console - Server Information + + + + + + + + + +
+
+
+
+

Threshold MBean Monitor Created

+

 

+

 

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Monitor NameThe name of the monitor and how it will be references within web console
Object NameThe MBean javax.management.ObjectName of the MBean you are monitoring
AttributeThe MBean Attribute you are monitoring
ThresholdThe value that will trigger an alert when the Comparison Equation is reached for the attribute value
Time PeriodHow often should threshold be tested.
Comparison Equation + Boolean expression to use when testing threshold hit.
Enable Monitor>Should this monitor be enabled.
Alerts +<% + MBeanServer mbeanServer = MBeanServerLocator.locateJBoss(); + InstanceOfQueryExp queryExp = null; + queryExp = new InstanceOfQueryExp("org.jboss.monitor.alerts.JBossAlertListener"); + Set alerts = mbeanServer.queryNames(null, queryExp); + if (alerts.size() > 0) + { +%> + + + Alert Listeners to trigger.
+ +
+

+
+
+ + +
+ + + + + diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/css/dtree.css b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/css/dtree.css new file mode 100644 index 0000000000..ccc20f8c35 --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/css/dtree.css @@ -0,0 +1,34 @@ +/*--------------------------------------------------| +| dTree 2.05 | www.destroydrop.com/javascript/tree/ | +|---------------------------------------------------| +| Copyright (c) 2002-2003 Geir Landrö | +|--------------------------------------------------*/ + +.dtree { + font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; + font-size: 11px; + color: #666; + white-space: nowrap; +} +.dtree img { + border: 0px; + vertical-align: middle; +} +.dtree a { + color: #333; + text-decoration: none; +} +.dtree a.node, .dtree a.nodeSel { + white-space: nowrap; + padding: 1px 2px 1px 2px; +} +.dtree a.node:hover, .dtree a.nodeSel:hover { + color: #333; + text-decoration: underline; +} +.dtree a.nodeSel { + background-color: #c0d2ec; +} +.dtree .clip { + overflow: hidden; +} \ No newline at end of file diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/css/jboss.css b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/css/jboss.css new file mode 100644 index 0000000000..84f845616f --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/css/jboss.css @@ -0,0 +1,232 @@ +body { + margin: 13px 0px 10px 0px; + background-color: #ffffff; + font-size: 10px; + font-family: verdana, arial, "sans-serif"; + color: #606060; + } +img { + border: 0px; + } +#header { + background-color: #FF7A22; + background-image: url('header_bg.jpg'); + background-repeat: no-repeat; + background-position: 226px 0px; + width: 100%; + height: 80px + } +#header #banner { + float: right; + margin: 8px 5px 0px 0px; + } +#logo { + position: absolute; + top: 4px; + left: 4px; + z-index: 200; +} +#navigation_bar { + background-color: #f0f0f0; + border-bottom: 1px dotted #999999; + height: 20px; + } +#items { + font-size: 12px; + width: 600px; + margin: 5px 5px 5px 170px; + position: relative; + z-index: 300; + } +#items .item { + margin-right: 10px; + } +.side_block { + margin: 15px 5px 10px 5px; + background-color: #fbfbfb; + border: 1px solid #f0f0f0; + } +.side_block h3 { + font-size: 11px; + font-weight: 100; + width: 100%; + margin: 0px 0px 5px 0px; + padding: 4px 4px 4px 10x; + background-color: #f0f0f0; + } +.side_block h4 { + font-size: 11px; + color: #FF7A22; + font-weight: bold; + margin: 10px 5px 4px 5px; + } +.side_block p { + margin: 5px 5px 3px 5px; + } +.side_block form { + margin: 0px 0px 0px 5px; + } +.side_block #login { + font-size: 9px; + } +.side_block p img { + text-align: center; + } +#content { + width: 90%; + margin: 10px auto; + } +#left { + float: left; + width: 14%; + } +#right { + float: right; + width: 14%; + } +.content_block { + text-align: justify; + border: 1px solid #999999; + margin: 5px; + width: 31%; + float: left; + } +.content_block p { + margin: 0px 5px 3px 5px; + } +.content_block h3 { + font-size: 11px; + font-weight: bold; + color: #000000; + margin: 0px 0px 5px 0px; + padding: 4px 4px 4px 4x; + text-align: center; + background-color: #f0f0f0; + border-bottom: 1px solid #999999 + } +.content_block h4 { + font-size: 11px; + color: #FF7A22; + text-align: left; + font-weight: bold; + margin: 10px 5px 4px 5px; + } +#footer { + clear: both; + border-top: 1px dotted #999999; + } +#credits { + background-color: #f0f0f0; + padding: 5px; + text-align: center; + } +#footer_bar { + height: 20px; + width: 100%; + background-color: #FF7A22; + } +.hide { + display: none; + } +.spacer { + clear: both; + } +.spacer hr { + display: none; + } +.center { + text-align: center; + } +#youcandoit { + background-image: url('youcandoit.jpg'); + background-repeat: repeat-x; + height: 165px; + margin: 0px 30px; + } +.data_table { + font-size: 10px; + font-family: verdana, arial, "sans-serif"; + margin: 5px; + border-collapse: collapse; +} +.data_table h2 { + font-size: 11px; + margin: 5px 5px 5px 5px; + text-align: center +} +.data_table h4 { + font-size: 11px; + color: #FF7A22; + margin: 5px 5px 5px 5px; + text-align: center +} + +.container { + border-top-width: 0px; + border-right: 1px solid #CCCCCC; + border-left: 1px solid #CCCCCC; + border-bottom: 1px solid #CCCCCC; + text-align: justify; + margin: 5px; + float: left; +} + +.container p { + font-size: 10px; + font-family: verdana, arial, "sans-serif"; + margin: 0px 5px 3px 5px; +} + +.container h3 { + font-size: 11px; + font-weight: bold; + color: #000000; + margin: 0px 0px 5px 0px; + padding: 4px 4px 4px 4x; + text-align: center; + background-color: #f0f0f0; + border-bottom: 1px solid #999999 +} + +.container h4 { + font-size: 11px; + color: #FF7A22; + text-align: left; + font-weight: bold; + margin: 10px 5px 4px 5px; +} + +.tabSpacer { + border-bottom: 1px solid #CCCCCC; +} +.tabSpacer p { + margin: 0px; +} +.tab { + border-top: 1px solid #CCCCCC; + border-right: 1px solid #CCCCCC; + border-left: 1px solid #CCCCCC; +} +.tabOff { + border-top: 1px solid #CCCCCC; + border-right: 1px solid #CCCCCC; + border-left: 1px solid #CCCCCC; + border-bottom: 1px solid #CCCCCC; + background-color: #F0F0F0; +} + +.tab p, .tabOff p { + padding: 6px 8px; + margin: 0px; + font-size: 11px; + font-weight: bold; + +} + +.tab p a, .tabOff p a { + text-decoration: none; + color: #000000; +} +.tab p a:hover, .tabOff p a:hover { + color: #666666; +} \ No newline at end of file diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/dtree.js b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/dtree.js new file mode 100644 index 0000000000..c82d4661fd --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/dtree.js @@ -0,0 +1,347 @@ +/*--------------------------------------------------| +| dTree 2.05 | www.destroydrop.com/javascript/tree/ | +|---------------------------------------------------| +| Copyright (c) 2002-2003 Geir Landrö | +| | +| This script can be used freely as long as all | +| copyright messages are intact. | +| | +| Updated: 17.04.2003 | +|--------------------------------------------------*/ + +// Node object +function Node(id, pid, name, url, title, target, icon, iconOpen, open) { + this.id = id; + this.pid = pid; + this.name = name; + this.url = url; + this.title = title; + this.target = target; + this.icon = icon; + this.iconOpen = iconOpen; + this._io = open || false; + this._is = false; + this._ls = false; + this._hc = false; + this._ai = 0; + this._p; +}; + +// Tree object +function dTree(objName) { + this.config = { + target : null, + folderLinks : true, + useSelection : true, + useCookies : true, + useLines : true, + useIcons : true, + useStatusText : false, + closeSameLevel : false, + inOrder : false + } + this.icon = { + root : 'img/base.gif', + folder : 'img/folder.gif', + folderOpen : 'img/folderopen.gif', + node : 'img/page.gif', + empty : 'img/empty.gif', + line : 'img/line.gif', + join : 'img/join.gif', + joinBottom : 'img/joinbottom.gif', + plus : 'img/plus.gif', + plusBottom : 'img/plusbottom.gif', + minus : 'img/minus.gif', + minusBottom : 'img/minusbottom.gif', + nlPlus : 'img/nolines_plus.gif', + nlMinus : 'img/nolines_minus.gif' + }; + this.obj = objName; + this.aNodes = []; + this.aIndent = []; + this.root = new Node(-1); + this.selectedNode = null; + this.selectedFound = false; + this.completed = false; +}; + +// Adds a new node to the node array +dTree.prototype.add = function(id, pid, name, url, title, target, icon, iconOpen, open) { + this.aNodes[this.aNodes.length] = new Node(id, pid, name, url, title, target, icon, iconOpen, open); +}; + +// Open/close all nodes +dTree.prototype.openAll = function() { + this.oAll(true); +}; +dTree.prototype.closeAll = function() { + this.oAll(false); +}; + +// Outputs the tree to the page +dTree.prototype.toString = function() { + var str = '
\n'; + if (document.getElementById) { + if (this.config.useCookies) this.selectedNode = this.getSelected(); + str += this.addNode(this.root); + } else str += 'Browser not supported.'; + str += '
'; + if (!this.selectedFound) this.selectedNode = null; + this.completed = true; + return str; +}; + +// Creates the tree structure +dTree.prototype.addNode = function(pNode) { + var str = ''; + var n=0; + if (this.config.inOrder) n = pNode._ai; + for (n; n'; + } + if (node.url) { + str += ''; + str += node.name; + if (node.url || ((!this.config.folderLinks || !node.url) && node._hc)) str += ''; + str += '
'; + if (node._hc) { + str += '
'; + str += this.addNode(node); + str += '
'; + } + this.aIndent.pop(); + return str; +}; + +// Adds the empty and line icons +dTree.prototype.indent = function(node, nodeId) { + var str = ''; + if (this.root.id != node.pid) { + for (var n=0; n'; + (node._ls) ? this.aIndent.push(0) : this.aIndent.push(1); + if (node._hc) { + str += ''; + } else str += ''; + } + return str; +}; + +// Checks if a node has any children and if it is the last sibling +dTree.prototype.setCS = function(node) { + var lastId; + for (var n=0; n + + +Administration Console + + + + + + + <body> + + <p>Please use a frame-capable browser.</p> + + </body> + + + + diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/listMonitors.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/listMonitors.jsp new file mode 100644 index 0000000000..5c559c3aec --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/listMonitors.jsp @@ -0,0 +1,142 @@ +<%@ page import="javax.management.MBeanServer, + org.jboss.mx.util.MBeanServerLocator, + org.jboss.mx.util.InstanceOfQueryExp, + java.util.Set, + java.util.Iterator, + javax.management.ObjectInstance, + javax.management.ObjectName, + java.util.HashSet, + java.util.ArrayList"%> + <%-- + | + | Author: Bill Burke (bill@jboss.org) + | + | Distributable under LGPL license. + | See terms of license at gnu.org. + +--%> +<% +try +{ +%> + + + + +JBoss Management Console - Manage Monitor + + + + + + + + + +
+
+
+
+

Monitors and Monitor Status

+

 

+ + + + + + + + +<% + MBeanServer mbeanServer = MBeanServerLocator.locateJBoss(); + InstanceOfQueryExp queryExp = null; + queryExp = new InstanceOfQueryExp("org.jboss.monitor.JBossMonitorMBean"); + Set monitors = mbeanServer.queryNames(null, queryExp); + Iterator mbeans = monitors.iterator(); + boolean someAlertSet = false; + while (mbeans.hasNext()) + { + ObjectName moname = (ObjectName)mbeans.next(); + String monitorName = (String)mbeanServer.getAttribute(moname, "MonitorName"); + ObjectName observedObject = (ObjectName)mbeanServer.getAttribute(moname, "ObservedObject"); + String attribute = (String)mbeanServer.getAttribute(moname, "ObservedAttribute"); + boolean enabled = ((Boolean)mbeanServer.getAttribute(moname, "Enabled")).booleanValue(); + + Object[] args = {"monitors", monitorName, "-service.xml"}; + String[] signature = {"java.lang.String", "java.lang.String", "java.lang.String"}; + Object rtn = mbeanServer.invoke(new ObjectName("jboss.admin:service=DeploymentFileRepository"), "isStored", args, signature); + boolean persisted = ((Boolean)rtn).booleanValue(); + + Object[] nullArgs = {}; + String[] nullSig = {}; + boolean alerted = ((Boolean)mbeanServer.invoke(moname, "alerted", nullArgs, nullSig)).booleanValue(); + if (alerted) someAlertSet = true; + String color = "black"; + if (!enabled) color = "grey"; + String status = ""; + if (alerted) + { + status = "ALERT"; + } + else if (!enabled) + { + status = "disabled"; + } + else + { + status = "OK"; + } + String link = null; + if (persisted) + { + link = "manageThresholdMonitor.jsp?monitorObjectName=" + java.net.URLEncoder.encode(moname.toString()); + } + else + { + link = "/jmx-console/HtmlAdaptor?action=inspectMBean&name=" + java.net.URLEncoder.encode(moname.toString()); + } + String observedMbeanLink = "/jmx-console/HtmlAdaptor?action=inspectMBean&name=" + java.net.URLEncoder.encode(observedObject.toString()); +%> + + + + + + + +<% + } + %> +
StatusMonitor NameObserved MBeanObserved Attribute 
<%=status%><%=monitorName%><%=observedObject.toString()%><%=attribute%>manage
+<% + if (someAlertSet) + { +%> +
+ +
+<% + } +} +catch (Exception ex) +{ + %> ERROR in parsing <% + ex.printStackTrace(); +} +%> +
+

+
+
+ + +
+ + + + + diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/manageSnapshot.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/manageSnapshot.jsp new file mode 100644 index 0000000000..56ba607ebb --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/manageSnapshot.jsp @@ -0,0 +1,132 @@ +<%@ page import="javax.management.MBeanServer, + org.jboss.mx.util.MBeanServerLocator, + org.jboss.mx.util.InstanceOfQueryExp, + java.util.Set, + java.util.Iterator, + javax.management.ObjectInstance, + javax.management.ObjectName, + java.util.HashSet, + java.util.ArrayList"%> + <%-- + | + | Author: Bill Burke (bill@jboss.org) + | + | Distributable under LGPL license. + | See terms of license at gnu.org. + +--%> +<% +try +{ + MBeanServer mbeanServer = MBeanServerLocator.locateJBoss(); + String error = (String)request.getAttribute("error"); + ObjectName moname = null; + String monitorName = null; + String monitorObjectName = request.getParameter("monitorObjectName"); + /* + if (monitorObjectName == null) // if we're being routed via + { + monitorName = (String)request.getAttribute("monitorName"); + moname = new ObjectName("jboss.snapshot:name=" + monitorName); + } + */ + moname = new ObjectName(monitorObjectName); + monitorName = (String)mbeanServer.getAttribute(moname, "MonitorName"); + ObjectName observedObject = (ObjectName)mbeanServer.getAttribute(moname, "ObservedObject"); + String attribute = (String)mbeanServer.getAttribute(moname, "ObservedAttribute"); + Long period = (Long)mbeanServer.getAttribute(moname, "Period"); + boolean recording = ((Boolean)mbeanServer.getAttribute(moname, "Recording")).booleanValue(); +%> + + + + +JBoss Management Console - Manage Snapshot + + + + + + + + + +
+
+
+
+

Manage Snapshot

+

 

+<% + if (error != null) + { +%> +

<%=error%>

+<% + } +%> +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Monitor NameThe name of the monitor and how it will be references within web console
Monitor's Object NameThe MBean javax.management.ObjectName
Object NameThe MBean javax.management.ObjectName of the MBean you are monitoring
AttributeThe MBean Attribute you are monitoring
Time PeriodHow often should threshold be tested.
+<% if (recording) + { +%> + +<% } else {%> + +<% } %> + + + + +
+<% +} +catch (Exception ex) +{ + %> ERROR <% + ex.printStackTrace(); +} +%> +
+

+
+
+ + +
+ + + + + diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/manageStringThresholdMonitor.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/manageStringThresholdMonitor.jsp new file mode 100644 index 0000000000..57921f75f9 --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/manageStringThresholdMonitor.jsp @@ -0,0 +1,199 @@ +<%@ page import="javax.management.MBeanServer, + org.jboss.mx.util.MBeanServerLocator, + org.jboss.mx.util.InstanceOfQueryExp, + java.util.Set, + java.util.Iterator, + javax.management.ObjectInstance, + javax.management.ObjectName, + java.util.HashSet, + java.util.ArrayList"%> + <%-- + | + | Author: Bill Burke (bill@jboss.org) + | + | Distributable under LGPL license. + | See terms of license at gnu.org. + +--%> +<% +try +{ + MBeanServer mbeanServer = MBeanServerLocator.locateJBoss(); + String error = (String)request.getAttribute("error"); + String monitorObjectName = request.getParameter("monitorObjectName"); + ObjectName moname = new ObjectName(monitorObjectName); + String monitorName = (String)mbeanServer.getAttribute(moname, "MonitorName"); + ObjectName observedObject = (ObjectName)mbeanServer.getAttribute(moname, "ObservedObject"); + String attribute = (String)mbeanServer.getAttribute(moname, "ObservedAttribute"); + String threshold = (String)mbeanServer.getAttribute(moname, "Threshold"); + Long period = (Long)mbeanServer.getAttribute(moname, "Period"); + boolean equality = ((Boolean)mbeanServer.getAttribute(moname, "EqualityTriggersAlert")).booleanValue(); + boolean enabled = ((Boolean)mbeanServer.getAttribute(moname, "Enabled")).booleanValue(); + ArrayList alerts = (ArrayList)mbeanServer.getAttribute(moname, "AlertListeners"); + + Object[] args = {"monitors", monitorName, "-service.xml"}; + String[] signature = {"java.lang.String", "java.lang.String", "java.lang.String"}; + Object rtn = mbeanServer.invoke(new ObjectName("jboss.admin:service=DeploymentFileRepository"), "isStored", args, signature); + boolean persisted = ((Boolean)rtn).booleanValue(); + + Object[] nullArgs = {}; + String[] nullSig = {}; + boolean alerted = ((Boolean)mbeanServer.invoke(moname, "alerted", nullArgs, nullSig)).booleanValue(); + Object triggeredValue = null; + if (alerted) triggeredValue = mbeanServer.getAttribute(moname, "TriggeredAttributeValue"); + String color = alerted ? "red" : "green"; + +%> + + + + +JBoss Management Console - Manage Monitor + + + + + + + + + +
+
+
+
+

Manage String MBean Monitor

+

 

+<% + if (error != null) + { +%> +

<%=error%>

+<% + } +%> +
+ + + + + + + + + + + + + + + + + + + + + + +<% + if (alerted) + { +%> + + + + + +<% } %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Monitor NameThe name of the monitor and how it will be references within web console
Monitor's Object NameThe MBean javax.management.ObjectName
Object NameThe MBean javax.management.ObjectName of the MBean you are monitoring
AttributeThe MBean Attribute you are monitoring
Triggered ValueThe attribute value the triggered the threshold.
ThresholdThe value that will trigger an alert when the Comparison Equation is reached for the attribute value
Time PeriodHow often should threshold be tested.
Persist ChangesShould changes be reflected in deployment file.
Equality Trigger>Uncheck this box if you want an alert to trigger when attribute changes from threshold value
Enable Monitor>Should this monitor be enabled.
Alerts +<% + InstanceOfQueryExp queryExp = null; + queryExp = new InstanceOfQueryExp("org.jboss.monitor.alerts.JBossAlertListener"); + Set allAlertTypes = mbeanServer.queryNames(null, queryExp); + + if (allAlertTypes.size() > 0) + { +%> + + + Alert Listeners to trigger.
+ + +<% + if (alerted) + { +%> + +<% + } +%> +
+<% +} +catch (Exception ex) +{ + %> ERROR in parsing <% + ex.printStackTrace(); +} +%> +
+

+
+
+ + +
+ + + + + diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/manageThresholdMonitor.jsp b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/manageThresholdMonitor.jsp new file mode 100644 index 0000000000..1b5229d2d1 --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/manageThresholdMonitor.jsp @@ -0,0 +1,204 @@ +<%@ page import="javax.management.MBeanServer, + org.jboss.mx.util.MBeanServerLocator, + org.jboss.mx.util.InstanceOfQueryExp, + java.util.Set, + java.util.Iterator, + javax.management.ObjectInstance, + javax.management.ObjectName, + java.util.HashSet, + java.util.ArrayList"%> + <%-- + | + | Author: Bill Burke (bill@jboss.org) + | + | Distributable under LGPL license. + | See terms of license at gnu.org. + +--%> +<% +try +{ + MBeanServer mbeanServer = MBeanServerLocator.locateJBoss(); + String error = (String)request.getAttribute("error"); + String monitorObjectName = request.getParameter("monitorObjectName"); + ObjectName moname = new ObjectName(monitorObjectName); + String monitorName = (String)mbeanServer.getAttribute(moname, "MonitorName"); + ObjectName observedObject = (ObjectName)mbeanServer.getAttribute(moname, "ObservedObject"); + String attribute = (String)mbeanServer.getAttribute(moname, "ObservedAttribute"); + String threshold = (String)mbeanServer.getAttribute(moname, "Threshold"); + Long period = (Long)mbeanServer.getAttribute(moname, "Period"); + int compare = ((Integer)mbeanServer.getAttribute(moname, "CompareTo")).intValue(); + boolean enabled = ((Boolean)mbeanServer.getAttribute(moname, "Enabled")).booleanValue(); + ArrayList alerts = (ArrayList)mbeanServer.getAttribute(moname, "AlertListeners"); + + Object[] args = {"monitors", monitorName, "-service.xml"}; + String[] signature = {"java.lang.String", "java.lang.String", "java.lang.String"}; + Object rtn = mbeanServer.invoke(new ObjectName("jboss.admin:service=DeploymentFileRepository"), "isStored", args, signature); + boolean persisted = ((Boolean)rtn).booleanValue(); + + Object[] nullArgs = {}; + String[] nullSig = {}; + boolean alerted = ((Boolean)mbeanServer.invoke(moname, "alerted", nullArgs, nullSig)).booleanValue(); + Object triggeredValue = null; + if (alerted) triggeredValue = mbeanServer.getAttribute(moname, "TriggeredAttributeValue"); + String color = alerted ? "red" : "green"; + +%> + + + + +JBoss Management Console - Manage Monitor + + + + + + + + + +
+
+
+
+

Manage Threshold MBean Monitor

+

 

+<% + if (error != null) + { +%> +

<%=error%>

+<% + } +%> +
+ + + + + + + + + + + + + + + + + + + + + + +<% + if (alerted) + { +%> + + + + + +<% } %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Monitor NameThe name of the monitor and how it will be references within web console
Monitor's Object NameThe MBean javax.management.ObjectName
Object NameThe MBean javax.management.ObjectName of the MBean you are monitoring
AttributeThe MBean Attribute you are monitoring
Triggered ValueThe attribute value the triggered the threshold.
ThresholdThe value that will trigger an alert when the Comparison Equation is reached for the attribute value
Time PeriodHow often should threshold be tested.
Comparison Equation + Boolean expression to use when testing threshold hit.
Persist ChangesShould changes be reflected in deployment file.
Enable Monitor>Should this monitor be enabled.
Alerts +<% + InstanceOfQueryExp queryExp = null; + queryExp = new InstanceOfQueryExp("org.jboss.monitor.alerts.JBossAlertListener"); + Set allAlertTypes = mbeanServer.queryNames(null, queryExp); + + if (allAlertTypes.size() > 0) + { +%> + + + Alert Listeners to trigger.
+ + +<% + if (alerted) + { +%> + +<% + } +%> +
+<% +} +catch (Exception ex) +{ + %> ERROR in parsing <% + ex.printStackTrace(); +} +%> +
+

+
+
+ + +
+ + + + + diff --git a/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/xform.xsl b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/xform.xsl new file mode 100644 index 0000000000..7a68ce6e41 --- /dev/null +++ b/jboss/server/adempiere/deploy/management/console-mgr.sar/web-console.war/xform.xsl @@ -0,0 +1,96 @@ + + + + + + + + + + + Tomcat Status + + + +
Tomcat Status
+ + + + + +
+ + + + + + + + + + + + +
JVM:free: total: max:

+
+ + + Connector --
+ + + + +
+ + + + + + + + + + +
threadInfo maxThreads: minSpareThreads: maxSpareThreads: currentThreadCount: currentThreadsBusy:

+
+ + + + + + + + + + + +
requestInfo maxTime: processingTime: requestCount: errorCount: bytesReceived: bytesSent:

+
+ + + + + + +
StageTimeB SentB RecvClientVHostRequest

+
+ + + + + + + + + + ? + + + +
diff --git a/jboss/server/adempiere/deploy/monitoring-service.xml b/jboss/server/adempiere/deploy/monitoring-service.xml new file mode 100644 index 0000000000..2eb08eaffb --- /dev/null +++ b/jboss/server/adempiere/deploy/monitoring-service.xml @@ -0,0 +1,107 @@ + + + + + + + + + + + + + + + Console Alert + + + + + + + + + diff --git a/jboss/server/adempiere/deploy/properties-service.xml b/jboss/server/adempiere/deploy/properties-service.xml new file mode 100644 index 0000000000..a9d8c00dbd --- /dev/null +++ b/jboss/server/adempiere/deploy/properties-service.xml @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jboss/server/adempiere/deploy/schedule-manager-service.xml b/jboss/server/adempiere/deploy/schedule-manager-service.xml new file mode 100644 index 0000000000..0e5e62d9e5 --- /dev/null +++ b/jboss/server/adempiere/deploy/schedule-manager-service.xml @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/jboss/server/adempiere/deploy/scheduler-service.xml b/jboss/server/adempiere/deploy/scheduler-service.xml new file mode 100644 index 0000000000..6f3c53544c --- /dev/null +++ b/jboss/server/adempiere/deploy/scheduler-service.xml @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + diff --git a/jboss/server/adempiere/lib/license.html b/jboss/server/adempiere/lib/license.html new file mode 100644 index 0000000000..f6aed87257 --- /dev/null +++ b/jboss/server/adempiere/lib/license.html @@ -0,0 +1,98 @@ + + +BeanShell - Free Software License + + + + + + + + +
+Home
+Intro
+Docs
+Download
+Contact
+Developer
+License
+Beany + +

+ +Learning Java +
+ +Check out my book:
+Learning Java,
+O'Reilly & Associates +
+
+
+

+ + + +

BeanShell Software License

+
+ +BeanShell is a free software project. Its continued development depends +on the interest and support of users and developers like you. +

+ +The source code is available for you to use and extend or integrate into your +software freely under either the terms of the Sun Public License or the +GNU Lesser Public License (see below). +

+ +The "cost" of this software is simply to let us know how you are using +BeanShell. You can do this by filling out the +BeanShell User Info Form. +Please feel free to wait until you have started using BeanShell to do this. +

+ +

Dual Licensing: Sun Public License / Gnu Lesser Public License

+ +BeanShell is now dual licensed under both the SPL and LGPL. You may +use and develop BeanShell under either license. +

+More info coming soon... +

+ +Please +see the Sun Public License for details. + +

About the LGPL

+Note: the LGPL has become the "Lesser Gnu Public License" and BeanShell +has adopted the new version... +

+ +A quick note about the LGPL: +

< +The LGPL is less restrictive than the ordinary GNU Public License in that +it does not force you to distribute your own applications under the terms +of the GPL. It primarily requires that you include a notice that +you are using the software in your documentation and provide access to +the original source code. It also essentially requires that if you modify +or extend BeanShell itself that you make those changes available +separately, under the terms of either the LGPL or the GPL. I would +ask that you accomodate this by simply sending me your bug fixes and +improvement to allow me to incorporate them into the general bsh release. +Please +see the LGPL for the details. +

+If you have a more precise, brief explanation please let me know! +Thanks! - Pat +

+ +Please also feel free to contact me: +(Pat Niemeyer pat@pat.net) +about other licensing arrangements. +

+ +

+ + + + diff --git a/jboss/worker.properties b/jboss/worker.properties new file mode 100644 index 0000000000..3b70a70850 --- /dev/null +++ b/jboss/worker.properties @@ -0,0 +1,16 @@ +# Example $Id: worker.properties,v 1.1 2006/04/21 17:58:42 jjanke Exp $ +# http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/workershowto.html +# Define 1 real worker using ajp13 +# TOMCAT_HOME = $ADEMPIERE_HOME/jboss/server/adempiere + +worker.list=worker1 + +# Set properties for worker1 (ajp13) +worker.worker1.type=ajp13 +worker.worker1.host=localhost +worker.worker1.port=8009 +worker.worker1.lbfactor=50 +worker.worker1.cachesize=20 +worker.worker1.cache_timeout=600 +worker.worker1.socket_keepalive=1 +worker.worker1.socket_timeout=300