You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by cw...@apache.org on 2010/12/20 21:54:31 UTC

svn commit: r1051286 - in /uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1: ./ bin/ bin/win32/ conf/ lib/ lib/optional/

Author: cwiklik
Date: Mon Dec 20 20:54:30 2010
New Revision: 1051286

URL: http://svn.apache.org/viewvc?rev=1051286&view=rev
Log:
UIMA-1876 Added support for AMQ 5.4.1

Added:
    uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/
    uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/README.txt
    uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/
    uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/activemq
    uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/activemq-admin
    uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/activemq-admin.bat
    uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/activemq.bat
    uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/run.jar   (with props)
    uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/win32/
    uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/win32/InstallService.bat
    uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/win32/UninstallService.bat
    uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/win32/activemq.bat
    uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/win32/wrapper.conf
    uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/win32/wrapper.dll   (with props)
    uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/win32/wrapper.exe   (with props)
    uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/wrapper.jar   (with props)
    uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/conf/
    uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/conf/credentials-enc.properties
    uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/conf/credentials.properties
    uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/conf/jetty-realm.properties
    uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/conf/jetty.xml
    uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/lib/
    uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/lib/optional/

Added: uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/README.txt
URL: http://svn.apache.org/viewvc/uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/README.txt?rev=1051286&view=auto
==============================================================================
--- uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/README.txt (added)
+++ uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/README.txt Mon Dec 20 20:54:30 2010
@@ -0,0 +1,63 @@
+Welcome to Apache ActiveMQ 
+=======================================================================
+Apache ActiveMQ is a high performance Apache 2.0 licensed Message 
+Broker and JMS 1.1 implementation.
+
+Getting Started
+===============
+To help you get started, try the following links:-
+
+Getting Started
+http://activemq.apache.org/version-5-getting-started.html
+
+Building
+http://activemq.apache.org/version-5-getting-started.html#GettingStarted-WindowsSourceInstallation
+http://activemq.apache.org/version-5-getting-started.html#GettingStarted-UnixSourceInstallation
+
+Examples
+http://activemq.apache.org/examples.html
+
+We welcome contributions of all kinds, for details of how you can help
+http://activemq.apache.org/contributing.html
+
+Please refer to the website for details of finding the issue tracker, 
+email lists, wiki or IRC channel at http://activemq.apache.org/
+
+Please help us make Apache ActiveMQ better - we appreciate any feedback 
+you may have.
+
+Enjoy!
+
+Licensing
+=======================================================================
+
+   This software is licensed under the terms you may find in the file 
+   named "LICENSE.txt" in this directory.
+
+   This distribution includes cryptographic software.  The country in 
+   which you currently reside may have restrictions on the import, 
+   possession, use, and/or re-export to another country, of 
+   encryption software.  BEFORE using any encryption software, please 
+   check your country's laws, regulations and policies concerning the
+   import, possession, or use, and re-export of encryption software, to 
+   see if this is permitted.  See <http://www.wassenaar.org/> for more
+   information.
+
+   The U.S. Government Department of Commerce, Bureau of Industry and
+   Security (BIS), has classified this software as Export Commodity 
+   Control Number (ECCN) 5D002.C.1, which includes information security
+   software using or performing cryptographic functions with asymmetric
+   algorithms.  The form and manner of this Apache Software Foundation
+   distribution makes it eligible for export under the License Exception
+   ENC Technology Software Unrestricted (TSU) exception (see the BIS 
+   Export Administration Regulations, Section 740.13) for both object 
+   code and source code.
+
+   The following provides more details on the included cryptographic
+   software:
+   
+   ActiveMQ supports the use of SSL TCP connections when used with 
+   with a JVM supporting the Java Cryptography extensions
+   <http://java.sun.com/javase/technologies/security/>.  ActiveMQ does 
+   not include these libraries itself, but is designed to use them.
+

