[hornetq-commits] JBoss hornetq SVN: r9166 - in trunk: src/config and 6 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Apr 26 10:08:51 EDT 2010


Author: ataylor
Date: 2010-04-26 10:08:48 -0400 (Mon, 26 Apr 2010)
New Revision: 9166

Added:
   trunk/src/config/jboss-as-4/
   trunk/src/config/jboss-as-4/build.bat
   trunk/src/config/jboss-as-4/build.sh
   trunk/src/config/jboss-as-4/build.xml
   trunk/src/config/jboss-as-4/clustered/
   trunk/src/config/jboss-as-4/clustered/hornetq-configuration.xml
   trunk/src/config/jboss-as-4/clustered/hornetq-jms.xml
   trunk/src/config/jboss-as-4/clustered/hornetq-roles.properties
   trunk/src/config/jboss-as-4/clustered/hornetq-users.properties
   trunk/src/config/jboss-as-4/clustered/jboss-service.xml
   trunk/src/config/jboss-as-4/clustered/jms-ds.xml
   trunk/src/config/jboss-as-4/clustered/ra.xml
   trunk/src/config/jboss-as-4/non-clustered/
   trunk/src/config/jboss-as-4/non-clustered/hornetq-configuration.xml
   trunk/src/config/jboss-as-4/non-clustered/hornetq-jms.xml
   trunk/src/config/jboss-as-4/non-clustered/hornetq-roles.properties
   trunk/src/config/jboss-as-4/non-clustered/hornetq-users.properties
   trunk/src/config/jboss-as-4/non-clustered/jboss-service.xml
   trunk/src/config/jboss-as-4/non-clustered/jms-ds.xml
   trunk/src/config/jboss-as-4/non-clustered/login-config.xml
   trunk/src/config/jboss-as-4/non-clustered/ra.xml
   trunk/src/config/jboss-as-5/
   trunk/src/config/jboss-as-5/build.bat
   trunk/src/config/jboss-as-5/build.sh
   trunk/src/config/jboss-as-5/build.xml
   trunk/src/config/jboss-as-5/clustered/
   trunk/src/config/jboss-as-5/clustered/hornetq-configuration.xml
   trunk/src/config/jboss-as-5/clustered/hornetq-jboss-beans.xml
   trunk/src/config/jboss-as-5/clustered/hornetq-jms.xml
   trunk/src/config/jboss-as-5/clustered/hornetq-roles.properties
   trunk/src/config/jboss-as-5/clustered/hornetq-users.properties
   trunk/src/config/jboss-as-5/clustered/jms-ds.xml
   trunk/src/config/jboss-as-5/clustered/login-config.xml
   trunk/src/config/jboss-as-5/non-clustered/
   trunk/src/config/jboss-as-5/non-clustered/hornetq-configuration.xml
   trunk/src/config/jboss-as-5/non-clustered/hornetq-jboss-beans.xml
   trunk/src/config/jboss-as-5/non-clustered/hornetq-jms.xml
   trunk/src/config/jboss-as-5/non-clustered/hornetq-roles.properties
   trunk/src/config/jboss-as-5/non-clustered/hornetq-users.properties
   trunk/src/config/jboss-as-5/non-clustered/jms-ds.xml
   trunk/src/config/jboss-as-5/non-clustered/login-config.xml
Removed:
   trunk/build.xml
   trunk/src/config/jboss-as/
   trunk/src/config/service/
Log:
renamed config directories

Deleted: trunk/build.xml
===================================================================
--- trunk/build.xml	2010-04-26 13:27:05 UTC (rev 9165)
+++ trunk/build.xml	2010-04-26 14:08:48 UTC (rev 9166)
@@ -1,317 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE project [
-        <!ENTITY libraries SYSTEM "thirdparty/libraries.ent">
-        ]>
-<!--
-Copyright 2009 Red Hat, Inc.
- Red Hat 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.  
-  -->
-
-<!-- =========================================================================================== -->
-<!--                                                                                             -->
-<!-- $Id$ -->
-<!--                                                                                             -->
-<!-- =========================================================================================== -->
-
-
-<project name="HornetQ" default="jar">
-
-   <property name="hornetq.run_script" value="false" />
-
-   <fail message="*** Please build by using the build.sh script (or build.bat on Windows) ***">
-      <condition>
-         <not>
-            <equals arg1="${hornetq.run_script}" arg2="true"/>
-         </not>
-      </condition>
-   </fail>
-
-   <!--
-        Setting "external.project" to true makes jbossbuild use the current directory, and not its
-        parent, as project root. DO NOT change this.
-   -->
-   <property name="external.project" value="true"/>
-   <!--
-        Setting "nodownload" to true inhibits downloading of up-to-date dependencies.
-   -->
-   <property name="nodownload" value="false"/>
-
-   <target name="createthirdparty" unless="inhibit.downloads" depends="check.inhibit.downloads">
-      <ant antfile="build-thirdparty.xml" target="maven-install"/>
-   </target>
-
-   <target name="check.inhibit.downloads">
-      <condition property="inhibit.downloads">
-         <or>
-            <uptodate property="dependencies.current"
-                      srcfile="pom.xml"
-                      targetfile="./thirdparty/libraries.ent"/>
-            <istrue value="${nodownload}"/>
-         </or>
-      </condition>
-   </target>
-
-   <target name="clean" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="clean"/>
-   </target>
-
-   <target name="init" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="init"/>
-   </target>
-
-   <target name="compile" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="compile"/>
-   </target>
-   
-   <target name="compile-core" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="compile-core"/>
-   </target>
-   
-   <target name="compile-jms" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="compile-jms"/>
-   </target>   
-   
-   <target name="compile-transports" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="compile-transports"/>
-   </target>   
-   
-   <target name="compile-security" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="compile-security"/>
-   </target>
-   
-   <target name="compile-boostrap" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="compile-bootstrap"/>
-   </target>  
-   
-   <target name="compile-logging" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="compile-logging"/>
-   </target>
-
-   <target name="compile-ra" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="compile-ra"/>
-   </target>
-
-   <target name="build-native" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="build-native"/>
-   </target>
-
-   <target name="userdoc">
-      <ant antfile="build-hornetq.xml" target="userdoc"/>
-   </target>
-    
-   <target name="javadoc">
-      <ant antfile="build-hornetq.xml" target="javadoc"/>
-   </target>
-    
-   <target name="validate-configuration">
-      <ant antfile="build-hornetq.xml" target="validate-configuration"/>
-   </target>
-
-   <!-- ======================================================================================== -->
-   <!-- Archival Tasks                                                                           -->
-   <!-- ======================================================================================== -->
-
-   <target name="jar" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="jar"/>
-   </target>
-   
-   <target name="jar-core" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="jar-core"/>
-   </target>  
-   
-   <target name="jar-jms" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="jar-jms"/>
-   </target>
-   
-   <target name="jar-jms-api" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="jar-jms-api"/>
-   </target>
-   
-   <target name="jar-jms-client" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="jar-jms-client"/>
-   </target> 
-   
-   <target name="jar-transports" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="jar-transports"/>
-   </target>   
-   
-   <target name="jar-jboss-service" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="jar-jboss-service"/>
-   </target>
-	
-   <target name="jar-security" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="jar-security"/>
-   </target> 
-   
-   <target name="jar-bootstrap" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="jar-bootstrap"/>
-   </target> 
-   
-   <target name="jar-logging" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="jar-logging"/>
-   </target> 
-
-   <target name="jar-core-client" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="jar-core-client"/>
-   </target>
-
-   <target name="jar-ra" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="jar-ra"/>
-   </target>
-   
-   <target name="jar-mc" depends="createthirdparty">
-         <ant antfile="build-hornetq.xml" target="jar-mc"/>
-   </target>
-      
-   <!-- ======================================================================================== -->
-   <!-- Distro Tasks                                                                           -->
-   <!-- ======================================================================================== -->
-   <target name="deploy-jboss" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="deploy-jboss"/>
-   </target>
-
-   <target name="deploy" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="deploy"/>
-   </target>
-
-    <target name="build.sar" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="build.sar"/>
-   </target>
-
-   <target name="distro" depends="bin-distro, source-distro" />
-	
-   <target name="bin-distro" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="bin-distro"/>
-   </target>
-
-   <target name="source-distro" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="source-distro"/>
-   </target>
-
-	<target name="artifacts" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="artifacts"/>
-   </target>
-
-
-   <!-- test targets -->
-
-
-   <target name="compile-unit-tests" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="compile-unit-tests"/>
-   </target>
-
-   <target name="compile-jms-tests" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="compile"/>
-   </target>
-
-   <target name="compile-joram-tests" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="compile"/>
-   </target>
-
-   <target name="unit-tests" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="unit-tests"/>
-      <ant antfile="build-hornetq.xml" target="compile-reports"/>
-   </target>
-
-   <target name="timing-tests" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="timing-tests"/>
-      <ant antfile="build-hornetq.xml" target="compile-reports"/>
-   </target>
-
-   <target name="integration-tests" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="integration-tests"/>
-      <ant antfile="build-hornetq.xml" target="compile-reports"/>
-   </target>
-   
-   <target name="failover-tests" depends="createthirdparty">
-	   <ant antfile="build-hornetq.xml" target="failover-tests"/>
-	   <ant antfile="build-hornetq.xml" target="compile-reports"/>
-   </target>   
-   
-   <target name="distribution-tests" depends="createthirdparty">
-	   <ant antfile="build-hornetq.xml" target="distribution-tests"/>
-	   <ant antfile="build-hornetq.xml" target="compile-reports"/>
-   </target>
-
-    <target name="concurrent-tests" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="concurrent-tests"/>
-      <ant antfile="build-hornetq.xml" target="compile-reports"/>
-   </target>
-
-    <target name="performance-tests" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="performance-tests"/>
-      <ant antfile="build-hornetq.xml" target="compile-reports"/>
-   </target>
-   
-   <target name="stress-tests" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="stress-tests"/>
-      <ant antfile="build-hornetq.xml" target="compile-reports"/>
-   </target>
-   
-   <target name="jms-tests" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="jms-tests"/>
-      <ant antfile="build-hornetq.xml" target="compile-reports"/>
-   </target>
-    
-   <target name="joram-tests" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="joram-tests"/>
-      <ant antfile="build-hornetq.xml" target="compile-reports"/>
-   </target>
-
-   <target name="all-tests" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="all-tests"/>
-      <ant antfile="build-hornetq.xml" target="compile-reports"/>
-   </target>
-   
-   <target name="hudson-tests" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="hudson-tests"/>
-   </target>
-
-   <target name="dev-tests" depends="createthirdparty">
-   	  <mkdir dir="./tmp"/>
-      <ant antfile="build-hornetq.xml" target="hudson-tests">
-      	<property name="java.io.tmpdir" value="./tmp"/>
-   	  </ant>
-      <ant antfile="build-hornetq.xml" target="compile-reports"/>
-   </target>
-
-   <target name="tests" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="tests"/>
-      <ant antfile="build-hornetq.xml" target="compile-reports"/>
-   </target>
-
-   <target name="compile-reports" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="compile-reports"/>
-   </target>
-
-   <target name="emma" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="emma"/>
-   </target>
-
-   <!--server-->
-
-   <target name="runServer" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="runServer"/>
-   </target>
-
-   <target name="runClusteredServer" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="runClusteredServer"/>
-   </target>
-
-   <target name="debugServer" depends="createthirdparty">
-      <ant antfile="build-hornetq.xml" target="debugServer"/>
-   </target>
-
-    <target name="findbugs" depends="createthirdparty">
-       <ant antfile="build-hornetq.xml" target="findbugs"/>
-    </target>
-  
-</project>

Added: trunk/src/config/jboss-as-4/build.bat
===================================================================
--- trunk/src/config/jboss-as-4/build.bat	                        (rev 0)
+++ trunk/src/config/jboss-as-4/build.bat	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,13 @@
+ at echo off
+
+set "OVERRIDE_ANT_HOME=..\..\tools\ant"
+
+if exist "..\..\src\bin\build.bat" (
+   rem running from TRUNK
+   call ..\..\src\bin\build.bat %*
+) else (
+   rem running from the distro
+   call ..\..\bin\build.bat %*
+)
+
+set "OVERRIDE_ANT_HOME="