Added: uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/activemq
URL: http://svn.apache.org/viewvc/uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/activemq?rev=1051286&view=auto
==============================================================================
--- uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/activemq (added)
+++ uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/activemq Mon Dec 20 20:54:30 2010
@@ -0,0 +1,635 @@
+#!/bin/bash 
+# ------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+# 
+# http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ------------------------------------------------------------------------
+#
+# This script controls standalone Apache ActiveMQ service processes.
+# To ensure compatibility to macosx and cygwin we do not utilize 
+# lsb standard infrastructure for controlling daemons like 
+# "start-stop-daemon".
+#
+# See also http://activemq.apache.org/activemq-command-line-tools-reference.html
+# for additional commandline arguments
+#
+# Authors:
+# Marc Schoechlin <ms...@256bit.org>
+
+# ------------------------------------------------------------------------
+# CONFIGURATION
+ACTIVEMQ_CONFIGS="/etc/default/activemq $HOME/.activemqrc"
+
+# Backup invocation parameters
+COMMANDLINE_ARGS="$@"
+
+# For using instances
+if ( basename $0 | grep "activemq-instance-" > /dev/null);then
+   INST="$(basename $0|sed 's/^activemq-instance-//;s/\.sh$//')"
+   ACTIVEMQ_CONFIGS="/etc/default/activemq-instance-${INST} $HOME/.activemqrc-instance-${INST}"
+   echo "INFO: Using alternative activemq configuration files: $ACCTIVEMQ_CONFIGS"
+fi
+
+## START:DEFAULTCONFIG
+# ------------------------------------------------------------------------
+# Configuration file for running Apache Active MQ as standalone provider
+# 
+# This file overwrites the predefined settings of the sysv init-script
+#
+# Active MQ installation dir
+if [ -z "$ACTIVEMQ_HOME" ] ; then
+  # try to find ACTIVEMQ
+  if [ -d /opt/activemq ] ; then
+    ACTIVEMQ_HOME=/opt/activemq
+  fi
+
+  if [ -d "${HOME}/opt/activemq" ] ; then
+    ACTIVEMQ_HOME="${HOME}/opt/activemq"
+  fi
+
+  ## resolve links - $0 may be a link to activemq's home
+  PRG="$0"
+  progname=`basename "$0"`
+  saveddir=`pwd`
+
+  # need this for relative symlinks
+  dirname_prg=`dirname "$PRG"`
+  cd "$dirname_prg"
+
+  while [ -h "$PRG" ] ; do
+    ls=`ls -ld "$PRG"`
+    link=`expr "$ls" : '.*-> \(.*\)$'`
+    if expr "$link" : '.*/.*' > /dev/null; then
+    PRG="$link"
+    else
+    PRG=`dirname "$PRG"`"/$link"
+    fi
+  done
+
+  ACTIVEMQ_HOME=`dirname "$PRG"`/..
+
+  cd "$saveddir"
+
+  # make it fully qualified
+  ACTIVEMQ_HOME=`cd "$ACTIVEMQ_HOME" && pwd`
+fi
+
+# Active MQ configuration directory
+ACTIVEMQ_CONFIG_DIR="$ACTIVEMQ_HOME/conf"
+
+# Active MQ configuration directory
+if [ -z "$ACTIVEMQ_DATA_DIR" ]; then
+  ACTIVEMQ_DATA_DIR="$ACTIVEMQ_HOME/data"
+fi
+
+if [ ! -d "$ACTIVEMQ_DATA_DIR" ]; then
+    mkdir $ACTIVEMQ_DATA_DIR
+fi
+
+# Location of the pidfile
+if [ -z "$ACTIVEMQ_PIDFILE" ]; then
+  ACTIVEMQ_PIDFILE="$ACTIVEMQ_DATA_DIR/activemq.pid"
+fi
+
+# Location of the java installation
+# Specify the location of your java installation using JAVA_HOME, or specify the 
+# path to the "java" binary using JAVACMD
+# (set JAVACMD to "auto" for automatic detection)
+#JAVA_HOME=""
+JAVACMD="auto"
+
+# Configure a user with non root priviledges, if no user is specified do not change user
+ACTIVEMQ_USER=""
+
+# Set jvm memory configuration
+ACTIVEMQ_OPTS_MEMORY="-Xms256M -Xmx256M"
+
+# Set jvm jmx configuration
+# This enables jmx access over a configured jmx-tcp-port.
+# You have to configure the first four settings if you run a ibm jvm, caused by the
+# fact that IBM's jvm does not support VirtualMachine.attach(PID).
+# JMX access is needed for quering a running activemq instance to gain data or to
+# trigger management operations.
+# 
+# Example for ${ACTIVEMQ_CONFIG_DIR}/jmx.access:
+# ---
+# # The "monitorRole" role has readonly access.
+# # The "controlRole" role has readwrite access.
+# monitorRole readonly
+# controlRole readwrite
+# ---
+#
+# Example for ${ACTIVEMQ_CONFIG_DIR}/jmx.password:
+# ---
+# # The "monitorRole" role has password "abc123".
+# # # The "controlRole" role has password "abcd1234".
+# monitorRole abc123
+# controlRole abcd1234
+# ---
+#
+# ACTIVEMQ_SUNJMX_START="-Dcom.sun.management.jmxremote.port=11099 "
+# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.password.file=${ACTIVEMQ_CONFIG_DIR}/jmx.password"
+# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.access.file=${ACTIVEMQ_CONFIG_DIR}/jmx.access"
+# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.ssl=false"
+ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote"
+
+# Set jvm jmx configuration for controlling the broker process
+# You only have to configure the first four settings if you run a ibm jvm, caused by the
+# fact that IBM's jvm does not support VirtualMachine.attach(PID)
+# (see also com.sun.management.jmxremote.port, .jmx.password.file and .jmx.access.file )
+#ACTIVEMQ_SUNJMX_CONTROL="--jmxurl service:jmx:rmi:///jndi/rmi://127.0.0.1:11099/jmxrmi --jmxuser controlRole --jmxpassword abcd1234"
+ACTIVEMQ_SUNJMX_CONTROL=""
+
+# Specify the queue manager URL for using "browse" option of sysv initscript
+ACTIVEMQ_QUEUEMANAGERURL="--amqurl tcp://localhost:61616"
+
+# Set additional JSE arguments
+ACTIVEMQ_SSL_OPTS=""
+
+# Uncomment to enable YourKit profiling
+#ACTIVEMQ_DEBUG_OPTS="-agentlib:yjpagent"
+
+# Uncomment to enable remote debugging
+#ACTIVEMQ_DEBUG_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
+
+# ActiveMQ tries to shutdown the broker by jmx, 
+# after a specified number of seconds send SIGKILL
+ACTIVEMQ_KILL_MAXSECONDS=30
+
+## END:DEFAULTCONFIG
+
+# ------------------------------------------------------------------------
+# LOAD CONFIGURATION
+
+# load activemq configuration
+CONFIG_LOAD="no"
+for ACTIVEMQ_CONFIG in $ACTIVEMQ_CONFIGS;do
+   if [ -f "$ACTIVEMQ_CONFIG" ] ; then
+     ( . $ACTIVEMQ_CONFIG >/dev/null 2>&1 )
+     if [ "$?" != "0" ];then
+      echo "ERROR: There are syntax errors in '$ACTIVEMQ_CONFIG'"
+      exit 1
+     else
+       echo "INFO: Loading '$ACTIVEMQ_CONFIG'"
+       . $ACTIVEMQ_CONFIG
+      CONFIG_LOAD="yes"
+     fi
+   fi
+done
+
+# inform user that default configuration is loaded, no suitable configfile found
+if [ "$CONFIG_LOAD" != "yes" ];then
+   if [ "$1" != "setup" ];then
+      echo "INFO: Using default configuration";
+      echo "(you can configure options in one of these file: $ACTIVEMQ_CONFIGS)"
+      echo
+      echo "INFO: Invoke the following command to create a configuration file"
+      echo "$0 setup [ $(echo $ACTIVEMQ_CONFIGS|sed 's/[ ][ ]*/ | /') ]"
+      echo
+   fi
+fi
+
+# create configuration if requested
+if [ "$1" = "setup" ];then
+   if [ -z "$2" ];then
+      echo "ERROR: Specify configuration file"
+      exit 1
+   fi
+   echo "INFO: Creating configuration file: $2"
+   (
+   P_STATE="0"
+   while read LINE ;do
+      if (echo "$LINE" | grep "START:DEFAULTCONFIG" >/dev/null );then
+         P_STATE="1"
+         continue;
+      fi
+      if (echo "$LINE" | grep "END:DEFAULTCONFIG" >/dev/null);then
+         P_STATE="0"
+         break;
+      fi
+      if [ "$P_STATE" -eq "1" ];then
+         echo $LINE
+      fi
+   done < $0
+   ) > $2
+   echo "INFO: It's recommend to limit access to '$2' to the priviledged user"
+   echo "INFO: (recommended: chown `whoami`:nogroup '$2'; chmod 600 '$2')"
+   exit $?
+fi
+
+# ------------------------------------------------------------------------
+# OS SPECIFIC SUPPORT
+
+OSTYPE="unknown"
+
+case "`uname`" in
+  CYGWIN*) OSTYPE="cygwin" ;;
+  Darwin*) 
+           OSTYPE="darwin"
+           if [ "$JAVACMD" = "auto" ];then
+             JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
+           fi
+           ;;
+esac
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched
+if [ "$OSTYPE" = "cygwin" ]; then
+  [ -n "$ACTIVEMQ_HOME" ] &&
+    ACTIVEMQ_HOME="`cygpath --unix "$ACTIVEMQ_HOME"`"
+  [ -n "$JAVA_HOME" ] &&
+    JAVA_HOME="`cygpath --unix "$JAVA_HOME"`"
+  [ -n "$CLASSPATH" ] &&
+    CLASSPATH="`cygpath --path --unix "$CLASSPATH"`"
+fi
+
+# Detect the location of the java binary
+if [ -z "$JAVACMD" ] || [ "$JAVACMD" = "auto" ] ; then
+  if [ -n "$JAVA_HOME"  ] ; then
+    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+      # IBM's JDK on AIX uses strange locations for the executables
+      JAVACMD="$JAVA_HOME/jre/sh/java"
+    else
+      JAVACMD="$JAVA_HOME/bin/java"
+    fi
+  fi
+fi
+
+# Hm, we still do not know the location of the java binary
+if [ ! -x "$JAVACMD" ] ; then
+    JAVACMD=`which java 2> /dev/null `
+    if [ -z "$JAVACMD" ] ; then
+        JAVACMD=java
+    fi
+fi
+# Stop here if no java installation is defined/found
+if [ ! -x "$JAVACMD" ] ; then
+  echo "ERROR: Configuration varaiable JAVA_HOME or JAVACMD is not defined correctly."
+  echo "       (JAVA_HOME='$JAVAHOME', JAVACMD='$JAVACMD')"
+  exit 1
+fi
+
+echo "INFO: Using java '$JAVACMD'"
+
+if [ -z "$ACTIVEMQ_BASE" ] ; then
+  ACTIVEMQ_BASE="$ACTIVEMQ_HOME"
+fi
+
+# For Cygwin, switch paths to Windows format before running java if [ "$OSTYPE" = "cygwin" ]; then
+if [ "$OSTYPE" = "cygwin" ];then
+  ACTIVEMQ_HOME=`cygpath --windows "$ACTIVEMQ_HOME"`
+  ACTIVEMQ_BASE=`cygpath --windows "$ACTIVEMQ_BASE"`
+  ACTIVEMQ_CLASSPATH=`cygpath --path --windows "$ACTIVEMQ_CLASSPATH"`
+  JAVA_HOME=`cygpath --windows "$JAVA_HOME"`
+  CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
+  CYGHOME=`cygpath --windows "$HOME"`
+  if [ -n "$CYGHOME" ]; then
+      ACTIVEMQ_CYGWIN="-Dcygwin.user.home=\"$CYGHOME\""
+  fi
+fi
+
+# Set default classpath
+# Add instance conf dir before AMQ install conf dir to pick up instance-specific classpath entries first
+ACTIVEMQ_CLASSPATH="${ACTIVEMQ_CONFIG_DIR};${ACTIVEMQ_CLASSPATH}"
+if [ "${ACTIVEMQ_BASE}" != "${ACTIVEMQ_HOME}" ]; then
+    ACTIVEMQ_CLASSPATH="${ACTIVEMQ_BASE}/conf;${ACTIVEMQ_CLASSPATH}"
+fi
+
+
+
+# ------------------------------------------------------------------------
+# HELPER FUNCTIONS
+
+# Start the ActiveMQ JAR
+#
+#
+# @ARG1 : the name of the PID-file
+#         If specified, this function starts the java process in background as a daemon
+#         and stores the pid of the created process in the file.
+#         Output on stdout/stderr will be supressed if this parameter is specified
+# @RET  : If unless 0 something went wrong
+#
+# Note: This function uses a lot of globally defined variables
+# - if $ACTIVEMQ_USER is set, the function tries starts the java process whith the specified
+#   user
+invokeJar(){
+   local PIDFILE="$1"
+   local RET="1"
+   local CUSER="$(whoami 2>/dev/null)"
+
+   # Solaris fix
+   if ( ! [ $? -eq 0 ] ) ; then
+    local CUSER="$(/usr/ucb/whoami)"
+   fi
+
+   if ( ! [ -f "${ACTIVEMQ_HOME}/bin/run.jar" ] );then
+    echo "ERROR: '${ACTIVEMQ_HOME}/bin/run.jar' does not exist"
+    exit 1
+   fi
+  
+   if ( [ -z "$ACTIVEMQ_USER" ] || [ "$ACTIVEMQ_USER" = "$CUSER" ] );then
+      DOIT_PREFIX="sh -c "
+      DOIT_POSTFIX=";"
+   elif [ "$(id -u)" = "0" ];then
+      DOIT_PREFIX="su -c "
+      DOIT_POSTFIX=" - $ACTIVEMQ_USER"
+      echo "INFO: changing to user '$ACTIVEMQ_USER' to invoke java"
+   fi
+   # Execute java binary
+   if [ -n "$PIDFILE" ] && [ "$PIDFILE" != "stop" ];then
+      $DOIT_PREFIX "$JAVACMD $ACTIVEMQ_OPTS $ACTIVEMQ_DEBUG_OPTS \
+              -Dactivemq.classpath=\"${ACTIVEMQ_CLASSPATH}\" \
+              -Dactivemq.home=\"${ACTIVEMQ_HOME}\" \
+              -Dactivemq.base=\"${ACTIVEMQ_BASE}\" \
+              $ACTIVEMQ_CYGWIN \
+              -jar \"${ACTIVEMQ_HOME}/bin/run.jar\" $COMMANDLINE_ARGS >/dev/null 2>&1 & 
+              RET=\"\$?\"; APID=\"\$!\";
+              echo \$APID > $PIDFILE;
+              echo \"INFO: pidfile created : '$PIDFILE' (pid '\$APID')\";exit \$RET" $DOIT_POSTFIX
+      RET="$?"
+   elif [ -n "$PIDFILE" ] && [ "$PIDFILE" == "stop" ];then
+          $DOIT_PREFIX "$JAVACMD $ACTIVEMQ_OPTS $ACTIVEMQ_DEBUG_OPTS \
+              -Dactivemq.classpath=\"${ACTIVEMQ_CLASSPATH}\" \
+              -Dactivemq.home=\"${ACTIVEMQ_HOME}\" \
+              -Dactivemq.base=\"${ACTIVEMQ_BASE}\" \
+              $ACTIVEMQ_CYGWIN \
+              -jar \"${ACTIVEMQ_HOME}/bin/run.jar\" $COMMANDLINE_ARGS &
+              RET=\"\$?\"; APID=\"\$!\"; 
+              echo \$APID > $ACTIVEMQ_DATA_DIR/stop.pid" $DOIT_POSTFIX
+   else
+      $DOIT_PREFIX "$JAVACMD $ACTIVEMQ_OPTS $ACTIVEMQ_DEBUG_OPTS \
+              -Dactivemq.classpath=\"${ACTIVEMQ_CLASSPATH}\" \
+              -Dactivemq.home=\"${ACTIVEMQ_HOME}\" \
+              -Dactivemq.base=\"${ACTIVEMQ_BASE}\" \
+              $ACTIVEMQ_CYGWIN \
+              -jar \"${ACTIVEMQ_HOME}/bin/run.jar\" $COMMANDLINE_ARGS" $DOIT_POSTFIX
+      RET="$?"
+   fi
+   return $RET
+}
+
+# Check if ActiveMQ is running
+#
+# @RET  : 0 => the activemq process is running
+#         1 => process id in $ACTIVEMQ_PIDFILE does not exist anymore
+#         2 => something is wrong with the pid file
+#
+# Note: This function uses globally defined variables
+# - $ACTIVEMQ_PIDFILE : the name of the pid file
+
+
+checkRunning(){
+    if [ -f "$ACTIVEMQ_PIDFILE" ]; then
+       if  [ -z "$(cat $ACTIVEMQ_PIDFILE)" ];then
+        echo "ERROR: Pidfile '$ACTIVEMQ_PIDFILE' exists but contains no pid"
+        return 2
+       fi
+       if (ps -p $(cat $ACTIVEMQ_PIDFILE)|grep java >/dev/null);then
+         return 0;
+       else
+         return 1;
+       fi
+    else
+         return 1;
+    fi
+}
+
+checkStopRunning(){
+    PID=$ACTIVEMQ_DATA_DIR/stop.pid
+    if [ -f "$PID" ]; then
+       if  [ -z "$(cat $PID)" ];then
+        echo "ERROR: Pidfile '$PID' exists but contains no pid"
+        return 2
+       fi
+       if (ps -p $(cat $PID)|grep java >/dev/null);then
+         return 0;
+       else
+         return 1;
+       fi
+    else
+         return 1;
+    fi
+}
+
+# Check if ActiveMQ is running
+#
+# @RET  : 0 => the activemq process is running
+#         1 => the activemq process is not running
+#
+# Note: This function uses globally defined variables
+# - $ACTIVEMQ_PIDFILE : the name of the pid file
+
+
+invoke_status(){
+    if ( checkRunning );then
+         echo "ActiveMQ is running (pid '$(cat $ACTIVEMQ_PIDFILE)')"
+         exit 0
+    fi
+    echo "ActiveMQ not running"
+    exit 1
+}
+
+# Start ActiveMQ if not already running
+#
+# @RET  : 0 => is now started, is already started
+#         !0 => something went wrong
+#
+# Note: This function uses globally defined variables
+# - $ACTIVEMQ_PIDFILE      : the name of the pid file
+# - $ACTIVEMQ_OPTS         : Additional options 
+# - $ACTIVEMQ_SUNJMX_START : options for JMX settings
+# - $ACTIVEMQ_SSL_OPTS     : options for SSL encryption
+
+invoke_start(){
+    if ( checkRunning );then
+      echo "INFO: Process with pid '$(cat $ACTIVEMQ_PIDFILE)' is already running"
+      exit 0
+    fi
+
+    if [ -z "$ACTIVEMQ_OPTS" ] ; then
+        ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS_MEMORY -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Djava.util.logging.config.file=logging.properties"
+    fi
+    ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS $ACTIVEMQ_SUNJMX_START $ACTIVEMQ_SSL_OPTS"
+    echo "INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details"
+    invokeJar $ACTIVEMQ_PIDFILE
+    exit "$?" 
+}
+
+# Start ActiveMQ in foreground (for debugging)
+#
+# @RET  : 0 => is now started, is already started
+#         !0 => something went wrong
+#
+# Note: This function uses globally defined variables
+# - $ACTIVEMQ_PIDFILE      : the name of the pid file
+# - $ACTIVEMQ_OPTS         : Additional options 
+# - $ACTIVEMQ_SUNJMX_START : options for JMX settings
+# - $ACTIVEMQ_SSL_OPTS     : options for SSL encryption
+
+invoke_console(){
+    if ( checkRunning );then
+      echo "ERROR: ActiveMQ is already running"
+      exit 1
+    fi
+    if [ -z "$ACTIVEMQ_OPTS" ] ; then
+        ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS_MEMORY -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Djava.util.logging.config.file=logging.properties"
+    fi
+    ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS $ACTIVEMQ_SUNJMX_START $ACTIVEMQ_SSL_OPTS"
+
+    COMMANDLINE_ARGS="start $(echo $COMMANDLINE_ARGS|sed 's,^console,,')"
+    echo "INFO: Starting in foreground, this is just for debugging purposes (stop process by pressing CTRL+C)"
+    invokeJar
+    exit "$?" 
+}
+
+# Stop ActiveMQ
+#
+# @RET  : 0 => stop was successful
+#         !0 => something went wrong
+#
+# Note: This function uses globally defined variables
+# - $ACTIVEMQ_PIDFILE         : the name of the pid file
+# - $ACTIVEMQ_KILL_MAXSECONDS : the number of seconds to wait for termination of broker after sending 
+#                              shutdown signal by jmx interface
+
+invoke_stop(){
+    RET="1"
+    if ( checkRunning );then
+       ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS $ACTIVEMQ_SSL_OPTS"
+       COMMANDLINE_ARGS="$COMMANDLINE_ARGS $ACTIVEMQ_SUNJMX_CONTROL"
+       invokeJar "stop"
+       RET="$?"
+       echo -n "INFO: Waiting at least $ACTIVEMQ_KILL_MAXSECONDS seconds for regular process termination of pid '$(cat $ACTIVEMQ_PIDFILE)' : "
+       FOUND="0"
+       for ((i=1; i <= ACTIVEMQ_KILL_MAXSECONDS ; i++));do   
+        
+         if (! checkStopRunning);then
+            if (! checkRunning); then
+               echo " FINISHED"
+               FOUND="1"              
+            fi
+            break
+         fi
+        
+         if (checkRunning);then
+            sleep 1
+            echo -n "."
+         else
+            echo " FINISHED"
+            FOUND="1"
+            break
+         fi
+       done
+       if [ "$FOUND" -ne "1" ];then
+         echo
+         echo "INFO: Regular shutdown not successful,  sending SIGKILL to process with pid '$(cat $ACTIVEMQ_PIDFILE)'"
+         kill -KILL $(cat $ACTIVEMQ_PIDFILE)
+         RET="1"
+       fi
+    elif [ -f "$ACTIVEMQ_PIDFILE" ];then
+       echo "ERROR: No or outdated process id in '$ACTIVEMQ_PIDFILE'"
+       echo
+       echo "INFO: Removing $ACTIVEMQ_PIDFILE"
+    else
+       echo "ActiveMQ not running"
+       exit 0
+    fi
+    rm -f $ACTIVEMQ_PIDFILE >/dev/null 2>&1
+    rm -f $ACTIVEMQ_DATA_DIR/stop.pid >/dev/null 2>&1
+    exit $RET
+}
+
+# Invoke a task on a running ActiveMQ instance
+#
+# @RET  : 0 => successful
+#         !0 => something went wrong
+#
+# Note: This function uses globally defined variables
+# - $ACTIVEMQ_QUEUEMANAGERURL : The url of the queuemanager
+# - $ACTIVEMQ_OPTS            : Additional options
+# - $ACTIVEMQ_SUNJMX_START    : options for JMX settings
+# - $ACTIVEMQ_SSL_OPTS        : options for SSL encryption
+invoke_task(){
+    # call task in java binary
+    if ( checkRunning );then
+      if [ "$1" = "browse" ] && [ -n "$ACTIVEMQ_QUEUEMANAGERURL" ];then
+         ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS $ACTIVEMQ_SSL_OPTS"
+         COMMANDLINE_ARGS="$1 $ACTIVEMQ_QUEUEMANAGERURL $(echo $COMMANDLINE_ARGS|sed 's,^browse,,')"
+      elif [ "$1" = "query" ]  && [ -n "$ACTIVEMQ_QUEUEMANAGERURL" ];then
+         ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS $ACTIVEMQ_SSL_OPTS"
+         COMMANDLINE_ARGS="$1 $ACTIVEMQ_SUNJMX_CONTROL $(echo $COMMANDLINE_ARGS|sed 's,^query,,')"
+      else 
+         ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS $ACTIVEMQ_SSL_OPTS"
+         COMMANDLINE_ARGS="$COMMANDLINE_ARGS $ACTIVEMQ_SUNJMX_CONTROL"
+      fi
+      invokeJar
+      exit $?
+    else
+      invokeJar
+      exit 1
+    fi
+}
+
+show_help() {
+  invokeJar
+  RET="$?"
+  cat << EOF
+Tasks provided by the sysv init script:
+    restart         - stop running instance (is there is one), start new instance
+    console         - start broker in foreground, useful for debugging purposes
+    status          - check if activemq process is running
+    setup           - create the specified configuration file for this init script
+                      (see next usage section)
+
+Configuration of this script:
+    The configuration of this script can be placed on /etc/default/activemq or $HOME/.activemqrc.
+    To use addtional configurations for running multiple instances on the same operating system
+    rename or symlink script to a name matching to activemq-instance-<INSTANCENAME>.
+    This changes the configuration location to /etc/default/activemq-instance-<INSTANCENAME> and
+    \$HOME/.activemqrc-instance-<INSTANCENAME>. Configuration files in /etc have higher precedence. 
+EOF
+  exit $RET
+}
+
+# ------------------------------------------------------------------------
+# MAIN
+
+# show help
+if [ -z "$1" ];then
+ show_help
+fi
+
+case "$1" in
+  status)    
+      invoke_status
+    ;;
+  restart)
+    if ( checkRunning );then
+      $0 stop
+    fi
+    $0 status
+    $0 start
+    $0 status
+    ;;
+  start)    
+    invoke_start
+    ;;
+  console)
+    invoke_console
+    ;;
+  stop)    
+    invoke_stop
+    ;;
+  *)
+    invoke_task
+esac

Added: uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/activemq-admin
URL: http://svn.apache.org/viewvc/uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/activemq-admin?rev=1051286&view=auto
==============================================================================
--- uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/activemq-admin (added)
+++ uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/activemq-admin Mon Dec 20 20:54:30 2010
@@ -0,0 +1,155 @@
+#!/bin/sh
+# ------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+# 
+# http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ------------------------------------------------------------------------
+
+# load system-wide activemq configuration
+if [ -f "/etc/activemq.conf" ] ; then
+  . /etc/activemq.conf
+fi
+
+# provide default values for people who don't use RPMs
+if [ -z "$usejikes" ] ; then
+  usejikes=false;
+fi
+
+# load user activemq configuration
+if [ -f "$HOME/.activemqrc" ] ; then
+  . "$HOME/.activemqrc"
+fi
+
+# OS specific support.  $var _must_ be set to either true or false.
+cygwin=false;
+darwin=false;
+case "`uname`" in
+  CYGWIN*) cygwin=true ;;
+  Darwin*) darwin=true
+           if [ -z "$JAVA_HOME" ] ; then
+             JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
+           fi
+           ;;
+esac
+
+if [ -z "$ACTIVEMQ_HOME" ] ; then
+  # try to find ACTIVEMQ
+  if [ -d /opt/activemq ] ; then
+    ACTIVEMQ_HOME=/opt/activemq
+  fi
+
+  if [ -d "${HOME}/opt/activemq" ] ; then
+    ACTIVEMQ_HOME="${HOME}/opt/activemq"
+  fi
+
+  ## resolve links - $0 may be a link to activemq's home
+  PRG="$0"
+  progname=`basename "$0"`
+  saveddir=`pwd`
+
+  # need this for relative symlinks
+  dirname_prg=`dirname "$PRG"`
+  cd "$dirname_prg"
+
+  while [ -h "$PRG" ] ; do
+    ls=`ls -ld "$PRG"`
+    link=`expr "$ls" : '.*-> \(.*\)$'`
+    if expr "$link" : '.*/.*' > /dev/null; then
+    PRG="$link"
+    else
+    PRG=`dirname "$PRG"`"/$link"
+    fi
+  done
+
+  ACTIVEMQ_HOME=`dirname "$PRG"`/..
+
+  cd "$saveddir"
+
+  # make it fully qualified
+  ACTIVEMQ_HOME=`cd "$ACTIVEMQ_HOME" && pwd`
+fi
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched
+if $cygwin ; then
+  [ -n "$ACTIVEMQ_HOME" ] &&
+    ACTIVEMQ_HOME=`cygpath --unix "$ACTIVEMQ_HOME"`
+  [ -n "$JAVA_HOME" ] &&
+    JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+  [ -n "$CLASSPATH" ] &&
+    CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
+fi
+
+if [ -z "$JAVACMD" ] ; then
+  if [ -n "$JAVA_HOME"  ] ; then
+    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+      # IBM's JDK on AIX uses strange locations for the executables
+      JAVACMD="$JAVA_HOME/jre/sh/java"
+    else
+      JAVACMD="$JAVA_HOME/bin/java"
+    fi
+  else
+    JAVACMD=`which java 2> /dev/null `
+    if [ -z "$JAVACMD" ] ; then
+        JAVACMD=java
+    fi
+  fi
+fi
+
+if [ ! -x "$JAVACMD" ] ; then
+  echo "Error: JAVA_HOME is not defined correctly."
+  echo "  We cannot execute $JAVACMD"
+  exit 1
+fi
+
+if [ -z "$ACTIVEMQ_BASE" ] ; then
+  ACTIVEMQ_BASE="$ACTIVEMQ_HOME"
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin; then
+  ACTIVEMQ_HOME=`cygpath --windows "$ACTIVEMQ_HOME"`
+  ACTIVEMQ_BASE=`cygpath --windows "$ACTIVEMQ_BASE"`
+  ACTIVEMQ_CLASSPATH=`cygpath --path --windows "$ACTIVEMQ_CLASSPATH"`
+  JAVA_HOME=`cygpath --windows "$JAVA_HOME"`
+  CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
+  CYGHOME=`cygpath --windows "$HOME"`
+fi
+
+# Set default classpath
+ACTIVEMQ_CLASSPATH="${ACTIVEMQ_BASE}/conf;"$ACTIVEMQ_CLASSPATH
+
+if [ $1 = "start" ] ; then
+    if [ -z "$ACTIVEMQ_OPTS" ] ; then
+        ACTIVEMQ_OPTS="-Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Djava.util.logging.config.file=logging.properties"
+    fi
+
+    if [ -z "$SUNJMX" ] ; then
+        #SUNJMX="-Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
+        SUNJMX="-Dcom.sun.management.jmxremote"
+    fi
+
+    ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS $SUNJMX $SSL_OPTS"
+fi
+
+# Uncomment to enable YourKit profiling
+#ACTIVEMQ_DEBUG_OPTS="-agentlib:yjpagent"
+
+# Uncomment to enable remote debugging
+#ACTIVEMQ_DEBUG_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
+
+if [ -n "$CYGHOME" ]; then
+    exec "$JAVACMD" $ACTIVEMQ_OPTS $ACTIVEMQ_DEBUG_OPTS -Dactivemq.classpath="${ACTIVEMQ_CLASSPATH}" -Dactivemq.home="${ACTIVEMQ_HOME}" -Dactivemq.base="${ACTIVEMQ_BASE}" -Dcygwin.user.home="$CYGHOME" -jar "${ACTIVEMQ_HOME}/bin/run.jar" $@
+else
+    exec "$JAVACMD" $ACTIVEMQ_OPTS $ACTIVEMQ_DEBUG_OPTS -Dactivemq.classpath="${ACTIVEMQ_CLASSPATH}" -Dactivemq.home="${ACTIVEMQ_HOME}" -Dactivemq.base="${ACTIVEMQ_BASE}" -jar "${ACTIVEMQ_HOME}/bin/run.jar" $@
+fi