Added: trunk/src/config/jboss-as-4/build.sh
===================================================================
--- trunk/src/config/jboss-as-4/build.sh	                        (rev 0)
+++ trunk/src/config/jboss-as-4/build.sh	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+OVERRIDE_ANT_HOME=../../tools/ant
+export OVERRIDE_ANT_HOME
+
+if [ -f "../../src/bin/build.sh" ]; then
+   # running from TRUNK
+   ../../src/bin/build.sh "$@"
+else
+   # running from the distro
+   ../../bin/build.sh "$@"
+fi
+
+
+

Added: trunk/src/config/jboss-as-4/build.xml
===================================================================
--- trunk/src/config/jboss-as-4/build.xml	                        (rev 0)
+++ trunk/src/config/jboss-as-4/build.xml	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,110 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2009 Red Hat, Inc.
+ Red Hat 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.
+  -->
+<!-- author: Lucas Amador -->
+<project default="default" name="HornetQ integration with JBoss AS 4">
+   <property environment="ENV"/>
+   <property name="jboss.home" value="${ENV.JBOSS_HOME}"/>
+   <property name="src.bin.dir" value="../../bin"/>
+   <property name="dest.bin.dir" value="${jboss.home}/bin"/>
+   <property name="lib.dir" value="../../lib"/>
+
+   <target name="default" description="Create JBoss AS 4 profiles to use HornetQ">
+    <antcall target="create-profile">
+       <!-- created from JBoss AS 4 default profile -->
+       <param name="jbossas.profile.source" value="default"/>
+       <!-- based on HornetQ jbossas/non-clustered config -->
+       <param name="hornetq.config.dir" value="./non-clustered"/>
+       <!-- new profile is named default-with-hornetq -->
+       <param name="hornetq.profile.target" value="default-with-hornetq"/>
+    </antcall>
+    <antcall target="create-profile">
+       <!-- created from JBoss AS 4 all profile -->
+       <param name="jbossas.profile.source" value="all"/>
+       <!-- based on HornetQ jbossas/clustered config -->
+       <param name="hornetq.config.dir" value="clustered"/>
+       <!-- new profile is named all-with-hornetq -->
+       <param name="hornetq.profile.target" value="all-with-hornetq"/>
+    </antcall>
+   <mkdir dir="${dest.bin.dir}/native"/>
+   <copy todir="${dest.bin.dir}/native" file="${src.bin.dir}/libHornetQAIO32.so"/>
+   <copy todir="${dest.bin.dir}/native" file="${src.bin.dir}/libHornetQAIO64.so"/>
+   </target>
+
+   <target name="create-profile">
+      <antcall target="validate-jboss"/>
+      <property name="src.dir" value="${jboss.home}/server/${jbossas.profile.source}"/>
+      <property name="dest.dir" value="${jboss.home}/server/${hornetq.profile.target}"/>
+
+      <mkdir dir="${dest.dir}"/>
+      <copy todir="${dest.dir}">
+         <fileset dir="${src.dir}">
+            <exclude name="**/messaging/**"/>
+            <exclude name="conf/login-config.xml"/>
+            <exclude name="**/jms-ra.rar"/>
+            <exclude name="**/jms/" />
+         </fileset>
+      </copy>
+      <copy todir="${dest.dir}/conf">
+         <fileset dir="${hornetq.config.dir}">
+            <include name="login-config.xml"/>
+         </fileset>
+      </copy>
+      <copy todir="${dest.dir}/conf/props">
+         <fileset dir="${hornetq.config.dir}">
+            <include name="hornetq-users.properties"/>
+            <include name="hornetq-roles.properties"/>
+         </fileset>
+      </copy>
+      <copy todir="${dest.dir}/lib">
+         <fileset dir="${lib.dir}">
+            <include name="hornetq-*.jar"/>
+            <include name="netty*.jar"/>
+         </fileset>
+      </copy>
+
+      <property name="hornetq.sar.dir" value="${dest.dir}/deploy/hornetq.sar"/>
+
+      <unzip src="${lib.dir}/hornetq-service.sar" dest="${hornetq.sar.dir}"/>
+      <copy todir="${hornetq.sar.dir}">
+         <fileset dir="${hornetq.config.dir}">
+            <include name="hornetq-configuration.xml" />
+            <include name="hornetq-jms.xml" />
+        </fileset>
+      </copy>
+     <copy todir="${hornetq.sar.dir}" file="${hornetq.config.dir}/jms-ds.xml"/>
+
+      <copy todir="${hornetq.sar.dir}/META-INF" file="${hornetq.config.dir}/jboss-service.xml"/>
+
+      <property name="jms-ra.rar.dir" value="${dest.dir}/deploy/jms-ra.rar"/>
+      <unzip src="${lib.dir}/hornetq-ra.rar" dest="${jms-ra.rar.dir}"/>
+      <copy todir="${jms-ra.rar.dir}/META-INF/" file="${hornetq.config.dir}/ra.xml"/>
+      <copy todir="${jms-ra.rar.dir}">
+         <fileset dir="${lib.dir}">
+            <include name="netty*.jar"/>
+         </fileset>
+      </copy>
+
+   </target>
+
+   <!-- The JBOSS_HOME environment variable and the directory must exist -->
+   <target name="validate-jboss">
+      <fail unless="ENV.JBOSS_HOME" message="JBOSS_HOME environment variable not set! Set it and try again."/>
+      <available property="source-profile" type="dir" file="${jboss.home}/server/${jbossas.profile.source}"/>
+      <fail unless="source-profile" message="${jboss.home}/server/${jbossas.profile.source} profile not found!"/>
+      <available property="target-profile" type="dir" file="${jboss.home}/server/${hornetq.profile.target}"/>
+      <fail if="target-profile"
+            message="'${hornetq.profile.target}' profile already exists! Delete it manually and try again."/>
+   </target>
+
+</project>

Added: trunk/src/config/jboss-as-4/clustered/hornetq-configuration.xml
===================================================================
--- trunk/src/config/jboss-as-4/clustered/hornetq-configuration.xml	                        (rev 0)
+++ trunk/src/config/jboss-as-4/clustered/hornetq-configuration.xml	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,119 @@
+<!--
+  ~ Copyright 2009 Red Hat, Inc.
+  ~  Red Hat 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.
+  -->
+
+<configuration xmlns="urn:hornetq"
+               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+               xsi:schemaLocation="urn:hornetq /schema/hornetq-configuration.xsd">
+
+   <clustered>true</clustered>
+   
+   <log-delegate-factory-class-name>org.hornetq.integration.logging.Log4jLogDelegateFactory</log-delegate-factory-class-name>
+
+   <bindings-directory>${jboss.server.data.dir}/hornetq/bindings</bindings-directory>
+
+   <journal-directory>${jboss.server.data.dir}/hornetq/journal</journal-directory>
+   
+   <journal-min-files>10</journal-min-files>
+   
+   <large-messages-directory>${jboss.server.data.dir}/hornetq/largemessages</large-messages-directory>
+
+   <paging-directory>${jboss.server.data.dir}/hornetq/paging</paging-directory>
+
+   <connectors>
+      <connector name="netty">
+         <factory-class>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</factory-class>
+         <param key="host"  value="${jboss.bind.address:localhost}"/>
+         <param key="port"  value="${hornetq.remoting.netty.port:5445}"/>
+      </connector>
+      
+      <connector name="netty-throughput">
+         <factory-class>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</factory-class>
+         <param key="host"  value="${jboss.bind.address:localhost}"/>
+         <param key="port"  value="${hornetq.remoting.netty.batch.port:5455}"/>
+         <param key="batch-delay" value="50"/>
+      </connector>
+
+      <connector name="in-vm">
+         <factory-class>org.hornetq.core.remoting.impl.invm.InVMConnectorFactory</factory-class>
+         <param key="server-id" value="${hornetq.server-id:0}"/>
+      </connector>
+
+   </connectors>
+
+   <acceptors>
+      <acceptor name="netty">
+         <factory-class>org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory</factory-class>
+         <param key="host"  value="${jboss.bind.address:localhost}"/>
+         <param key="port"  value="${hornetq.remoting.netty.port:5445}"/>
+      </acceptor>
+      
+      <acceptor name="netty-throughput">
+         <factory-class>org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory</factory-class>
+         <param key="host"  value="${jboss.bind.address:localhost}"/>
+         <param key="port"  value="${hornetq.remoting.netty.batch.port:5455}"/>
+         <param key="batch-delay" value="50"/>
+      </acceptor>
+
+      <acceptor name="in-vm">
+        <factory-class>org.hornetq.core.remoting.impl.invm.InVMAcceptorFactory</factory-class>
+        <param key="server-id" value="0"/>
+      </acceptor>
+
+   </acceptors>
+
+   <broadcast-groups>
+      <broadcast-group name="bg-group1">
+         <group-address>231.7.7.7</group-address>
+         <group-port>9876</group-port>
+         <broadcast-period>5000</broadcast-period>
+         <connector-ref connector-name="netty"/>
+      </broadcast-group>
+   </broadcast-groups>
+
+   <discovery-groups>
+      <discovery-group name="dg-group1">
+         <group-address>231.7.7.7</group-address>
+         <group-port>9876</group-port>
+         <refresh-timeout>10000</refresh-timeout>
+      </discovery-group>
+   </discovery-groups>
+   
+   <cluster-connections>
+      <cluster-connection name="my-cluster">
+         <address>jms</address>	 
+	      <discovery-group-ref discovery-group-name="dg-group1"/>
+      </cluster-connection>
+   </cluster-connections>
+   
+   <security-settings>
+      <security-setting match="#">
+         <permission type="createNonDurableQueue" roles="guest"/>
+         <permission type="deleteNonDurableQueue" roles="guest"/>
+         <permission type="consume" roles="guest"/>
+         <permission type="send" roles="guest"/>
+      </security-setting>
+   </security-settings>
+
+   <address-settings>
+      <!--default for catch all-->
+      <address-setting match="#">
+         <dead-letter-address>jms.queue.DLQ</dead-letter-address>
+         <expiry-address>jms.queue.ExpiryQueue</expiry-address>
+         <redelivery-delay>0</redelivery-delay>
+         <max-size-bytes>10485760</max-size-bytes>       
+         <message-counter-history-day-limit>10</message-counter-history-day-limit>
+         <address-full-policy>BLOCK</address-full-policy>
+      </address-setting>
+   </address-settings>
+
+</configuration>

Added: trunk/src/config/jboss-as-4/clustered/hornetq-jms.xml
===================================================================
--- trunk/src/config/jboss-as-4/clustered/hornetq-jms.xml	                        (rev 0)
+++ trunk/src/config/jboss-as-4/clustered/hornetq-jms.xml	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,43 @@
+<configuration xmlns="urn:hornetq"
+            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+            xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">
+
+   <connection-factory name="NettyConnectionFactory">
+      <connectors>
+         <connector-ref connector-name="netty"/>
+      </connectors>
+      <entries>
+         <entry name="/ConnectionFactory"/>
+         <entry name="/XAConnectionFactory"/>
+      </entries>
+   </connection-factory>
+   
+   <connection-factory name="NettyThroughputConnectionFactory">
+      <connectors>
+         <connector-ref connector-name="netty-throughput"/>
+      </connectors>
+      <entries>
+         <entry name="/ThroughputConnectionFactory"/>
+         <entry name="/XAThroughputConnectionFactory"/>
+      </entries>
+   </connection-factory>
+   
+   <connection-factory name="InVMConnectionFactory">
+      <connectors>
+         <connector-ref connector-name="in-vm"/>
+      </connectors>
+      <entries>
+         <entry name="java:/ConnectionFactory"/>
+         <entry name="java:/XAConnectionFactory"/>
+      </entries>
+   </connection-factory>
+
+   <queue name="DLQ">
+      <entry name="/queue/DLQ"/>
+   </queue>
+   
+   <queue name="ExpiryQueue">
+      <entry name="/queue/ExpiryQueue"/>
+   </queue>
+
+</configuration>

Added: trunk/src/config/jboss-as-4/clustered/hornetq-roles.properties
===================================================================
--- trunk/src/config/jboss-as-4/clustered/hornetq-roles.properties	                        (rev 0)
+++ trunk/src/config/jboss-as-4/clustered/hornetq-roles.properties	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,4 @@
+#
+# user=role1,role2,...
+#
+guest=guest

Added: trunk/src/config/jboss-as-4/clustered/hornetq-users.properties
===================================================================
--- trunk/src/config/jboss-as-4/clustered/hornetq-users.properties	                        (rev 0)
+++ trunk/src/config/jboss-as-4/clustered/hornetq-users.properties	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,4 @@
+#
+# user=password
+#
+guest=guest

Added: trunk/src/config/jboss-as-4/clustered/jboss-service.xml
===================================================================
--- trunk/src/config/jboss-as-4/clustered/jboss-service.xml	                        (rev 0)
+++ trunk/src/config/jboss-as-4/clustered/jboss-service.xml	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright 2009 Red Hat, Inc.
+  ~  Red Hat 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.
+  -->
+      
+<server>
+
+   <mbean code="org.hornetq.service.HornetQFileConfigurationService"
+      name="org.hornetq:service=HornetQFileConfigurationService">
+   </mbean>
+
+   <mbean code="org.hornetq.service.JBossASSecurityManagerService"
+      name="org.hornetq:service=JBossASSecurityManagerService">
+   </mbean>
+
+   <mbean code="org.hornetq.service.HornetQStarterService" 
+      name="org.hornetq:service=HornetQStarterService">
+      <!--lets let the JMS Server start us-->
+         <attribute name="Start">false</attribute>
+
+      <depends optional-attribute-name="SecurityManagerService"
+         proxy-type="attribute">org.hornetq:service=JBossASSecurityManagerService</depends>
+      <depends optional-attribute-name="ConfigurationService"
+         proxy-type="attribute">org.hornetq:service=HornetQFileConfigurationService</depends>
+   </mbean>
+
+   <mbean code="org.hornetq.service.HornetQJMSStarterService"
+      name="org.hornetq:service=HornetQJMSStarterService">
+      <depends optional-attribute-name="HornetQServer"
+         proxy-type="attribute">org.hornetq:service=HornetQStarterService</depends>
+   </mbean>
+   
+</server>

Copied: trunk/src/config/jboss-as-4/clustered/jms-ds.xml (from rev 9165, trunk/src/config/jboss-as/clustered/jboss-as-4/jms-ds.xml)
===================================================================
--- trunk/src/config/jboss-as-4/clustered/jms-ds.xml	                        (rev 0)
+++ trunk/src/config/jboss-as-4/clustered/jms-ds.xml	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,45 @@
+<!--
+  ~ Copyright 2009 Red Hat, Inc.
+  ~  Red Hat 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.
+  -->
+
+<connection-factories>
+   <!--
+    JMS Stuff
+   -->
+
+   <mbean code="org.jboss.jms.jndi.JMSProviderLoader" name="hornetq:service=JMSProviderLoader,name=JMSProvider">
+      <attribute name="ProviderName">DefaultJMSProvider</attribute>
+      <attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute>
+      <attribute name="FactoryRef">java:/XAConnectionFactory</attribute>
+      <attribute name="QueueFactoryRef">java:/XAConnectionFactory</attribute>
+      <attribute name="TopicFactoryRef">java:/XAConnectionFactory</attribute>
+      <attribute name="Properties">
+       java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
+       java.naming.factory.url.pkgs=org.jnp.interfaces
+       java.naming.provider.url=localhost:1199
+    </attribute>
+
+   </mbean>
+   <!--
+    JMS XA Resource adapter, use this to get transacted JMS in beans
+   -->
+   <tx-connection-factory>
+      <jndi-name>JmsXA</jndi-name>
+      <xa-transaction/>
+      <rar-name>jms-ra.rar</rar-name>
+      <connection-definition>org.hornetq.ra.HornetQRAConnectionFactory</connection-definition>
+      <config-property name="SessionDefaultType" type="java.lang.String">javax.jms.Topic</config-property>
+      <config-property name="JmsProviderAdapterJNDI" type="java.lang.String">java:/DefaultJMSProvider</config-property>
+      <max-pool-size>20</max-pool-size>
+      <security-domain-and-application>JmsXARealm</security-domain-and-application>
+   </tx-connection-factory>
+</connection-factories>

Copied: trunk/src/config/jboss-as-4/clustered/ra.xml (from rev 9165, trunk/src/config/jboss-as/clustered/jboss-as-4/ra.xml)
===================================================================
--- trunk/src/config/jboss-as-4/clustered/ra.xml	                        (rev 0)
+++ trunk/src/config/jboss-as-4/clustered/ra.xml	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,293 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  ~ Copyright 2009 Red Hat, Inc.
+  ~  Red Hat 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.
+  -->
+
+<!-- $Id: ra.xml 76819 2008-08-08 11:04:20Z jesper.pedersen $ -->
+
+<connector xmlns="http://java.sun.com/xml/ns/j2ee"
+           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+           xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
+           http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"
+           version="1.5">
+
+   <description>HornetQ 2.0 Resource Adapter</description>
+   <display-name>HornetQ 2.0 Resource Adapter</display-name>
+
+   <vendor-name>Red Hat Middleware LLC</vendor-name>
+   <eis-type>JMS 1.1 Server</eis-type>
+   <resourceadapter-version>1.0</resourceadapter-version>
+
+   <license>
+      <description>
+Copyright 2009 Red Hat, Inc.
+ Red Hat 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.  
+      </description>
+      <license-required>true</license-required>
+   </license>
+
+   <resourceadapter>
+      <resourceadapter-class>org.hornetq.ra.HornetQResourceAdapter</resourceadapter-class>
+      <config-property>
+         <description>The transport type</description>
+         <config-property-name>ConnectorClassName</config-property-name>
+         <config-property-type>java.lang.String</config-property-type>
+         <config-property-value>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</config-property-value>
+      </config-property>
+      <config-property>
+         <description>The transport configuration. These values must be in the form of key=val;key=val;</description>
+         <config-property-name>ConnectionParameters</config-property-name>
+         <config-property-type>java.lang.String</config-property-type>
+         <config-property-value>host=localhost;port=5445</config-property-value>
+      </config-property>
+      <!--
+      <config-property>
+        <description>The method to use for locatingthe transactionmanager</description>
+        <config-property-name>TransactionManagerLocatorMethod</config-property-name>
+        <config-property-type>java.lang.String</config-property-type>
+        <config-property-value>getTm</config-property-value>
+      </config-property>
+      <config-property>
+        <description>Use A local Transaction instead of XA?</description>
+        <config-property-name>UseLocalTx</config-property-name>
+        <config-property-type>java.lang.Boolean</config-property-type>
+        <config-property-value>false</config-property-value>
+      </config-property>
+      <config-property>
+        <description>The user name used to login to the JMS server</description>
+        <config-property-name>UserName</config-property-name>
+        <config-property-type>java.lang.String</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The password used to login to the JMS server</description>
+        <config-property-name>Password</config-property-name>
+        <config-property-type>java.lang.String</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+         <description>The Backup transport type</description>
+         <config-property-name>BackUpTransportType</config-property-name>
+         <config-property-type>java.lang.String</config-property-type>
+         <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+         <description>The Backup transport configuration. These values must be in the form of key=val;key=val;</description>
+         <config-property-name>TransportConfiguration</config-property-name>
+         <config-property-type>java.lang.String</config-property-type>
+         <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The discovery group address</description>
+        <config-property-name>DiscoveryGroupAddress</config-property-name>
+        <config-property-type>java.lang.String</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The discovery group port</description>
+        <config-property-name>DiscoveryGroupPort</config-property-name>
+        <config-property-type>java.lang.Integer</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The discovery refresh timeout</description>
+        <config-property-name>DiscoveryRefreshTimeout</config-property-name>
+        <config-property-type>java.lang.Long</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The discovery initial wait timeout</description>
+        <config-property-name>DiscoveryInitialWaitTimeout</config-property-name>
+        <config-property-type>java.lang.Long</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The load balancing policy class name</description>
+        <config-property-name>LoadBalancingPolicyClassName</config-property-name>
+        <config-property-type>java.lang.String</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The client failure check period</description>
+        <config-property-name>ClientFailureCheckPeriod</config-property-name>
+        <config-property-type>java.lang.Long</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The connection TTL</description>
+        <config-property-name>ConnectionTTL</config-property-name>
+        <config-property-type>java.lang.Long</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The call timeout</description>
+        <config-property-name>CallTimeout</config-property-name>
+        <config-property-type>java.lang.Long</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The dups ok batch size</description>
+        <config-property-name>DupsOKBatchSize</config-property-name>
+        <config-property-type>java.lang.Integer</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The transaction batch size</description>
+        <config-property-name>TransactionBatchSize</config-property-name>
+        <config-property-type>java.lang.Integer</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The consumer window size</description>
+        <config-property-name>ConsumerWindowSize</config-property-name>
+        <config-property-type>java.lang.Integer</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The consumer max rate</description>
+        <config-property-name>ConsumerMaxRate</config-property-name>
+        <config-property-type>java.lang.Integer</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The producer window size</description>
+        <config-property-name>ProducerWindowSize</config-property-name>
+        <config-property-type>java.lang.Integer</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The producer max rate</description>
+        <config-property-name>ProducerMaxRate</config-property-name>
+        <config-property-type>java.lang.Integer</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The min large message size</description>
+        <config-property-name>MinLargeMessageSize</config-property-name>
+        <config-property-type>java.lang.Integer</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The block on acknowledge</description>
+        <config-property-name>BlockOnAcknowledge</config-property-name>
+        <config-property-type>java.lang.Boolean</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The block on non durable send</description>
+        <config-property-name>BlockOnNonDurableSend</config-property-name>
+        <config-property-type>java.lang.Boolean</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The block on durable send</description>
+        <config-property-name>BlockOnDurableSend</config-property-name>
+        <config-property-type>java.lang.Boolean</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The auto group</description>
+        <config-property-name>AutoGroup</config-property-name>
+        <config-property-type>java.lang.Boolean</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The max connections</description>        
+        <config-property-type>java.lang.Integer</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The pre acknowledge</description>
+        <config-property-name>PreAcknowledge</config-property-name>
+        <config-property-type>java.lang.Boolean</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The retry interval</description>
+        <config-property-name>RetryInterval</config-property-name>
+        <config-property-type>java.lang.Long</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The retry interval multiplier</description>
+        <config-property-name>RetryIntervalMultiplier</config-property-name>
+        <config-property-type>java.lang.Double</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>Should clean server shutdown trigger failover?</description>
+        <config-property-name>FailoverOnServerShutdown</config-property-name>
+        <config-property-type>java.lang.Boolean</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The client id</description>
+        <config-property-name>ClientID</config-property-name>
+        <config-property-type>java.lang.String</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>-->
+
+      <outbound-resourceadapter>
+         <connection-definition>
+            <managedconnectionfactory-class>org.hornetq.ra.HornetQRAManagedConnectionFactory</managedconnectionfactory-class>
+
+            <config-property>
+               <description>The default session type</description>
+               <config-property-name>SessionDefaultType</config-property-name>
+               <config-property-type>java.lang.String</config-property-type>
+               <config-property-value>javax.jms.Queue</config-property-value>
+            </config-property>
+            <config-property>
+               <description>Try to obtain a lock within specified number of seconds; less than or equal to 0 disable this functionality</description>
+               <config-property-name>UseTryLock</config-property-name>
+               <config-property-type>java.lang.Integer</config-property-type>
+               <config-property-value>0</config-property-value>
+            </config-property>
+
+            <connectionfactory-interface>org.hornetq.ra.HornetQRAConnectionFactory</connectionfactory-interface>
+            <connectionfactory-impl-class>org.hornetq.ra.HornetQRAConnectionFactoryImpl</connectionfactory-impl-class>
+            <connection-interface>javax.jms.Session</connection-interface>
+            <connection-impl-class>org.hornetq.ra.HornetQRASession</connection-impl-class>
+         </connection-definition>
+         <transaction-support>XATransaction</transaction-support>
+         <authentication-mechanism>
+            <authentication-mechanism-type>BasicPassword</authentication-mechanism-type>
+            <credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface>
+         </authentication-mechanism>
+         <reauthentication-support>false</reauthentication-support>
+      </outbound-resourceadapter>
+
+      <inbound-resourceadapter>
+         <messageadapter>
+            <messagelistener>
+               <messagelistener-type>javax.jms.MessageListener</messagelistener-type>
+               <activationspec>
+                  <activationspec-class>org.hornetq.ra.inflow.HornetQActivationSpec</activationspec-class>
+                  <required-config-property>
+                      <config-property-name>destination</config-property-name>
+                  </required-config-property>
+               </activationspec>
+            </messagelistener>
+         </messageadapter>
+      </inbound-resourceadapter>
+
+   </resourceadapter>
+</connector>