Added: uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/activemq-admin.bat
URL: http://svn.apache.org/viewvc/uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/activemq-admin.bat?rev=1051286&view=auto
==============================================================================
--- uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/activemq-admin.bat (added)
+++ uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/activemq-admin.bat Mon Dec 20 20:54:30 2010
@@ -0,0 +1,106 @@
+@echo off
+
+REM ------------------------------------------------------------------------
+REM Licensed to the Apache Software Foundation (ASF) under one or more
+REM contributor license agreements.  See the NOTICE file distributed with
+REM this work for additional information regarding copyright ownership.
+REM The ASF licenses this file to You under the Apache License, Version 2.0
+REM (the "License"); you may not use this file except in compliance with
+REM the License.  You may obtain a copy of the License at
+REM
+REM http://www.apache.org/licenses/LICENSE-2.0
+REM
+REM Unless required by applicable law or agreed to in writing, software
+REM distributed under the License is distributed on an "AS IS" BASIS,
+REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+REM See the License for the specific language governing permissions and
+REM limitations under the License.
+REM ------------------------------------------------------------------------
+
+if exist "%HOME%\activemqrc_pre.bat" call "%HOME%\activemqrc_pre.bat"
+
+if "%OS%"=="Windows_NT" @setlocal
+
+rem %~dp0 is expanded pathname of the current script under NT
+set DEFAULT_ACTIVEMQ_HOME=%~dp0..
+
+if "%ACTIVEMQ_HOME%"=="" set ACTIVEMQ_HOME=%DEFAULT_ACTIVEMQ_HOME%
+set DEFAULT_ACTIVEMQ_HOME=
+
+:doneStart
+rem find ACTIVEMQ_HOME if it does not exist due to either an invalid value passed
+rem by the user or the %0 problem on Windows 9x
+if exist "%ACTIVEMQ_HOME%\README.txt" goto checkJava
+
+rem check for activemq in Program Files on system drive
+if not exist "%SystemDrive%\Program Files\activemq" goto checkSystemDrive
+set ACTIVEMQ_HOME=%SystemDrive%\Program Files\activemq
+goto checkJava
+
+:checkSystemDrive
+rem check for activemq in root directory of system drive
+if not exist %SystemDrive%\activemq\README.txt goto checkCDrive
+set ACTIVEMQ_HOME=%SystemDrive%\activemq
+goto checkJava
+
+:checkCDrive
+rem check for activemq in C:\activemq for Win9X users
+if not exist C:\activemq\README.txt goto noAntHome
+set ACTIVEMQ_HOME=C:\activemq
+goto checkJava
+
+:noAntHome
+echo ACTIVEMQ_HOME is set incorrectly or activemq could not be located. Please set ACTIVEMQ_HOME.
+goto end
+
+:checkJava
+set _JAVACMD=%JAVACMD%
+
+if "%JAVA_HOME%" == "" goto noJavaHome
+if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
+if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe
+goto runAnt
+
+:noJavaHome
+if "%_JAVACMD%" == "" set _JAVACMD=java.exe
+echo.
+echo Warning: JAVA_HOME environment variable is not set.
+echo.
+
+:runAnt
+
+if "%ACTIVEMQ_BASE%" == "" set ACTIVEMQ_BASE=%ACTIVEMQ_HOME%
+
+if /i not "%1" == "start" goto debugOpts
+
+
+if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Djava.util.logging.config.file=logging.properties
+
+if "%SUNJMX%" == "" set SUNJMX=-Dcom.sun.management.jmxremote
+REM set SUNJMX=-Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
+
+
+:debugOpts
+REM Uncomment to enable YourKit profiling
+REM SET ACTIVEMQ_DEBUG_OPTS="-agentlib:yjpagent"
+
+REM Uncomment to enable remote debugging
+REM SET ACTIVEMQ_DEBUG_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
+
+REM Setup ActiveMQ Classpath. Default is the conf directory.
+set ACTIVEMQ_CLASSPATH=%ACTIVEMQ_BASE%/conf;%ACTIVEMQ_CLASSPATH%
+
+"%_JAVACMD%" %SUNJMX% %ACTIVEMQ_DEBUG_OPTS% %ACTIVEMQ_OPTS% %SSL_OPTS% -Dactivemq.classpath="%ACTIVEMQ_CLASSPATH%" -Dactivemq.home="%ACTIVEMQ_HOME%" -Dactivemq.base="%ACTIVEMQ_BASE%" -jar "%ACTIVEMQ_HOME%/bin/run.jar" %*
+
+goto end
+
+
+:end
+set _JAVACMD=
+
+if "%OS%"=="Windows_NT" @endlocal
+
+:mainEnd
+if exist "%HOME%\activemqrc_post.bat" call "%HOME%\activemqrc_post.bat"
+
+