Added: trunk/src/config/jboss-as-4/non-clustered/hornetq-configuration.xml
===================================================================
--- trunk/src/config/jboss-as-4/non-clustered/hornetq-configuration.xml	                        (rev 0)
+++ trunk/src/config/jboss-as-4/non-clustered/hornetq-configuration.xml	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,93 @@
+<!--
+  ~ Copyright 2009 Red Hat, Inc.
+  ~  Red Hat 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.
+  -->
+
+<configuration xmlns="urn:hornetq"
+               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+               xsi:schemaLocation="urn:hornetq /schema/hornetq-configuration.xsd">
+
+   <log-delegate-factory-class-name>org.hornetq.integration.logging.Log4jLogDelegateFactory</log-delegate-factory-class-name>
+   
+   <bindings-directory>${jboss.server.data.dir}/hornetq/bindings</bindings-directory>
+
+   <journal-directory>${jboss.server.data.dir}/hornetq/journal</journal-directory>
+   
+   <journal-min-files>10</journal-min-files>
+   
+   <large-messages-directory>${jboss.server.data.dir}/hornetq/largemessages</large-messages-directory>
+
+   <paging-directory>${jboss.server.data.dir}/hornetq/paging</paging-directory>
+
+   <connectors>
+      <connector name="netty">
+         <factory-class>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</factory-class>
+         <param key="host"  value="${jboss.bind.address:localhost}"/>
+         <param key="port"  value="${hornetq.remoting.netty.port:5445}"/>
+      </connector>
+      
+      <connector name="netty-throughput">
+         <factory-class>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</factory-class>
+         <param key="host"  value="${jboss.bind.address:localhost}"/>
+         <param key="port"  value="${hornetq.remoting.netty.batch.port:5455}"/>
+         <param key="batch-delay" value="50"/>
+      </connector>
+
+      <connector name="in-vm">
+         <factory-class>org.hornetq.core.remoting.impl.invm.InVMConnectorFactory</factory-class>
+         <param key="server-id" value="${hornetq.server-id:0}"/> 
+      </connector>
+
+   </connectors>
+
+   <acceptors>   
+      <acceptor name="netty">
+         <factory-class>org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory</factory-class>
+         <param key="host"  value="${jboss.bind.address:localhost}"/>
+         <param key="port"  value="${hornetq.remoting.netty.port:5445}"/>
+      </acceptor>
+      
+      <acceptor name="netty-throughput">
+         <factory-class>org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory</factory-class>
+         <param key="host"  value="${jboss.bind.address:localhost}"/>
+         <param key="port"  value="${hornetq.remoting.netty.batch.port:5455}"/>
+         <param key="batch-delay" value="50"/>
+      </acceptor>
+
+      <acceptor name="in-vm">
+        <factory-class>org.hornetq.core.remoting.impl.invm.InVMAcceptorFactory</factory-class>
+        <param key="server-id" value="0"/>
+      </acceptor>
+
+   </acceptors>
+
+   <security-settings>
+      <security-setting match="#">
+         <permission type="createNonDurableQueue" roles="guest"/>
+         <permission type="deleteNonDurableQueue" roles="guest"/>
+         <permission type="consume" roles="guest"/>
+         <permission type="send" roles="guest"/>
+      </security-setting>
+   </security-settings>
+
+   <address-settings>
+      <!--default for catch all-->
+      <address-setting match="#">
+         <dead-letter-address>jms.queue.DLQ</dead-letter-address>
+         <expiry-address>jms.queue.ExpiryQueue</expiry-address>
+         <redelivery-delay>0</redelivery-delay>
+         <max-size-bytes>10485760</max-size-bytes>       
+         <message-counter-history-day-limit>10</message-counter-history-day-limit>
+         <address-full-policy>BLOCK</address-full-policy>
+      </address-setting>
+   </address-settings>
+
+</configuration>

Added: trunk/src/config/jboss-as-4/non-clustered/hornetq-jms.xml
===================================================================
--- trunk/src/config/jboss-as-4/non-clustered/hornetq-jms.xml	                        (rev 0)
+++ trunk/src/config/jboss-as-4/non-clustered/hornetq-jms.xml	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,43 @@
+<configuration xmlns="urn:hornetq"
+            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+            xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">
+
+   <connection-factory name="NettyConnectionFactory">
+      <connectors>
+         <connector-ref connector-name="netty"/>
+      </connectors>
+      <entries>
+         <entry name="/ConnectionFactory"/>
+         <entry name="/XAConnectionFactory"/>
+      </entries>
+   </connection-factory>
+   
+   <connection-factory name="NettyThroughputConnectionFactory">
+	   <connectors>
+         <connector-ref connector-name="netty-throughput"/>
+	   </connectors>
+		<entries>
+			<entry name="/ThroughputConnectionFactory"/>
+			<entry name="/XAThroughputConnectionFactory"/>
+		</entries>
+	</connection-factory>
+   
+   <connection-factory name="InVMConnectionFactory">
+      <connectors>
+         <connector-ref connector-name="in-vm"/>
+      </connectors>
+      <entries>
+         <entry name="java:/ConnectionFactory"/>
+         <entry name="java:/XAConnectionFactory"/>
+      </entries>
+   </connection-factory>
+   
+   <queue name="DLQ">
+      <entry name="/queue/DLQ"/>
+   </queue>
+   
+   <queue name="ExpiryQueue">
+      <entry name="/queue/ExpiryQueue"/>
+   </queue>
+
+</configuration>

Added: trunk/src/config/jboss-as-4/non-clustered/hornetq-roles.properties
===================================================================
--- trunk/src/config/jboss-as-4/non-clustered/hornetq-roles.properties	                        (rev 0)
+++ trunk/src/config/jboss-as-4/non-clustered/hornetq-roles.properties	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,17 @@
+#
+# Copyright 2009 Red Hat, Inc.
+#  Red Hat 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.
+#
+
+#
+# user=role1,role2,...
+#
+guest=guest

Added: trunk/src/config/jboss-as-4/non-clustered/hornetq-users.properties
===================================================================
--- trunk/src/config/jboss-as-4/non-clustered/hornetq-users.properties	                        (rev 0)
+++ trunk/src/config/jboss-as-4/non-clustered/hornetq-users.properties	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,4 @@
+#
+# user=password
+#
+guest=guest

Copied: trunk/src/config/jboss-as-4/non-clustered/jboss-service.xml (from rev 9165, trunk/src/config/service/jboss-service.xml)
===================================================================
--- trunk/src/config/jboss-as-4/non-clustered/jboss-service.xml	                        (rev 0)
+++ trunk/src/config/jboss-as-4/non-clustered/jboss-service.xml	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright 2009 Red Hat, Inc.
+  ~  Red Hat 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.
+  -->
+      
+<server>
+
+   <mbean code="org.hornetq.service.HornetQFileConfigurationService"
+      name="org.hornetq:service=HornetQFileConfigurationService">
+   </mbean>
+
+   <mbean code="org.hornetq.service.JBossASSecurityManagerService"
+      name="org.hornetq:service=JBossASSecurityManagerService">
+   </mbean>
+
+   <mbean code="org.hornetq.service.HornetQStarterService" 
+      name="org.hornetq:service=HornetQStarterService">
+      <!--lets let the JMS Server start us-->
+         <attribute name="Start">false</attribute>
+
+      <depends optional-attribute-name="SecurityManagerService"
+         proxy-type="attribute">org.hornetq:service=JBossASSecurityManagerService</depends>
+      <depends optional-attribute-name="ConfigurationService"
+         proxy-type="attribute">org.hornetq:service=HornetQFileConfigurationService</depends>
+   </mbean>
+
+   <mbean code="org.hornetq.service.HornetQJMSStarterService"
+      name="org.hornetq:service=HornetQJMSStarterService">
+      <depends optional-attribute-name="HornetQServer"
+         proxy-type="attribute">org.hornetq:service=HornetQStarterService</depends>
+   </mbean>
+   
+</server>

Copied: trunk/src/config/jboss-as-4/non-clustered/jms-ds.xml (from rev 9165, trunk/src/config/jboss-as/non-clustered/jboss-as-4/jms-ds.xml)
===================================================================
--- trunk/src/config/jboss-as-4/non-clustered/jms-ds.xml	                        (rev 0)
+++ trunk/src/config/jboss-as-4/non-clustered/jms-ds.xml	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,39 @@
+<!--
+  ~ Copyright 2009 Red Hat, Inc.
+  ~  Red Hat 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.
+  -->
+
+<connection-factories>
+   <!--
+    JMS Stuff
+   -->
+
+   <mbean code="org.jboss.jms.jndi.JMSProviderLoader" name="hornetq:service=JMSProviderLoader,name=JMSProvider">
+      <attribute name="ProviderName">DefaultJMSProvider</attribute>
+      <attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute>
+      <attribute name="FactoryRef">java:/XAConnectionFactory</attribute>
+      <attribute name="QueueFactoryRef">java:/XAConnectionFactory</attribute>
+      <attribute name="TopicFactoryRef">java:/XAConnectionFactory</attribute>
+   </mbean>
+   <!--
+    JMS XA Resource adapter, use this to get transacted JMS in beans
+   -->
+   <tx-connection-factory>
+      <jndi-name>JmsXA</jndi-name>
+      <xa-transaction/>
+      <rar-name>jms-ra.rar</rar-name>
+      <connection-definition>org.hornetq.ra.HornetQRAConnectionFactory</connection-definition>
+      <config-property name="SessionDefaultType" type="java.lang.String">javax.jms.Topic</config-property>
+      <config-property name="JmsProviderAdapterJNDI" type="java.lang.String">java:/DefaultJMSProvider</config-property>
+      <max-pool-size>20</max-pool-size>
+      <security-domain-and-application>JmsXARealm</security-domain-and-application>
+   </tx-connection-factory>
+</connection-factories>

Added: trunk/src/config/jboss-as-4/non-clustered/login-config.xml
===================================================================
--- trunk/src/config/jboss-as-4/non-clustered/login-config.xml	                        (rev 0)
+++ trunk/src/config/jboss-as-4/non-clustered/login-config.xml	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,159 @@
+<?xml version='1.0'?>
+
+<!--
+  ~ Copyright 2009 Red Hat, Inc.
+  ~  Red Hat 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.
+  -->
+
+<!-- The XML based JAAS login configuration read by the
+org.jboss.security.auth.login.XMLLoginConfig mbean. Add
+an application-policy element for each security domain.
+
+The outline of the application-policy is:
+<application-policy name="security-domain-name">
+  <authentication>
+    <login-module code="login.module1.class.name" flag="control_flag">
+      <module-option name = "option1-name">option1-value</module-option>
+      <module-option name = "option2-name">option2-value</module-option>
+      ...
+    </login-module>
+
+    <login-module code="login.module2.class.name" flag="control_flag">
+      ...
+    </login-module>
+    ...
+  </authentication>
+</application-policy>
+
+$Id: login-config.xml 76444 2008-07-29 23:50:53Z sguilhen at redhat.com $
+$Revision: 76444 $
+-->
+
+<policy>
+  <!-- Used by clients within the application server VM such as
+  mbeans and servlets that access EJBs.
+  -->
+  <application-policy name="client-login">
+    <authentication>
+      <login-module code="org.jboss.security.ClientLoginModule"
+        flag="required">
+         <!-- Any existing security context will be restored on logout -->
+         <module-option name="restore-login-identity">true</module-option>
+      </login-module>
+    </authentication>
+  </application-policy>
+
+  <!-- Security domains for testing new jca framework -->
+  <application-policy name="HsqlDbRealm">
+    <authentication>
+      <login-module code="org.jboss.resource.security.ConfiguredIdentityLoginModule"
+        flag="required">
+        <module-option name="principal">sa</module-option>
+        <module-option name="userName">sa</module-option>
+        <module-option name="password"></module-option>
+        <module-option name="managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=DefaultDS</module-option>
+      </login-module>
+    </authentication>
+  </application-policy>
+
+  <application-policy name="JmsXARealm">
+    <authentication>
+      <login-module code="org.jboss.resource.security.ConfiguredIdentityLoginModule"
+        flag="required">
+        <module-option name="principal">guest</module-option>
+        <module-option name="userName">guest</module-option>
+        <module-option name="password">guest</module-option>
+        <module-option name="managedConnectionFactoryName">jboss.jca:service=TxCM,name=JmsXA</module-option>
+      </login-module>
+    </authentication>
+  </application-policy>
+
+  <!-- A template configuration for hornetq. This
+    defaults to the UsersRolesLoginModule the same as other and should be
+    changed to a stronger authentication mechanism as required.
+  -->
+<application-policy name="hornetq">
+    <authentication>
+      <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
+        flag="required">
+	<module-option name = "unauthenticatedIdentity">guest</module-option>
+        <module-option name="usersProperties">props/hornetq-users.properties</module-option>
+        <module-option name="rolesProperties">props/hornetq-roles.properties</module-option>
+      </login-module>
+    </authentication>
+  </application-policy>
+
+  <!-- A template configuration for the jmx-console web application. This
+    defaults to the UsersRolesLoginModule the same as other and should be
+    changed to a stronger authentication mechanism as required.
+  -->
+  <application-policy name="jmx-console">
+    <authentication>
+      <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
+        flag="required">
+        <module-option name="usersProperties">props/jmx-console-users.properties</module-option>
+        <module-option name="rolesProperties">props/jmx-console-roles.properties</module-option>
+      </login-module>
+    </authentication>
+  </application-policy>
+
+  <!-- A template configuration for the web-console web application. This
+    defaults to the UsersRolesLoginModule the same as other and should be
+    changed to a stronger authentication mechanism as required.
+  -->
+  <application-policy name="web-console">
+    <authentication>
+      <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
+        flag="required">
+        <module-option name="usersProperties">web-console-users.properties</module-option>
+        <module-option name="rolesProperties">web-console-roles.properties</module-option>
+      </login-module>
+    </authentication>
+  </application-policy>
+
+  <!--
+    A template configuration for the JBossWS security domain.
+    This defaults to the UsersRolesLoginModule the same as other and should be
+    changed to a stronger authentication mechanism as required.
+  -->
+  <application-policy name="JBossWS">
+    <authentication>
+      <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
+        flag="required">
+        <module-option name="usersProperties">props/jbossws-users.properties</module-option>
+        <module-option name="rolesProperties">props/jbossws-roles.properties</module-option>
+        <module-option name="unauthenticatedIdentity">anonymous</module-option>
+      </login-module>
+    </authentication>
+  </application-policy>
+
+  <!-- The default login configuration used by any security domain that
+  does not have a application-policy entry with a matching name
+  -->
+  <application-policy name="other">
+    <!-- A simple server login module, which can be used when the number
+    of users is relatively small. It uses two properties files:
+    users.properties, which holds users (key) and their password (value).
+    roles.properties, which holds users (key) and a comma-separated list of
+    their roles (value).
+    The unauthenticatedIdentity property defines the name of the principal
+    that will be used when a null username and password are presented as is
+    the case for an unuathenticated web client or MDB. If you want to
+    allow such users to be authenticated add the property, e.g.,
+    unauthenticatedIdentity="nobody"
+    -->
+    <authentication>
+      <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
+        flag="required"/>
+    </authentication>
+  </application-policy>
+
+</policy>