Added: uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/activemq.bat
URL: http://svn.apache.org/viewvc/uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/activemq.bat?rev=1051286&view=auto
==============================================================================
--- uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/activemq.bat (added)
+++ uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/activemq.bat Mon Dec 20 20:54:30 2010
@@ -0,0 +1,101 @@
+@echo off
+
+REM ------------------------------------------------------------------------
+REM Licensed to the Apache Software Foundation (ASF) under one or more
+REM contributor license agreements.  See the NOTICE file distributed with
+REM this work for additional information regarding copyright ownership.
+REM The ASF licenses this file to You under the Apache License, Version 2.0
+REM (the "License"); you may not use this file except in compliance with
+REM the License.  You may obtain a copy of the License at
+REM
+REM http://www.apache.org/licenses/LICENSE-2.0
+REM
+REM Unless required by applicable law or agreed to in writing, software
+REM distributed under the License is distributed on an "AS IS" BASIS,
+REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+REM See the License for the specific language governing permissions and
+REM limitations under the License.
+REM ------------------------------------------------------------------------
+
+if exist "%HOME%\activemqrc_pre.bat" call "%HOME%\activemqrc_pre.bat"
+
+if "%OS%"=="Windows_NT" @setlocal
+
+rem %~dp0 is expanded pathname of the current script under NT
+set DEFAULT_ACTIVEMQ_HOME=%~dp0..
+
+if "%ACTIVEMQ_HOME%"=="" set ACTIVEMQ_HOME=%DEFAULT_ACTIVEMQ_HOME%
+set DEFAULT_ACTIVEMQ_HOME=
+
+:doneStart
+rem find ACTIVEMQ_HOME if it does not exist due to either an invalid value passed
+rem by the user or the %0 problem on Windows 9x
+if exist "%ACTIVEMQ_HOME%\README.txt" goto checkJava
+
+rem check for activemq in Program Files on system drive
+if not exist "%SystemDrive%\Program Files\activemq" goto checkSystemDrive
+set ACTIVEMQ_HOME=%SystemDrive%\Program Files\activemq
+goto checkJava
+
+:checkSystemDrive
+rem check for activemq in root directory of system drive
+if not exist %SystemDrive%\activemq\README.txt goto checkCDrive
+set ACTIVEMQ_HOME=%SystemDrive%\activemq
+goto checkJava
+
+:checkCDrive
+rem check for activemq in C:\activemq for Win9X users
+if not exist C:\activemq\README.txt goto noAntHome
+set ACTIVEMQ_HOME=C:\activemq
+goto checkJava
+
+:noAntHome
+echo ACTIVEMQ_HOME is set incorrectly or activemq could not be located. Please set ACTIVEMQ_HOME.
+goto end
+
+:checkJava
+set _JAVACMD=%JAVACMD%
+
+if "%JAVA_HOME%" == "" goto noJavaHome
+if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
+if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe
+goto runAnt
+
+:noJavaHome
+if "%_JAVACMD%" == "" set _JAVACMD=java.exe
+echo.
+echo Warning: JAVA_HOME environment variable is not set.
+echo.
+
+:runAnt
+
+if "%ACTIVEMQ_BASE%" == "" set ACTIVEMQ_BASE=%ACTIVEMQ_HOME%
+
+if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Djava.util.logging.config.file=logging.properties
+
+if "%SUNJMX%" == "" set SUNJMX=-Dcom.sun.management.jmxremote
+REM set SUNJMX=-Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
+
+REM Uncomment to enable YourKit profiling
+REM SET ACTIVEMQ_DEBUG_OPTS="-agentlib:yjpagent"
+
+REM Uncomment to enable remote debugging
+REM SET ACTIVEMQ_DEBUG_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
+
+REM Setup ActiveMQ Classpath. 
+REM Add instance conf dir before AMQ install conf dir to pick up instance-specific classpath entries first
+set ACTIVEMQ_CLASSPATH=%ACTIVEMQ_BASE%/conf;%ACTIVEMQ_HOME%/conf;%ACTIVEMQ_CLASSPATH%
+
+"%_JAVACMD%" %SUNJMX% %ACTIVEMQ_DEBUG_OPTS% %ACTIVEMQ_OPTS% %SSL_OPTS% -Dactivemq.classpath="%ACTIVEMQ_CLASSPATH%" -Dactivemq.home="%ACTIVEMQ_HOME%" -Dactivemq.base="%ACTIVEMQ_BASE%" -jar "%ACTIVEMQ_HOME%/bin/run.jar" start %*
+
+goto end
+
+
+:end
+set _JAVACMD=
+if "%OS%"=="Windows_NT" @endlocal
+
+:mainEnd
+if exist "%HOME%\activemqrc_post.bat" call "%HOME%\activemqrc_post.bat"
+
+

Added: uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/run.jar
URL: http://svn.apache.org/viewvc/uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/run.jar?rev=1051286&view=auto
==============================================================================
Binary file - no diff available.

Propchange: uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/run.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/win32/InstallService.bat
URL: http://svn.apache.org/viewvc/uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/win32/InstallService.bat?rev=1051286&view=auto
==============================================================================
--- uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/win32/InstallService.bat (added)
+++ uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/win32/InstallService.bat Mon Dec 20 20:54:30 2010
@@ -0,0 +1,52 @@
+@echo off
+
+REM ------------------------------------------------------------------------
+REM Licensed to the Apache Software Foundation (ASF) under one or more
+REM contributor license agreements.  See the NOTICE file distributed with
+REM this work for additional information regarding copyright ownership.
+REM The ASF licenses this file to You under the Apache License, Version 2.0
+REM (the "License"); you may not use this file except in compliance with
+REM the License.  You may obtain a copy of the License at
+REM
+REM http://www.apache.org/licenses/LICENSE-2.0
+REM
+REM Unless required by applicable law or agreed to in writing, software
+REM distributed under the License is distributed on an "AS IS" BASIS,
+REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+REM See the License for the specific language governing permissions and
+REM limitations under the License.
+REM ------------------------------------------------------------------------
+
+setlocal
+
+rem Java Service Wrapper general NT service install script
+
+
+if "%OS%"=="Windows_NT" goto nt
+echo This script only works with NT-based versions of Windows.
+goto :eof
+
+:nt
+rem
+rem Find the application home.
+rem
+rem %~dp0 is location of current script under NT
+set _REALPATH=%~dp0
+
+set ACTIVEMQ_HOME=%~dp0..\..
+set ACTIVEMQ_BASE=%~dp0..\..
+
+:conf
+set _WRAPPER_CONF="%ACTIVEMQ_HOME%\bin\win32\wrapper.conf"
+
+set _ACTIVEMQ_HOME="set.ACTIVEMQ_HOME=%ACTIVEMQ_HOME%"
+set _ACTIVEMQ_BASE="set.ACTIVEMQ_BASE=%ACTIVEMQ_BASE%"
+
+rem
+rem Install the Wrapper as an NT service.
+rem
+:startup
+"wrapper.exe" -i %_WRAPPER_CONF% %_ACTIVEMQ_HOME% %_ACTIVEMQ_BASE%
+if not errorlevel 1 goto :eof
+pause
+

Added: uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/win32/UninstallService.bat
URL: http://svn.apache.org/viewvc/uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/win32/UninstallService.bat?rev=1051286&view=auto
==============================================================================
--- uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/win32/UninstallService.bat (added)
+++ uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/win32/UninstallService.bat Mon Dec 20 20:54:30 2010
@@ -0,0 +1,48 @@
+@echo off
+
+REM ------------------------------------------------------------------------
+REM Licensed to the Apache Software Foundation (ASF) under one or more
+REM contributor license agreements.  See the NOTICE file distributed with
+REM this work for additional information regarding copyright ownership.
+REM The ASF licenses this file to You under the Apache License, Version 2.0
+REM (the "License"); you may not use this file except in compliance with
+REM the License.  You may obtain a copy of the License at
+REM
+REM http://www.apache.org/licenses/LICENSE-2.0
+REM
+REM Unless required by applicable law or agreed to in writing, software
+REM distributed under the License is distributed on an "AS IS" BASIS,
+REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+REM See the License for the specific language governing permissions and
+REM limitations under the License.
+REM ------------------------------------------------------------------------
+
+setlocal
+
+rem Java Service Wrapper general NT service uninstall script
+
+if "%OS%"=="Windows_NT" goto nt
+echo This script only works with NT-based versions of Windows.
+goto :eof
+
+:nt
+rem
+rem Find the application home.
+rem
+rem %~dp0 is location of current script under NT
+set _REALPATH=%~dp0
+
+set ACTIVEMQ_HOME=%~dp0\..\..
+
+:conf
+set _WRAPPER_CONF="%ACTIVEMQ_HOME%\bin\win32\wrapper.conf"
+
+
+rem
+rem Uninstall the Wrapper as an NT service.
+rem
+:startup
+"%_APP_HOME%wrapper.exe" -r %_WRAPPER_CONF%
+if not errorlevel 1 goto :eof
+pause
+