Copied: trunk/src/config/jboss-as-4/non-clustered/ra.xml (from rev 9165, trunk/src/config/jboss-as/non-clustered/jboss-as-4/ra.xml)
===================================================================
--- trunk/src/config/jboss-as-4/non-clustered/ra.xml	                        (rev 0)
+++ trunk/src/config/jboss-as-4/non-clustered/ra.xml	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,293 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  ~ Copyright 2009 Red Hat, Inc.
+  ~  Red Hat 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.
+  -->
+
+<!-- $Id: ra.xml 76819 2008-08-08 11:04:20Z jesper.pedersen $ -->
+
+<connector xmlns="http://java.sun.com/xml/ns/j2ee"
+           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+           xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
+           http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"
+           version="1.5">
+
+   <description>HornetQ 2.0 Resource Adapter</description>
+   <display-name>HornetQ 2.0 Resource Adapter</display-name>
+
+   <vendor-name>Red Hat Middleware LLC</vendor-name>
+   <eis-type>JMS 1.1 Server</eis-type>
+   <resourceadapter-version>1.0</resourceadapter-version>
+
+   <license>
+      <description>
+Copyright 2009 Red Hat, Inc.
+ Red Hat 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.  
+      </description>
+      <license-required>true</license-required>
+   </license>
+
+   <resourceadapter>
+      <resourceadapter-class>org.hornetq.ra.HornetQResourceAdapter</resourceadapter-class>
+      <config-property>
+         <description>The transport type</description>
+         <config-property-name>ConnectorClassName</config-property-name>
+         <config-property-type>java.lang.String</config-property-type>
+         <config-property-value>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</config-property-value>
+      </config-property>
+      <config-property>
+         <description>The transport configuration. These values must be in the form of key=val;key=val;</description>
+         <config-property-name>ConnectionParameters</config-property-name>
+         <config-property-type>java.lang.String</config-property-type>
+         <config-property-value>host=localhost;port=5445</config-property-value>
+      </config-property>
+      <!--
+      <config-property>
+        <description>The method to use for locatingthe transactionmanager</description>
+        <config-property-name>TransactionManagerLocatorMethod</config-property-name>
+        <config-property-type>java.lang.String</config-property-type>
+        <config-property-value>getTm</config-property-value>
+      </config-property>
+      <config-property>
+        <description>Use A local Transaction instead of XA?</description>
+        <config-property-name>UseLocalTx</config-property-name>
+        <config-property-type>java.lang.Boolean</config-property-type>
+        <config-property-value>false</config-property-value>
+      </config-property>
+      <config-property>
+        <description>The user name used to login to the JMS server</description>
+        <config-property-name>UserName</config-property-name>
+        <config-property-type>java.lang.String</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The password used to login to the JMS server</description>
+        <config-property-name>Password</config-property-name>
+        <config-property-type>java.lang.String</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+         <description>The Backup transport type</description>
+         <config-property-name>BackUpTransportType</config-property-name>
+         <config-property-type>java.lang.String</config-property-type>
+         <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+         <description>The Backup transport configuration. These values must be in the form of key=val;key=val;</description>
+         <config-property-name>TransportConfiguration</config-property-name>
+         <config-property-type>java.lang.String</config-property-type>
+         <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The discovery group address</description>
+        <config-property-name>DiscoveryGroupAddress</config-property-name>
+        <config-property-type>java.lang.String</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The discovery group port</description>
+        <config-property-name>DiscoveryGroupPort</config-property-name>
+        <config-property-type>java.lang.Integer</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The discovery refresh timeout</description>
+        <config-property-name>DiscoveryRefreshTimeout</config-property-name>
+        <config-property-type>java.lang.Long</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The discovery initial wait timeout</description>
+        <config-property-name>DiscoveryInitialWaitTimeout</config-property-name>
+        <config-property-type>java.lang.Long</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The load balancing policy class name</description>
+        <config-property-name>LoadBalancingPolicyClassName</config-property-name>
+        <config-property-type>java.lang.String</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The client failure check period</description>
+        <config-property-name>ClientFailureCheckPeriod</config-property-name>
+        <config-property-type>java.lang.Long</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The connection TTL</description>
+        <config-property-name>ConnectionTTL</config-property-name>
+        <config-property-type>java.lang.Long</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The call timeout</description>
+        <config-property-name>CallTimeout</config-property-name>
+        <config-property-type>java.lang.Long</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The dups ok batch size</description>
+        <config-property-name>DupsOKBatchSize</config-property-name>
+        <config-property-type>java.lang.Integer</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The transaction batch size</description>
+        <config-property-name>TransactionBatchSize</config-property-name>
+        <config-property-type>java.lang.Integer</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The consumer window size</description>
+        <config-property-name>ConsumerWindowSize</config-property-name>
+        <config-property-type>java.lang.Integer</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The consumer max rate</description>
+        <config-property-name>ConsumerMaxRate</config-property-name>
+        <config-property-type>java.lang.Integer</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The producer window size</description>
+        <config-property-name>ProducerWindowSize</config-property-name>
+        <config-property-type>java.lang.Integer</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The producer max rate</description>
+        <config-property-name>ProducerMaxRate</config-property-name>
+        <config-property-type>java.lang.Integer</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The min large message size</description>
+        <config-property-name>MinLargeMessageSize</config-property-name>
+        <config-property-type>java.lang.Integer</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The block on acknowledge</description>
+        <config-property-name>BlockOnAcknowledge</config-property-name>
+        <config-property-type>java.lang.Boolean</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The block on non-durable send</description>
+        <config-property-name>BlockOnNonDurableSend</config-property-name>
+        <config-property-type>java.lang.Boolean</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The block on durable send</description>
+        <config-property-name>BlockOnDurableSend</config-property-name>
+        <config-property-type>java.lang.Boolean</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The auto group</description>
+        <config-property-name>AutoGroup</config-property-name>
+        <config-property-type>java.lang.Boolean</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The max connections</description>        
+        <config-property-type>java.lang.Integer</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The pre acknowledge</description>
+        <config-property-name>PreAcknowledge</config-property-name>
+        <config-property-type>java.lang.Boolean</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The retry interval</description>
+        <config-property-name>RetryInterval</config-property-name>
+        <config-property-type>java.lang.Long</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The retry interval multiplier</description>
+        <config-property-name>RetryIntervalMultiplier</config-property-name>
+        <config-property-type>java.lang.Double</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>Should clean server shutdown trigger failover?</description>
+        <config-property-name>FailoverOnServerShutdown</config-property-name>
+        <config-property-type>java.lang.Boolean</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>
+      <config-property>
+        <description>The client id</description>
+        <config-property-name>ClientID</config-property-name>
+        <config-property-type>java.lang.String</config-property-type>
+        <config-property-value></config-property-value>
+      </config-property>-->
+
+      <outbound-resourceadapter>
+         <connection-definition>
+            <managedconnectionfactory-class>org.hornetq.ra.HornetQRAManagedConnectionFactory</managedconnectionfactory-class>
+
+            <config-property>
+               <description>The default session type</description>
+               <config-property-name>SessionDefaultType</config-property-name>
+               <config-property-type>java.lang.String</config-property-type>
+               <config-property-value>javax.jms.Queue</config-property-value>
+            </config-property>
+            <config-property>
+               <description>Try to obtain a lock within specified number of seconds; less than or equal to 0 disable this functionality</description>
+               <config-property-name>UseTryLock</config-property-name>
+               <config-property-type>java.lang.Integer</config-property-type>
+               <config-property-value>0</config-property-value>
+            </config-property>
+
+            <connectionfactory-interface>org.hornetq.ra.HornetQRAConnectionFactory</connectionfactory-interface>
+            <connectionfactory-impl-class>org.hornetq.ra.HornetQRAConnectionFactoryImpl</connectionfactory-impl-class>
+            <connection-interface>javax.jms.Session</connection-interface>
+            <connection-impl-class>org.hornetq.ra.HornetQRASession</connection-impl-class>
+         </connection-definition>
+         <transaction-support>XATransaction</transaction-support>
+         <authentication-mechanism>
+            <authentication-mechanism-type>BasicPassword</authentication-mechanism-type>
+            <credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface>
+         </authentication-mechanism>
+         <reauthentication-support>false</reauthentication-support>
+      </outbound-resourceadapter>
+
+      <inbound-resourceadapter>
+         <messageadapter>
+            <messagelistener>
+               <messagelistener-type>javax.jms.MessageListener</messagelistener-type>
+               <activationspec>
+                  <activationspec-class>org.hornetq.ra.inflow.HornetQActivationSpec</activationspec-class>
+                  <required-config-property>
+                      <config-property-name>destination</config-property-name>
+                  </required-config-property>
+               </activationspec>
+            </messagelistener>
+         </messageadapter>
+      </inbound-resourceadapter>
+
+   </resourceadapter>
+</connector>

Copied: trunk/src/config/jboss-as-5/build.bat (from rev 9165, trunk/src/config/jboss-as/build.bat)
===================================================================
--- trunk/src/config/jboss-as-5/build.bat	                        (rev 0)
+++ trunk/src/config/jboss-as-5/build.bat	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,13 @@
+ at echo off
+
+set "OVERRIDE_ANT_HOME=..\..\tools\ant"
+
+if exist "..\..\src\bin\build.bat" (
+   rem running from TRUNK
+   call ..\..\src\bin\build.bat %*
+) else (
+   rem running from the distro
+   call ..\..\bin\build.bat %*
+)
+
+set "OVERRIDE_ANT_HOME="