Added: uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/win32/activemq.bat
URL: http://svn.apache.org/viewvc/uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/win32/activemq.bat?rev=1051286&view=auto
==============================================================================
--- uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/win32/activemq.bat (added)
+++ uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/win32/activemq.bat Mon Dec 20 20:54:30 2010
@@ -0,0 +1,50 @@
+@echo off
+
+REM ------------------------------------------------------------------------
+REM Licensed to the Apache Software Foundation (ASF) under one or more
+REM contributor license agreements.  See the NOTICE file distributed with
+REM this work for additional information regarding copyright ownership.
+REM The ASF licenses this file to You under the Apache License, Version 2.0
+REM (the "License"); you may not use this file except in compliance with
+REM the License.  You may obtain a copy of the License at
+REM
+REM http://www.apache.org/licenses/LICENSE-2.0
+REM
+REM Unless required by applicable law or agreed to in writing, software
+REM distributed under the License is distributed on an "AS IS" BASIS,
+REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+REM See the License for the specific language governing permissions and
+REM limitations under the License.
+REM ------------------------------------------------------------------------
+
+rem
+rem Find the application home.
+rem
+if "%OS%"=="Windows_NT" goto nt
+
+echo This is not NT, so please edit this script and set _APP_HOME manually
+set _APP_HOME=..
+
+goto conf
+
+:nt
+rem %~dp0 is name of current script under NT
+set _APP_HOME=%~dp0
+
+rem
+rem Find the wrapper.conf
+rem
+:conf
+set _WRAPPER_CONF=wrapper.conf
+
+rem
+rem Run the application.
+rem At runtime, the current directory will be that of Wrapper.exe
+rem
+"%_APP_HOME%wrapper.exe" -c %_WRAPPER_CONF% 
+if not errorlevel 1 goto end
+pause
+
+:end
+set _APP_HOME=
+set _WRAPPER_CONF=

Added: uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/win32/wrapper.conf
URL: http://svn.apache.org/viewvc/uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/win32/wrapper.conf?rev=1051286&view=auto
==============================================================================
--- uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/win32/wrapper.conf (added)
+++ uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/win32/wrapper.conf Mon Dec 20 20:54:30 2010
@@ -0,0 +1,139 @@
+# ------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+# 
+# http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ------------------------------------------------------------------------
+
+#********************************************************************
+# Wrapper Properties
+#********************************************************************
+
+# wrapper.debug=TRUE
+set.default.ACTIVEMQ_HOME=../..
+set.default.ACTIVEMQ_BASE=../..
+wrapper.working.dir=.
+
+# Java Application
+wrapper.java.command=java
+
+# Java Main class.  This class must implement the WrapperListener interface
+#  or guarantee that the WrapperManager class is initialized.  Helper
+#  classes are provided to do this for you.  See the Integration section
+#  of the documentation for details.
+wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
+
+# Java Classpath (include wrapper.jar)  Add class path elements as
+#  needed starting from 1
+wrapper.java.classpath.1=%ACTIVEMQ_HOME%/bin/wrapper.jar
+wrapper.java.classpath.2=%ACTIVEMQ_HOME%/bin/run.jar
+
+# Java Library Path (location of Wrapper.DLL or libwrapper.so)
+wrapper.java.library.path.1=%ACTIVEMQ_HOME%/bin/win32
+
+# Java Additional Parameters
+# note that n is the parameter number starting from 1.
+wrapper.java.additional.1=-Dactivemq.home="%ACTIVEMQ_HOME%"
+wrapper.java.additional.2=-Dactivemq.base="%ACTIVEMQ_BASE%"
+wrapper.java.additional.3=-Djavax.net.ssl.keyStorePassword=password
+wrapper.java.additional.4=-Djavax.net.ssl.trustStorePassword=password
+wrapper.java.additional.5=-Djavax.net.ssl.keyStore="%ACTIVEMQ_BASE%/conf/broker.ks"
+wrapper.java.additional.6=-Djavax.net.ssl.trustStore="%ACTIVEMQ_BASE%/conf/broker.ts"
+wrapper.java.additional.7=-Dcom.sun.management.jmxremote
+wrapper.java.additional.8=-Dorg.apache.activemq.UseDedicatedTaskRunner=true
+wrapper.java.additional.9=-Djava.util.logging.config.file=logging.properties
+
+# Uncomment to enable remote jmx
+#wrapper.java.additional.n=-Dcom.sun.management.jmxremote.port=1616 
+#wrapper.java.additional.n=-Dcom.sun.management.jmxremote.authenticate=false 
+#wrapper.java.additional.n=-Dcom.sun.management.jmxremote.ssl=false
+
+# Uncomment to enable YourKit profiling
+#wrapper.java.additional.n=-Xrunyjpagent
+
+# Uncomment to enable remote debugging
+#wrapper.java.additional.n=-Xdebug -Xnoagent -Djava.compiler=NONE 
+#wrapper.java.additional.n=-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
+
+# Initial Java Heap Size (in MB)
+#wrapper.java.initmemory=3
+
+# Maximum Java Heap Size (in MB)
+wrapper.java.maxmemory=512
+
+# Application parameters.  Add parameters as needed starting from 1
+wrapper.app.parameter.1=org.apache.activemq.console.Main
+wrapper.app.parameter.2=start
+
+#********************************************************************
+# Wrapper Logging Properties
+#********************************************************************
+# Format of output for the console.  (See docs for formats)
+wrapper.console.format=PM
+
+# Log Level for console output.  (See docs for log levels)
+wrapper.console.loglevel=INFO
+
+# Log file to use for wrapper output logging.
+wrapper.logfile=%ACTIVEMQ_BASE%/data/wrapper.log
+
+# Format of output for the log file.  (See docs for formats)
+wrapper.logfile.format=LPTM
+
+# Log Level for log file output.  (See docs for log levels)
+wrapper.logfile.loglevel=INFO
+
+# Maximum size that the log file will be allowed to grow to before
+#  the log is rolled. Size is specified in bytes.  The default value
+#  of 0, disables log rolling.  May abbreviate with the 'k' (kb) or
+#  'm' (mb) suffix.  For example: 10m = 10 megabytes.
+wrapper.logfile.maxsize=0
+
+# Maximum number of rolled log files which will be allowed before old
+#  files are deleted.  The default value of 0 implies no limit.
+wrapper.logfile.maxfiles=0
+
+# Log Level for sys/event log output.  (See docs for log levels)
+wrapper.syslog.loglevel=NONE
+
+#********************************************************************
+# Wrapper Windows Properties
+#********************************************************************
+# Title to use when running as a console
+wrapper.console.title=ActiveMQ
+
+#********************************************************************
+# Wrapper Windows NT/2000/XP Service Properties
+#********************************************************************
+# WARNING - Do not modify any of these properties when an application
+#  using this configuration file has been installed as a service.
+#  Please uninstall the service before modifying this section.  The
+#  service can then be reinstalled.
+
+# Name of the service
+wrapper.ntservice.name=ActiveMQ
+
+# Display name of the service
+wrapper.ntservice.displayname=ActiveMQ
+
+# Description of the service
+wrapper.ntservice.description=ActiveMQ Broker
+
+# Service dependencies.  Add dependencies as needed starting from 1
+wrapper.ntservice.dependency.1=
+
+# Mode in which the service is installed.  AUTO_START or DEMAND_START
+wrapper.ntservice.starttype=AUTO_START
+
+# Allow the service to interact with the desktop.
+wrapper.ntservice.interactive=false

Added: uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/win32/wrapper.dll
URL: http://svn.apache.org/viewvc/uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/win32/wrapper.dll?rev=1051286&view=auto
==============================================================================
Binary file - no diff available.

Propchange: uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/win32/wrapper.dll
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/win32/wrapper.exe
URL: http://svn.apache.org/viewvc/uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/win32/wrapper.exe?rev=1051286&view=auto
==============================================================================
Binary file - no diff available.

Propchange: uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/win32/wrapper.exe
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/wrapper.jar
URL: http://svn.apache.org/viewvc/uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/wrapper.jar?rev=1051286&view=auto
==============================================================================
Binary file - no diff available.

Propchange: uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/bin/wrapper.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/conf/credentials-enc.properties
URL: http://svn.apache.org/viewvc/uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/conf/credentials-enc.properties?rev=1051286&view=auto
==============================================================================
--- uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/conf/credentials-enc.properties (added)
+++ uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/conf/credentials-enc.properties Mon Dec 20 20:54:30 2010
@@ -0,0 +1,22 @@
+## ---------------------------------------------------------------------------
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements.  See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License.  You may obtain a copy of the License at
+## 
+## http://www.apache.org/licenses/LICENSE-2.0
+## 
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+## ---------------------------------------------------------------------------
+
+# Defines credentials that will be used by components (like web console) to access the broker
+
+activemq.username=system
+activemq.password=ENC(mYRkg+4Q4hua1kvpCCI2hg==)
+guest.password=ENC(Cf3Jf3tM+UrSOoaKU50od5CuBa8rxjoL)

Added: uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/conf/credentials.properties
URL: http://svn.apache.org/viewvc/uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/conf/credentials.properties?rev=1051286&view=auto
==============================================================================
--- uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/conf/credentials.properties (added)
+++ uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/conf/credentials.properties Mon Dec 20 20:54:30 2010
@@ -0,0 +1,22 @@
+## ---------------------------------------------------------------------------
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements.  See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License.  You may obtain a copy of the License at
+## 
+## http://www.apache.org/licenses/LICENSE-2.0
+## 
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+## ---------------------------------------------------------------------------
+
+# Defines credentials that will be used by components (like web console) to access the broker
+
+activemq.username=system
+activemq.password=manager
+guest.password=password

Added: uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/conf/jetty-realm.properties
URL: http://svn.apache.org/viewvc/uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/conf/jetty-realm.properties?rev=1051286&view=auto
==============================================================================
--- uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/conf/jetty-realm.properties (added)
+++ uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/conf/jetty-realm.properties Mon Dec 20 20:54:30 2010
@@ -0,0 +1,20 @@
+## ---------------------------------------------------------------------------
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements.  See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License.  You may obtain a copy of the License at
+## 
+## http://www.apache.org/licenses/LICENSE-2.0
+## 
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+## ---------------------------------------------------------------------------
+
+# Defines users that can access the web (console, demo, etc.)
+# username: password [,rolename ...]
+admin: admin, admin

Added: uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/conf/jetty.xml
URL: http://svn.apache.org/viewvc/uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/conf/jetty.xml?rev=1051286&view=auto
==============================================================================
--- uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/conf/jetty.xml (added)
+++ uima/uima-as/trunk/uima-as-distr/src/main/apache-activemq-5.4.1/conf/jetty.xml Mon Dec 20 20:54:30 2010
@@ -0,0 +1,117 @@
+
+    <!--
+        Licensed to the Apache Software Foundation (ASF) under one or more contributor
+        license agreements. See the NOTICE file distributed with this work for additional
+        information regarding copyright ownership. The ASF licenses this file to You under
+        the Apache License, Version 2.0 (the "License"); you may not use this file except in
+        compliance with the License. You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or
+        agreed to in writing, software distributed under the License is distributed on an
+        "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+        implied. See the License for the specific language governing permissions and
+        limitations under the License.
+    -->
+    <!--
+        An embedded servlet engine for serving up the Admin consoles, REST and Ajax APIs and
+        some demos Include this file in your configuration to enable ActiveMQ web components
+        e.g. <import resource="jetty.xml"/>
+    -->
+<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
+
+    <bean id="securityLoginService" class="org.eclipse.jetty.security.HashLoginService">
+        <property name="name" value="ActiveMQRealm" />
+        <property name="config" value="${activemq.base}/conf/jetty-realm.properties" />
+    </bean>
+
+    <bean id="securityConstraint" class="org.eclipse.jetty.http.security.Constraint">
+        <property name="name" value="BASIC" />
+        <property name="roles" value="admin" />
+        <property name="authenticate" value="false" />
+    </bean>
+    <bean id="securityConstraintMapping" class="org.eclipse.jetty.security.ConstraintMapping">
+        <property name="constraint" ref="securityConstraint" />
+        <property name="pathSpec" value="/*" />
+    </bean>
+    <bean id="securityHandler" class="org.eclipse.jetty.security.ConstraintSecurityHandler">
+        <property name="loginService" ref="securityLoginService" />
+        <property name="authenticator">
+            <bean class="org.eclipse.jetty.security.authentication.BasicAuthenticator" />
+        </property>
+        <property name="constraintMappings">
+            <list>
+                <ref bean="securityConstraintMapping" />
+            </list>
+        </property>
+        <property name="handler">
+            <bean id="sec" class="org.eclipse.jetty.server.handler.HandlerCollection">
+                <property name="handlers">
+                    <list>
+                        <bean class="org.eclipse.jetty.webapp.WebAppContext">
+                            <property name="contextPath" value="/admin" />
+                            <property name="resourceBase" value="${activemq.home}/webapps/admin" />
+                            <property name="logUrlOnStart" value="true" />
+                        </bean>
+                        <bean class="org.eclipse.jetty.webapp.WebAppContext">
+                            <property name="contextPath" value="/camel" />
+                            <property name="resourceBase" value="${activemq.home}/webapps/camel" />
+                            <property name="logUrlOnStart" value="true" />
+                        </bean>
+                        <bean class="org.eclipse.jetty.webapp.WebAppContext">
+                            <property name="contextPath" value="/demo" />
+                            <property name="resourceBase" value="${activemq.home}/webapps/demo" />
+                            <property name="logUrlOnStart" value="true" />
+                        </bean>
+                        <bean class="org.eclipse.jetty.webapp.WebAppContext">
+                            <property name="contextPath" value="/fileserver" />
+                            <property name="resourceBase" value="${activemq.home}/webapps/fileserver" />
+                            <property name="logUrlOnStart" value="true" />
+                            <property name="parentLoaderPriority" value="true" />
+                        </bean>
+                        <bean class="org.eclipse.jetty.server.handler.ResourceHandler">
+                            <property name="directoriesListed" value="false" />
+                            <property name="welcomeFiles">
+                                <list>
+                                    <value>index.html</value>
+                                </list>
+                            </property>
+                            <property name="resourceBase" value="${activemq.home}/webapps/" />
+                        </bean>
+                        <bean id="defaultHandler" class="org.eclipse.jetty.server.handler.DefaultHandler">
+                            <property name="serveIcon" value="false" />
+                        </bean>
+                    </list>
+                </property>
+            </bean>
+        </property>
+    </bean>
+
+    <bean id="contexts" class="org.eclipse.jetty.server.handler.ContextHandlerCollection">
+    </bean>
+
+    <bean id="Server" class="org.eclipse.jetty.server.Server" init-method="start"
+        destroy-method="stop">
+
+        <property name="connectors">
+            <list>
+                <bean id="Connector" class="org.eclipse.jetty.server.nio.SelectChannelConnector">
+                    <property name="port" value="8161" />
+                </bean>
+            </list>
+        </property>
+
+        <property name="handler">
+            <bean id="handlers" class="org.eclipse.jetty.server.handler.HandlerCollection">
+                <property name="handlers">
+                    <list>
+                        <ref bean="contexts" />
+                        <ref bean="securityHandler" />
+                    </list>
+                </property>
+            </bean>
+        </property>
+
+    </bean>
+
+</beans>