Copied: trunk/src/config/jboss-as-5/build.sh (from rev 9165, trunk/src/config/jboss-as/build.sh)
===================================================================
--- trunk/src/config/jboss-as-5/build.sh	                        (rev 0)
+++ trunk/src/config/jboss-as-5/build.sh	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+OVERRIDE_ANT_HOME=../../tools/ant
+export OVERRIDE_ANT_HOME
+
+if [ -f "../../src/bin/build.sh" ]; then
+   # running from TRUNK
+   ../../src/bin/build.sh "$@"
+else
+   # running from the distro
+   ../../bin/build.sh "$@"
+fi
+
+
+


Property changes on: trunk/src/config/jboss-as-5/build.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/src/config/jboss-as-5/build.xml
===================================================================
--- trunk/src/config/jboss-as-5/build.xml	                        (rev 0)
+++ trunk/src/config/jboss-as-5/build.xml	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2009 Red Hat, Inc.
+ Red Hat 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.
+  -->
+<project default="default" name="HornetQ integration with JBoss AS 5">
+   <property environment="ENV"/>
+   <property name="jboss.home" value="${ENV.JBOSS_HOME}"/>
+   <property name="src.bin.dir" value="../../bin"/>
+   <property name="dest.bin.dir" value="${jboss.home}/bin"/>
+   <property name="lib.dir" value="../../lib"/>
+
+   <target name="default" description="Create JBoss AS 5 profiles to use HornetQ">
+    <antcall target="create-profile">
+       <!-- created from JBoss AS 5 default profile -->
+       <param name="jbossas.profile.source" value="default"/>
+       <!-- based on HornetQ jbossas/non-clustered config -->
+       <param name="hornetq.config.dir" value="./non-clustered"/>
+       <!-- new profile is named default-with-hornetq -->
+       <param name="hornetq.profile.target" value="default-with-hornetq"/>
+    </antcall>
+    <antcall target="create-profile">
+       <!-- created from JBoss AS 5 all profile -->
+       <param name="jbossas.profile.source" value="all"/>
+       <!-- based on HornetQ jbossas/clustered config -->
+       <param name="hornetq.config.dir" value="clustered"/>
+       <!-- new profile is named all-with-hornetq -->
+       <param name="hornetq.profile.target" value="all-with-hornetq"/>
+    </antcall>
+   <mkdir dir="${dest.bin.dir}/META-INF/lib/linux2/x86"/>
+   <mkdir dir="${dest.bin.dir}/META-INF/lib/linux2/x64"/>
+   <copy todir="${dest.bin.dir}/META-INF/lib/linux2/x86" file="${src.bin.dir}/libHornetQAIO32.so"/>
+   <copy todir="${dest.bin.dir}/META-INF/lib/linux2/x64" file="${src.bin.dir}/libHornetQAIO64.so"/>
+   </target>
+
+   <target name="create-profile">
+      <antcall target="validate-jboss"/>
+      <property name="src.dir" value="${jboss.home}/server/${jbossas.profile.source}"/>
+      <property name="dest.dir" value="${jboss.home}/server/${hornetq.profile.target}"/>
+
+      <mkdir dir="${dest.dir}"/>
+      <copy todir="${dest.dir}">
+         <fileset dir="${src.dir}">
+            <exclude name="**/messaging/**"/>
+            <exclude name="conf/login-config.xml"/>
+             <!--<exclude name="**/jms-ra.rar"/>-->
+         </fileset>
+      </copy>
+      <copy todir="${dest.dir}/conf">
+         <fileset dir="${hornetq.config.dir}">
+            <include name="login-config.xml"/>
+         </fileset>
+      </copy>
+      <copy todir="${dest.dir}/conf/props">
+         <fileset dir="${hornetq.config.dir}">
+            <include name="hornetq-users.properties"/>
+            <include name="hornetq-roles.properties"/>
+         </fileset>
+      </copy>
+      <copy todir="${dest.dir}/lib">
+         <fileset dir="${lib.dir}">
+            <include name="hornetq-*.jar"/>
+            <include name="netty*.jar"/>
+         </fileset>
+      </copy>
+      <property name="hornetq.sar.dir" value="${dest.dir}/deploy/hornetq.sar"/>
+      <mkdir dir="${hornetq.sar.dir}"/>
+      <copy todir="${hornetq.sar.dir}">
+        <fileset dir="${hornetq.config.dir}" includes="*" excludes="**/jboss-as-4/**"/>
+      </copy>
+   	  <unzip src="${lib.dir}/hornetq-ra.rar" dest="${dest.dir}/deploy/hornetq-ra.rar"/>
+   </target>
+
+   <!-- The JBOSS_HOME environment variable and the directory must exist, we also check we are running
+        in JBoss 5.1 or later -->
+   <target name="validate-jboss">
+      <fail unless="ENV.JBOSS_HOME" message="JBOSS_HOME environment variable not set! Set it and try again."/>
+      <available property="source-profile" type="dir" file="${jboss.home}/server/${jbossas.profile.source}"/>
+      <fail unless="source-profile" message="${jboss.home}/server/${jbossas.profile.source} profile not found!"/>
+      <available property="target-profile" type="dir" file="${jboss.home}/server/${hornetq.profile.target}"/>
+      <fail if="target-profile"
+            message="'${hornetq.profile.target}' profile already exists! Delete it manually and try again."/>
+   </target>
+
+</project>

Copied: trunk/src/config/jboss-as-5/clustered/hornetq-configuration.xml (from rev 9165, trunk/src/config/jboss-as/clustered/hornetq-configuration.xml)
===================================================================
--- trunk/src/config/jboss-as-5/clustered/hornetq-configuration.xml	                        (rev 0)
+++ trunk/src/config/jboss-as-5/clustered/hornetq-configuration.xml	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,119 @@
+<!--
+  ~ Copyright 2009 Red Hat, Inc.
+  ~  Red Hat 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.
+  -->
+
+<configuration xmlns="urn:hornetq"
+               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+               xsi:schemaLocation="urn:hornetq /schema/hornetq-configuration.xsd">
+
+   <clustered>true</clustered>
+   
+   <log-delegate-factory-class-name>org.hornetq.integration.logging.Log4jLogDelegateFactory</log-delegate-factory-class-name>
+
+   <bindings-directory>${jboss.server.data.dir}/hornetq/bindings</bindings-directory>
+
+   <journal-directory>${jboss.server.data.dir}/hornetq/journal</journal-directory>
+   
+   <journal-min-files>10</journal-min-files>
+   
+   <large-messages-directory>${jboss.server.data.dir}/hornetq/largemessages</large-messages-directory>
+
+   <paging-directory>${jboss.server.data.dir}/hornetq/paging</paging-directory>
+
+   <connectors>
+      <connector name="netty">
+         <factory-class>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</factory-class>
+         <param key="host"  value="${jboss.bind.address:localhost}"/>
+         <param key="port"  value="${hornetq.remoting.netty.port:5445}"/>
+      </connector>
+      
+      <connector name="netty-throughput">
+         <factory-class>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</factory-class>
+         <param key="host"  value="${jboss.bind.address:localhost}"/>
+         <param key="port"  value="${hornetq.remoting.netty.batch.port:5455}"/>
+         <param key="batch-delay" value="50"/>
+      </connector>
+
+      <connector name="in-vm">
+         <factory-class>org.hornetq.core.remoting.impl.invm.InVMConnectorFactory</factory-class>
+         <param key="server-id" value="${hornetq.server-id:0}"/>
+      </connector>
+
+   </connectors>
+
+   <acceptors>
+      <acceptor name="netty">
+         <factory-class>org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory</factory-class>
+         <param key="host"  value="${jboss.bind.address:localhost}"/>
+         <param key="port"  value="${hornetq.remoting.netty.port:5445}"/>
+      </acceptor>
+      
+      <acceptor name="netty-throughput">
+         <factory-class>org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory</factory-class>
+         <param key="host"  value="${jboss.bind.address:localhost}"/>
+         <param key="port"  value="${hornetq.remoting.netty.batch.port:5455}"/>
+         <param key="batch-delay" value="50"/>
+      </acceptor>
+
+      <acceptor name="in-vm">
+        <factory-class>org.hornetq.core.remoting.impl.invm.InVMAcceptorFactory</factory-class>
+        <param key="server-id" value="0"/>
+      </acceptor>
+
+   </acceptors>
+
+   <broadcast-groups>
+      <broadcast-group name="bg-group1">
+         <group-address>231.7.7.7</group-address>
+         <group-port>9876</group-port>
+         <broadcast-period>5000</broadcast-period>
+         <connector-ref connector-name="netty"/>
+      </broadcast-group>
+   </broadcast-groups>
+
+   <discovery-groups>
+      <discovery-group name="dg-group1">
+         <group-address>231.7.7.7</group-address>
+         <group-port>9876</group-port>
+         <refresh-timeout>10000</refresh-timeout>
+      </discovery-group>
+   </discovery-groups>
+   
+   <cluster-connections>
+      <cluster-connection name="my-cluster">
+         <address>jms</address>	 
+	      <discovery-group-ref discovery-group-name="dg-group1"/>
+      </cluster-connection>
+   </cluster-connections>
+   
+   <security-settings>
+      <security-setting match="#">
+         <permission type="createNonDurableQueue" roles="guest"/>
+         <permission type="deleteNonDurableQueue" roles="guest"/>
+         <permission type="consume" roles="guest"/>
+         <permission type="send" roles="guest"/>
+      </security-setting>
+   </security-settings>
+
+   <address-settings>
+      <!--default for catch all-->
+      <address-setting match="#">
+         <dead-letter-address>jms.queue.DLQ</dead-letter-address>
+         <expiry-address>jms.queue.ExpiryQueue</expiry-address>
+         <redelivery-delay>0</redelivery-delay>
+         <max-size-bytes>10485760</max-size-bytes>       
+         <message-counter-history-day-limit>10</message-counter-history-day-limit>
+         <address-full-policy>BLOCK</address-full-policy>
+      </address-setting>
+   </address-settings>
+
+</configuration>

Copied: trunk/src/config/jboss-as-5/clustered/hornetq-jboss-beans.xml (from rev 9165, trunk/src/config/jboss-as/clustered/hornetq-jboss-beans.xml)
===================================================================
--- trunk/src/config/jboss-as-5/clustered/hornetq-jboss-beans.xml	                        (rev 0)
+++ trunk/src/config/jboss-as-5/clustered/hornetq-jboss-beans.xml	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+   <!-- MBean server -->
+   <bean name="MBeanServer" class="javax.management.MBeanServer">
+      <constructor factoryClass="org.jboss.mx.util.MBeanServerLocator"
+                   factoryMethod="locateJBoss"/>
+   </bean>
+
+   <!-- The core configuration -->
+   <bean name="Configuration" class="org.hornetq.core.config.impl.FileConfiguration"/>   
+
+	<!-- The security manager -->
+   <bean name="HornetQSecurityManager" class="org.hornetq.integration.jboss.security.JBossASSecurityManager">
+      <depends>JBossSecurityJNDIContextEstablishment</depends>
+      <start ignored="true"/>
+      <stop ignored="true"/>
+   </bean>
+
+	<!-- The core server -->
+   <bean name="HornetQServer" class="org.hornetq.core.server.impl.HornetQServerImpl">
+      <constructor>
+         <parameter>
+            <inject bean="Configuration"/>
+         </parameter>
+         <parameter>
+            <inject bean="MBeanServer"/>
+         </parameter>
+         <parameter>
+            <inject bean="HornetQSecurityManager"/>
+         </parameter>        
+      </constructor>
+      <start ignored="true"/>
+      <stop ignored="true"/>   
+   </bean>
+   
+   <!-- The JMS server -->
+   <bean name="JMSServerManager" class="org.hornetq.jms.server.impl.JMSServerManagerImpl">
+      <constructor>         
+         <parameter>
+            <inject bean="HornetQServer"/>
+         </parameter>         
+      </constructor>
+   </bean>
+
+</deployment>

Copied: trunk/src/config/jboss-as-5/clustered/hornetq-jms.xml (from rev 9165, trunk/src/config/jboss-as/clustered/hornetq-jms.xml)
===================================================================
--- trunk/src/config/jboss-as-5/clustered/hornetq-jms.xml	                        (rev 0)
+++ trunk/src/config/jboss-as-5/clustered/hornetq-jms.xml	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,43 @@
+<configuration xmlns="urn:hornetq"
+            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+            xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">
+
+   <connection-factory name="NettyConnectionFactory">
+      <connectors>
+         <connector-ref connector-name="netty"/>
+      </connectors>
+      <entries>
+         <entry name="/ConnectionFactory"/>
+         <entry name="/XAConnectionFactory"/>
+      </entries>
+   </connection-factory>
+   
+   <connection-factory name="NettyThroughputConnectionFactory">
+      <connectors>
+         <connector-ref connector-name="netty-throughput"/>
+      </connectors>
+      <entries>
+         <entry name="/ThroughputConnectionFactory"/>
+         <entry name="/XAThroughputConnectionFactory"/>
+      </entries>
+   </connection-factory>
+   
+   <connection-factory name="InVMConnectionFactory">
+      <connectors>
+         <connector-ref connector-name="in-vm"/>
+      </connectors>
+      <entries>
+         <entry name="java:/ConnectionFactory"/>
+         <entry name="java:/XAConnectionFactory"/>
+      </entries>
+   </connection-factory>
+
+   <queue name="DLQ">
+      <entry name="/queue/DLQ"/>
+   </queue>
+   
+   <queue name="ExpiryQueue">
+      <entry name="/queue/ExpiryQueue"/>
+   </queue>
+
+</configuration>

Copied: trunk/src/config/jboss-as-5/clustered/hornetq-roles.properties (from rev 9165, trunk/src/config/jboss-as/clustered/hornetq-roles.properties)
===================================================================
--- trunk/src/config/jboss-as-5/clustered/hornetq-roles.properties	                        (rev 0)
+++ trunk/src/config/jboss-as-5/clustered/hornetq-roles.properties	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,4 @@
+#
+# user=role1,role2,...
+#
+guest=guest

Copied: trunk/src/config/jboss-as-5/clustered/hornetq-users.properties (from rev 9165, trunk/src/config/jboss-as/clustered/hornetq-users.properties)
===================================================================
--- trunk/src/config/jboss-as-5/clustered/hornetq-users.properties	                        (rev 0)
+++ trunk/src/config/jboss-as-5/clustered/hornetq-users.properties	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,4 @@
+#
+# user=password
+#
+guest=guest

Copied: trunk/src/config/jboss-as-5/clustered/jms-ds.xml (from rev 9165, trunk/src/config/jboss-as/clustered/jms-ds.xml)
===================================================================
--- trunk/src/config/jboss-as-5/clustered/jms-ds.xml	                        (rev 0)
+++ trunk/src/config/jboss-as-5/clustered/jms-ds.xml	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,26 @@
+<connection-factories>
+   <!--
+    JMS Stuff
+   -->
+
+   <mbean code="org.jboss.jms.jndi.JMSProviderLoader" name="hornetq:service=JMSProviderLoader,name=JMSProvider">
+      <attribute name="ProviderName">DefaultJMSProvider</attribute>
+      <attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute>
+      <attribute name="FactoryRef">java:/XAConnectionFactory</attribute>
+      <attribute name="QueueFactoryRef">java:/XAConnectionFactory</attribute>
+      <attribute name="TopicFactoryRef">java:/XAConnectionFactory</attribute>
+   </mbean>
+   <!--
+    JMS XA Resource adapter, use this to get transacted JMS in beans
+   -->
+   <tx-connection-factory>
+      <jndi-name>JmsXA</jndi-name>
+      <xa-transaction/>
+      <rar-name>hornetq-ra.rar</rar-name>
+      <connection-definition>org.hornetq.ra.HornetQRAConnectionFactory</connection-definition>
+      <config-property name="SessionDefaultType" type="java.lang.String">javax.jms.Topic</config-property>
+      <config-property name="JmsProviderAdapterJNDI" type="java.lang.String">java:/DefaultJMSProvider</config-property>
+      <max-pool-size>20</max-pool-size>
+      <security-domain-and-application>JmsXARealm</security-domain-and-application>
+   </tx-connection-factory>
+</connection-factories>

Copied: trunk/src/config/jboss-as-5/clustered/login-config.xml (from rev 9165, trunk/src/config/jboss-as/clustered/login-config.xml)
===================================================================
--- trunk/src/config/jboss-as-5/clustered/login-config.xml	                        (rev 0)
+++ trunk/src/config/jboss-as-5/clustered/login-config.xml	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,146 @@
+<?xml version='1.0'?>
+
+<!-- The XML based JAAS login configuration read by the
+org.jboss.security.auth.login.XMLLoginConfig mbean. Add
+an application-policy element for each security domain.
+
+The outline of the application-policy is:
+<application-policy name="security-domain-name">
+  <authentication>
+    <login-module code="login.module1.class.name" flag="control_flag">
+      <module-option name = "option1-name">option1-value</module-option>
+      <module-option name = "option2-name">option2-value</module-option>
+      ...
+    </login-module>
+
+    <login-module code="login.module2.class.name" flag="control_flag">
+      ...
+    </login-module>
+    ...
+  </authentication>
+</application-policy>
+
+$Id: login-config.xml 76444 2008-07-29 23:50:53Z sguilhen at redhat.com $
+$Revision: 76444 $
+-->
+
+<policy>
+  <!-- Used by clients within the application server VM such as
+  mbeans and servlets that access EJBs.
+  -->
+  <application-policy name="client-login">
+    <authentication>
+      <login-module code="org.jboss.security.ClientLoginModule"
+        flag="required">
+         <!-- Any existing security context will be restored on logout -->
+         <module-option name="restore-login-identity">true</module-option>
+      </login-module>
+    </authentication>
+  </application-policy>
+
+  <!-- Security domains for testing new jca framework -->
+  <application-policy name="HsqlDbRealm">
+    <authentication>
+      <login-module code="org.jboss.resource.security.ConfiguredIdentityLoginModule"
+        flag="required">
+        <module-option name="principal">sa</module-option>
+        <module-option name="userName">sa</module-option>
+        <module-option name="password"></module-option>
+        <module-option name="managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=DefaultDS</module-option>
+      </login-module>
+    </authentication>
+  </application-policy>
+
+  <application-policy name="JmsXARealm">
+    <authentication>
+      <login-module code="org.jboss.resource.security.ConfiguredIdentityLoginModule"
+        flag="required">
+        <module-option name="principal">guest</module-option>
+        <module-option name="userName">guest</module-option>
+        <module-option name="password">guest</module-option>
+        <module-option name="managedConnectionFactoryName">jboss.jca:service=TxCM,name=JmsXA</module-option>
+      </login-module>
+    </authentication>
+  </application-policy>
+
+  <!-- A template configuration for HornetQ. This
+    defaults to the UsersRolesLoginModule the same as other and should be
+    changed to a stronger authentication mechanism as required.
+  -->
+<application-policy name="hornetq">
+    <authentication>
+      <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
+        flag="required">
+	<module-option name = "unauthenticatedIdentity">guest</module-option>
+        <module-option name="usersProperties">props/hornetq-users.properties</module-option>
+        <module-option name="rolesProperties">props/hornetq-roles.properties</module-option>
+      </login-module>
+    </authentication>
+  </application-policy>
+
+  <!-- A template configuration for the jmx-console web application. This
+    defaults to the UsersRolesLoginModule the same as other and should be
+    changed to a stronger authentication mechanism as required.
+  -->
+  <application-policy name="jmx-console">
+    <authentication>
+      <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
+        flag="required">
+        <module-option name="usersProperties">props/jmx-console-users.properties</module-option>
+        <module-option name="rolesProperties">props/jmx-console-roles.properties</module-option>
+      </login-module>
+    </authentication>
+  </application-policy>
+
+  <!-- A template configuration for the web-console web application. This
+    defaults to the UsersRolesLoginModule the same as other and should be
+    changed to a stronger authentication mechanism as required.
+  -->
+  <application-policy name="web-console">
+    <authentication>
+      <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
+        flag="required">
+        <module-option name="usersProperties">web-console-users.properties</module-option>
+        <module-option name="rolesProperties">web-console-roles.properties</module-option>
+      </login-module>
+    </authentication>
+  </application-policy>
+
+  <!--
+    A template configuration for the JBossWS security domain.
+    This defaults to the UsersRolesLoginModule the same as other and should be
+    changed to a stronger authentication mechanism as required.
+  -->
+  <application-policy name="JBossWS">
+    <authentication>
+      <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
+        flag="required">
+        <module-option name="usersProperties">props/jbossws-users.properties</module-option>
+        <module-option name="rolesProperties">props/jbossws-roles.properties</module-option>
+        <module-option name="unauthenticatedIdentity">anonymous</module-option>
+      </login-module>
+    </authentication>
+  </application-policy>
+
+  <!-- The default login configuration used by any security domain that
+  does not have a application-policy entry with a matching name
+  -->
+  <application-policy name="other">
+    <!-- A simple server login module, which can be used when the number
+    of users is relatively small. It uses two properties files:
+    users.properties, which holds users (key) and their password (value).
+    roles.properties, which holds users (key) and a comma-separated list of
+    their roles (value).
+    The unauthenticatedIdentity property defines the name of the principal
+    that will be used when a null username and password are presented as is
+    the case for an unuathenticated web client or MDB. If you want to
+    allow such users to be authenticated add the property, e.g.,
+    unauthenticatedIdentity="nobody"
+    -->
+    <authentication>
+      <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
+        flag="required"/>
+    </authentication>
+  </application-policy>
+
+</policy>

Copied: trunk/src/config/jboss-as-5/non-clustered/hornetq-configuration.xml (from rev 9165, trunk/src/config/jboss-as/non-clustered/hornetq-configuration.xml)
===================================================================
--- trunk/src/config/jboss-as-5/non-clustered/hornetq-configuration.xml	                        (rev 0)
+++ trunk/src/config/jboss-as-5/non-clustered/hornetq-configuration.xml	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,93 @@
+<!--
+  ~ Copyright 2009 Red Hat, Inc.
+  ~  Red Hat 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.
+  -->
+
+<configuration xmlns="urn:hornetq"
+               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+               xsi:schemaLocation="urn:hornetq /schema/hornetq-configuration.xsd">
+
+   <log-delegate-factory-class-name>org.hornetq.integration.logging.Log4jLogDelegateFactory</log-delegate-factory-class-name>
+   
+   <bindings-directory>${jboss.server.data.dir}/hornetq/bindings</bindings-directory>
+
+   <journal-directory>${jboss.server.data.dir}/hornetq/journal</journal-directory>
+   
+   <journal-min-files>10</journal-min-files>
+   
+   <large-messages-directory>${jboss.server.data.dir}/hornetq/largemessages</large-messages-directory>
+
+   <paging-directory>${jboss.server.data.dir}/hornetq/paging</paging-directory>
+
+   <connectors>
+      <connector name="netty">
+         <factory-class>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</factory-class>
+         <param key="host"  value="${jboss.bind.address:localhost}"/>
+         <param key="port"  value="${hornetq.remoting.netty.port:5445}"/>
+      </connector>
+      
+      <connector name="netty-throughput">
+         <factory-class>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</factory-class>
+         <param key="host"  value="${jboss.bind.address:localhost}"/>
+         <param key="port"  value="${hornetq.remoting.netty.batch.port:5455}"/>
+         <param key="batch-delay" value="50"/>
+      </connector>
+
+      <connector name="in-vm">
+         <factory-class>org.hornetq.core.remoting.impl.invm.InVMConnectorFactory</factory-class>
+         <param key="server-id" value="${hornetq.server-id:0}"/> 
+      </connector>
+
+   </connectors>
+
+   <acceptors>   
+      <acceptor name="netty">
+         <factory-class>org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory</factory-class>
+         <param key="host"  value="${jboss.bind.address:localhost}"/>
+         <param key="port"  value="${hornetq.remoting.netty.port:5445}"/>
+      </acceptor>
+      
+      <acceptor name="netty-throughput">
+         <factory-class>org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory</factory-class>
+         <param key="host"  value="${jboss.bind.address:localhost}"/>
+         <param key="port"  value="${hornetq.remoting.netty.batch.port:5455}"/>
+         <param key="batch-delay" value="50"/>
+      </acceptor>
+
+      <acceptor name="in-vm">
+        <factory-class>org.hornetq.core.remoting.impl.invm.InVMAcceptorFactory</factory-class>
+        <param key="server-id" value="0"/>
+      </acceptor>
+
+   </acceptors>
+
+   <security-settings>
+      <security-setting match="#">
+         <permission type="createNonDurableQueue" roles="guest"/>
+         <permission type="deleteNonDurableQueue" roles="guest"/>
+         <permission type="consume" roles="guest"/>
+         <permission type="send" roles="guest"/>
+      </security-setting>
+   </security-settings>
+
+   <address-settings>
+      <!--default for catch all-->
+      <address-setting match="#">
+         <dead-letter-address>jms.queue.DLQ</dead-letter-address>
+         <expiry-address>jms.queue.ExpiryQueue</expiry-address>
+         <redelivery-delay>0</redelivery-delay>
+         <max-size-bytes>10485760</max-size-bytes>       
+         <message-counter-history-day-limit>10</message-counter-history-day-limit>
+         <address-full-policy>BLOCK</address-full-policy>
+      </address-setting>
+   </address-settings>
+
+</configuration>

Copied: trunk/src/config/jboss-as-5/non-clustered/hornetq-jboss-beans.xml (from rev 9165, trunk/src/config/jboss-as/non-clustered/hornetq-jboss-beans.xml)
===================================================================
--- trunk/src/config/jboss-as-5/non-clustered/hornetq-jboss-beans.xml	                        (rev 0)
+++ trunk/src/config/jboss-as-5/non-clustered/hornetq-jboss-beans.xml	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+   <!-- MBean server -->
+   <bean name="MBeanServer" class="javax.management.MBeanServer">
+      <constructor factoryClass="org.jboss.mx.util.MBeanServerLocator"
+                   factoryMethod="locateJBoss"/>
+   </bean>
+
+   <!-- The core configuration -->
+   <bean name="Configuration" class="org.hornetq.core.config.impl.FileConfiguration"/>   
+
+	<!-- The security manager -->
+   <bean name="HornetQSecurityManager" class="org.hornetq.integration.jboss.security.JBossASSecurityManager">
+      <depends>JBossSecurityJNDIContextEstablishment</depends>
+      <start ignored="true"/>
+      <stop ignored="true"/>
+   </bean>
+
+	<!-- The core server -->
+   <bean name="HornetQServer" class="org.hornetq.core.server.impl.HornetQServerImpl">
+      <constructor>
+         <parameter>
+            <inject bean="Configuration"/>
+         </parameter>
+         <parameter>
+            <inject bean="MBeanServer"/>
+         </parameter>
+         <parameter>
+            <inject bean="HornetQSecurityManager"/>
+         </parameter>        
+      </constructor>
+      <start ignored="true"/>
+      <stop ignored="true"/>          
+   </bean>
+   
+   <!-- The JMS server -->
+   <bean name="JMSServerManager" class="org.hornetq.jms.server.impl.JMSServerManagerImpl">
+      <constructor>         
+         <parameter>
+            <inject bean="HornetQServer"/>
+         </parameter>         
+      </constructor>
+   </bean>
+
+</deployment>

Copied: trunk/src/config/jboss-as-5/non-clustered/hornetq-jms.xml (from rev 9165, trunk/src/config/jboss-as/non-clustered/hornetq-jms.xml)
===================================================================
--- trunk/src/config/jboss-as-5/non-clustered/hornetq-jms.xml	                        (rev 0)
+++ trunk/src/config/jboss-as-5/non-clustered/hornetq-jms.xml	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,43 @@
+<configuration xmlns="urn:hornetq"
+            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+            xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">
+
+   <connection-factory name="NettyConnectionFactory">
+      <connectors>
+         <connector-ref connector-name="netty"/>
+      </connectors>
+      <entries>
+         <entry name="/ConnectionFactory"/>
+         <entry name="/XAConnectionFactory"/>
+      </entries>
+   </connection-factory>
+   
+   <connection-factory name="NettyThroughputConnectionFactory">
+	   <connectors>
+         <connector-ref connector-name="netty-throughput"/>
+	   </connectors>
+		<entries>
+			<entry name="/ThroughputConnectionFactory"/>
+			<entry name="/XAThroughputConnectionFactory"/>
+		</entries>
+	</connection-factory>
+   
+   <connection-factory name="InVMConnectionFactory">
+      <connectors>
+         <connector-ref connector-name="in-vm"/>
+      </connectors>
+      <entries>
+         <entry name="java:/ConnectionFactory"/>
+         <entry name="java:/XAConnectionFactory"/>
+      </entries>
+   </connection-factory>
+   
+   <queue name="DLQ">
+      <entry name="/queue/DLQ"/>
+   </queue>
+   
+   <queue name="ExpiryQueue">
+      <entry name="/queue/ExpiryQueue"/>
+   </queue>
+
+</configuration>

Copied: trunk/src/config/jboss-as-5/non-clustered/hornetq-roles.properties (from rev 9165, trunk/src/config/jboss-as/non-clustered/hornetq-roles.properties)
===================================================================
--- trunk/src/config/jboss-as-5/non-clustered/hornetq-roles.properties	                        (rev 0)
+++ trunk/src/config/jboss-as-5/non-clustered/hornetq-roles.properties	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,4 @@
+#
+# user=role1,role2,...
+#
+guest=guest

Copied: trunk/src/config/jboss-as-5/non-clustered/hornetq-users.properties (from rev 9165, trunk/src/config/jboss-as/non-clustered/hornetq-users.properties)
===================================================================
--- trunk/src/config/jboss-as-5/non-clustered/hornetq-users.properties	                        (rev 0)
+++ trunk/src/config/jboss-as-5/non-clustered/hornetq-users.properties	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,4 @@
+#
+# user=password
+#
+guest=guest

Copied: trunk/src/config/jboss-as-5/non-clustered/jms-ds.xml (from rev 9165, trunk/src/config/jboss-as/non-clustered/jms-ds.xml)
===================================================================
--- trunk/src/config/jboss-as-5/non-clustered/jms-ds.xml	                        (rev 0)
+++ trunk/src/config/jboss-as-5/non-clustered/jms-ds.xml	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,26 @@
+<connection-factories>
+   <!--
+    JMS Stuff
+   -->
+
+   <mbean code="org.jboss.jms.jndi.JMSProviderLoader" name="hornetq:service=JMSProviderLoader,name=JMSProvider">
+      <attribute name="ProviderName">DefaultJMSProvider</attribute>
+      <attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute>
+      <attribute name="FactoryRef">java:/XAConnectionFactory</attribute>
+      <attribute name="QueueFactoryRef">java:/XAConnectionFactory</attribute>
+      <attribute name="TopicFactoryRef">java:/XAConnectionFactory</attribute>
+   </mbean>
+   <!--
+    JMS XA Resource adapter, use this to get transacted JMS in beans
+   -->
+   <tx-connection-factory>
+      <jndi-name>JmsXA</jndi-name>
+      <xa-transaction/>
+      <rar-name>hornetq-ra.rar</rar-name>
+      <connection-definition>org.hornetq.ra.HornetQRAConnectionFactory</connection-definition>
+      <config-property name="SessionDefaultType" type="java.lang.String">javax.jms.Topic</config-property>
+      <config-property name="JmsProviderAdapterJNDI" type="java.lang.String">java:/DefaultJMSProvider</config-property>
+      <max-pool-size>20</max-pool-size>
+      <security-domain-and-application>JmsXARealm</security-domain-and-application>
+   </tx-connection-factory>
+</connection-factories>

Copied: trunk/src/config/jboss-as-5/non-clustered/login-config.xml (from rev 9165, trunk/src/config/jboss-as/non-clustered/login-config.xml)
===================================================================
--- trunk/src/config/jboss-as-5/non-clustered/login-config.xml	                        (rev 0)
+++ trunk/src/config/jboss-as-5/non-clustered/login-config.xml	2010-04-26 14:08:48 UTC (rev 9166)
@@ -0,0 +1,146 @@
+<?xml version='1.0'?>
+
+<!-- The XML based JAAS login configuration read by the
+org.jboss.security.auth.login.XMLLoginConfig mbean. Add
+an application-policy element for each security domain.
+
+The outline of the application-policy is:
+<application-policy name="security-domain-name">
+  <authentication>
+    <login-module code="login.module1.class.name" flag="control_flag">
+      <module-option name = "option1-name">option1-value</module-option>
+      <module-option name = "option2-name">option2-value</module-option>
+      ...
+    </login-module>
+
+    <login-module code="login.module2.class.name" flag="control_flag">
+      ...
+    </login-module>
+    ...
+  </authentication>
+</application-policy>
+
+$Id: login-config.xml 76444 2008-07-29 23:50:53Z sguilhen at redhat.com $
+$Revision: 76444 $
+-->
+
+<policy>
+  <!-- Used by clients within the application server VM such as
+  mbeans and servlets that access EJBs.
+  -->
+  <application-policy name="client-login">
+    <authentication>
+      <login-module code="org.jboss.security.ClientLoginModule"
+        flag="required">
+         <!-- Any existing security context will be restored on logout -->
+         <module-option name="restore-login-identity">true</module-option>
+      </login-module>
+    </authentication>
+  </application-policy>
+
+  <!-- Security domains for testing new jca framework -->
+  <application-policy name="HsqlDbRealm">
+    <authentication>
+      <login-module code="org.jboss.resource.security.ConfiguredIdentityLoginModule"
+        flag="required">
+        <module-option name="principal">sa</module-option>
+        <module-option name="userName">sa</module-option>
+        <module-option name="password"></module-option>
+        <module-option name="managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=DefaultDS</module-option>
+      </login-module>
+    </authentication>
+  </application-policy>
+
+  <application-policy name="JmsXARealm">
+    <authentication>
+      <login-module code="org.jboss.resource.security.ConfiguredIdentityLoginModule"
+        flag="required">
+        <module-option name="principal">guest</module-option>
+        <module-option name="userName">guest</module-option>
+        <module-option name="password">guest</module-option>
+        <module-option name="managedConnectionFactoryName">jboss.jca:service=TxCM,name=JmsXA</module-option>
+      </login-module>
+    </authentication>
+  </application-policy>
+
+  <!-- A template configuration for hornetq. This
+    defaults to the UsersRolesLoginModule the same as other and should be
+    changed to a stronger authentication mechanism as required.
+  -->
+<application-policy name="hornetq">
+    <authentication>
+      <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
+        flag="required">
+	<module-option name = "unauthenticatedIdentity">guest</module-option>
+        <module-option name="usersProperties">props/hornetq-users.properties</module-option>
+        <module-option name="rolesProperties">props/hornetq-roles.properties</module-option>
+      </login-module>
+    </authentication>
+  </application-policy>
+
+  <!-- A template configuration for the jmx-console web application. This
+    defaults to the UsersRolesLoginModule the same as other and should be
+    changed to a stronger authentication mechanism as required.
+  -->
+  <application-policy name="jmx-console">
+    <authentication>
+      <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
+        flag="required">
+        <module-option name="usersProperties">props/jmx-console-users.properties</module-option>
+        <module-option name="rolesProperties">props/jmx-console-roles.properties</module-option>
+      </login-module>
+    </authentication>
+  </application-policy>
+
+  <!-- A template configuration for the web-console web application. This
+    defaults to the UsersRolesLoginModule the same as other and should be
+    changed to a stronger authentication mechanism as required.
+  -->
+  <application-policy name="web-console">
+    <authentication>
+      <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
+        flag="required">
+        <module-option name="usersProperties">web-console-users.properties</module-option>
+        <module-option name="rolesProperties">web-console-roles.properties</module-option>
+      </login-module>
+    </authentication>
+  </application-policy>
+
+  <!--
+    A template configuration for the JBossWS security domain.
+    This defaults to the UsersRolesLoginModule the same as other and should be
+    changed to a stronger authentication mechanism as required.
+  -->
+  <application-policy name="JBossWS">
+    <authentication>
+      <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
+        flag="required">
+        <module-option name="usersProperties">props/jbossws-users.properties</module-option>
+        <module-option name="rolesProperties">props/jbossws-roles.properties</module-option>
+        <module-option name="unauthenticatedIdentity">anonymous</module-option>
+      </login-module>
+    </authentication>
+  </application-policy>
+
+  <!-- The default login configuration used by any security domain that
+  does not have a application-policy entry with a matching name
+  -->
+  <application-policy name="other">
+    <!-- A simple server login module, which can be used when the number
+    of users is relatively small. It uses two properties files:
+    users.properties, which holds users (key) and their password (value).
+    roles.properties, which holds users (key) and a comma-separated list of
+    their roles (value).
+    The unauthenticatedIdentity property defines the name of the principal
+    that will be used when a null username and password are presented as is
+    the case for an unuathenticated web client or MDB. If you want to
+    allow such users to be authenticated add the property, e.g.,
+    unauthenticatedIdentity="nobody"
+    -->
+    <authentication>
+      <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
+        flag="required"/>
+    </authentication>
+  </application-policy>
+
+</policy>



More information about the hornetq-commits mailing list