activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject [6/6] git commit: revert addition on forked hornetq javeee examples - some of the nested driver files have the LGPL license
Date Thu, 10 Oct 2013 11:10:39 GMT
revert addition on forked hornetq javeee examples - some of the nested driver files have the LGPL license


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/05bc25cb
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/05bc25cb
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/05bc25cb

Branch: refs/heads/trunk
Commit: 05bc25cb8750ae9e116a8b3d95d0b6060e7909b5
Parents: 4bfb806
Author: gtully <gary.tully@gmail.com>
Authored: Thu Oct 10 12:09:47 2013 +0100
Committer: gtully <gary.tully@gmail.com>
Committed: Thu Oct 10 12:09:47 2013 +0100

----------------------------------------------------------------------
 NOTICE                                          |   4 -
 activemq-arquillian/ee-install/pom.xml          | 166 -------
 activemq-arquillian/javaee/jca-config/pom.xml   |  64 ---
 .../jca-config/server/hornetq-configuration.xml |  54 ---
 .../javaee/jca-config/server/hornetq-jms.xml    |  20 -
 .../configuration/application-roles.properties  |  22 -
 .../configuration/application-users.properties  |  24 -
 .../standalone/configuration/logging.properties |  54 ---
 .../configuration/mgmt-users.properties         |  24 -
 .../configuration/standalone-example.xml        | 445 -----------------
 .../configuration/standalone-example2.xml       | 455 ------------------
 .../javaee/example/MDBRemoteClientExample.java  |  74 ---
 .../javaee/example/server/MDBQueueA.java        |  52 --
 .../javaee/example/server2/MDBQueueB.java       |  55 ---
 .../javaee/example/server2/StatelessSender.java |  90 ----
 .../example/server2/StatelessSenderService.java |  29 --
 .../example/server/ExampleRunner2Test.java      | 128 -----
 .../src/test/resources/arquillian.xml           |  55 ---
 activemq-arquillian/javaee/jca-remote/pom.xml   |  77 ---
 .../configuration/application-roles.properties  |  22 -
 .../configuration/application-users.properties  |  24 -
 .../standalone/configuration/logging.properties |  52 --
 .../configuration/mgmt-users.properties         |  24 -
 .../configuration/standalone-example.xml        | 459 ------------------
 .../configuration/standalone-live.xml           | 479 -------------------
 .../example/MDBRemoteServerClientExample.java   | 106 ----
 .../hornetq/javaee/example/server/MDBQueue.java |  90 ----
 .../javaee/examples/JCARemoteRunnerTest.java    | 128 -----
 .../src/test/resources/arquillian.xml           |  55 ---
 activemq-arquillian/javaee/mdb-bmt/pom.xml      |  14 -
 .../configuration/application-roles.properties  |  22 -
 .../configuration/application-users.properties  |  24 -
 .../standalone/configuration/logging.properties |  52 --
 .../configuration/mgmt-users.properties         |  24 -
 .../configuration/standalone-example.xml        | 445 -----------------
 .../javaee/example/MDB_BMTClientExample.java    |  86 ----
 .../javaee/example/server/MDB_BMTExample.java   |  71 ---
 .../example/server/ExampleRunnerTest.java       |  75 ---
 .../mdb-bmt/src/test/resources/arquillian.xml   |  43 --
 .../javaee/mdb-cmt-setrollbackonly/pom.xml      |  14 -
 .../configuration/application-roles.properties  |  22 -
 .../configuration/application-users.properties  |  24 -
 .../standalone/configuration/logging.properties |  52 --
 .../configuration/mgmt-users.properties         |  24 -
 .../configuration/standalone-example.xml        | 445 -----------------
 .../MDB_CMT_SetRollbackOnlyClientExample.java   |  87 ----
 .../server/MDB_CMT_SetRollbackOnlyExample.java  |  71 ---
 .../MDBCMTSetRollbackOnlyRunnerTest.java        |  61 ---
 .../src/test/resources/arquillian.xml           |  43 --
 .../javaee/mdb-cmt-tx-local/pom.xml             |  14 -
 .../configuration/application-roles.properties  |  22 -
 .../configuration/application-users.properties  |  24 -
 .../standalone/configuration/logging.properties |  52 --
 .../configuration/mgmt-users.properties         |  24 -
 .../configuration/standalone-example.xml        | 445 -----------------
 .../example/MDB_CMT_TxLocalClientExample.java   |  87 ----
 .../example/server/MDB_CMT_TxLocalExample.java  |  90 ----
 .../example/MDBCMTSetLocalTXRunnerTest.java     |  61 ---
 .../src/test/resources/arquillian.xml           |  43 --
 .../javaee/mdb-cmt-tx-not-supported/pom.xml     |  14 -
 .../configuration/application-roles.properties  |  22 -
 .../configuration/application-users.properties  |  24 -
 .../standalone/configuration/logging.properties |  52 --
 .../configuration/mgmt-users.properties         |  24 -
 .../configuration/standalone-example.xml        | 445 -----------------
 .../MDB_CMT_TxNotSupportedClientExample.java    |  87 ----
 .../example/server/MDB_CMT_TxNotSupported.java  |  73 ---
 .../MDBCMTSetTXNotSupportedRunnerTest.java      |  61 ---
 .../src/test/resources/arquillian.xml           |  43 --
 .../javaee/mdb-cmt-tx-required/pom.xml          |  14 -
 .../configuration/application-roles.properties  |  22 -
 .../configuration/application-users.properties  |  24 -
 .../standalone/configuration/logging.properties |  52 --
 .../configuration/mgmt-users.properties         |  24 -
 .../configuration/standalone-example.xml        | 446 -----------------
 .../MDB_CMT_TxRequiredClientExample.java        |  92 ----
 .../server/MDB_CMT_TxRequiredExample.java       |  65 ---
 .../examples/MDBCMTSetTXRequiredRunnerTest.java |  62 ---
 .../src/test/resources/arquillian.xml           |  43 --
 .../javaee/mdb-message-selector/pom.xml         |  14 -
 .../configuration/application-roles.properties  |  22 -
 .../configuration/application-users.properties  |  24 -
 .../standalone/configuration/logging.properties |  52 --
 .../configuration/mgmt-users.properties         |  24 -
 .../configuration/standalone-example.xml        | 446 -----------------
 .../MDBMessageSelectorClientExample.java        |  98 ----
 .../server/MDBMessageSelectorExample.java       |  63 ---
 .../MDBCMTSetMessageSelectorRunnerTest.java     |  62 ---
 .../src/test/resources/arquillian.xml           |  43 --
 activemq-arquillian/javaee/mdb-tx-send/pom.xml  |  14 -
 .../server/hornetq-configuration.xml            |  71 ---
 .../javaee/mdb-tx-send/server/hornetq-jms.xml   |  23 -
 .../configuration/application-roles.properties  |  22 -
 .../configuration/application-users.properties  |  24 -
 .../standalone/configuration/logging.properties |  52 --
 .../configuration/mgmt-users.properties         |  24 -
 .../configuration/standalone-example.xml        | 466 ------------------
 .../example/MDBMessageSendTxClientExample.java  | 102 ----
 .../example/server/MDBMessageSendTxExample.java |  99 ----
 .../javaee/examples/MDBCMTTxSendRunnerTest.java |  76 ---
 .../src/test/resources/arquillian.xml           |  43 --
 activemq-arquillian/javaee/pom.xml              | 155 ------
 activemq-arquillian/pom.xml                     | 110 -----
 .../src/main/resources/log4j.properties         |  43 --
 104 files changed, 9753 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/NOTICE
----------------------------------------------------------------------
diff --git a/NOTICE b/NOTICE
index 2b82424..365902d 100644
--- a/NOTICE
+++ b/NOTICE
@@ -45,7 +45,3 @@ This product includes software developed by
    Yahoo! Inc. (www.yahoo.com)
    Copyright (c) 2010 Yahoo! Inc.  All rights reserved.
 
-The activemq-arquillian module is a fork of HornetQ javaee examples
-licesed by Red Hat, Inc.
-https://github.com/hornetq/hornetq/blob/master/examples/javaee
-

http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/ee-install/pom.xml
----------------------------------------------------------------------
diff --git a/activemq-arquillian/ee-install/pom.xml b/activemq-arquillian/ee-install/pom.xml
deleted file mode 100644
index 5eba4fb..0000000
--- a/activemq-arquillian/ee-install/pom.xml
+++ /dev/null
@@ -1,166 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-  http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
-  <modelVersion>4.0.0</modelVersion>
-
-  <parent>
-    <groupId>org.apache.activemq</groupId>
-    <artifactId>activemq-arquillian</artifactId>
-    <version>5.9-SNAPSHOT</version>
-  </parent>
-
-  <artifactId>ee-install</artifactId>
-  <packaging>pom</packaging>
-  <name>ActiveMQ :: ee container</name>
-  <description>ee container install</description>
-
-  <!-- deploy the rar twice, activemq-rar and activemq-remote.rar -->
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-dependency-plugin</artifactId>
-        <version>${maven-dependency-plugin-version}</version>
-        <executions>
-          <execution>
-            <id>unpack-rar</id>
-            <phase>process-test-classes</phase>
-            <goals>
-              <goal>copy</goal>
-            </goals>
-            <configuration>
-              <artifactItems>
-                <artifactItem>
-                  <groupId>org.apache.activemq</groupId>
-                  <artifactId>activemq-rar</artifactId>
-                  <version>${project.version}</version>
-                  <type>rar</type>
-                  <overWrite>false</overWrite>
-                  <outputDirectory>
-                    ${project.build.directory}${file.separator}${container-version}${file.separator}standalone${file.separator}deployments
-                  </outputDirectory>
-                </artifactItem>
-              </artifactItems>
-              <stripVersion>true</stripVersion>
-            </configuration>
-          </execution>
-
-          <execution>
-            <id>unpack-rar-remote</id>
-            <phase>process-test-classes</phase>
-            <goals>
-              <goal>copy</goal>
-            </goals>
-            <configuration>
-              <artifactItems>
-                <artifactItem>
-                  <groupId>org.apache.activemq</groupId>
-                  <artifactId>activemq-rar</artifactId>
-                  <version>${project.version}</version>
-                  <type>rar</type>
-                  <overWrite>false</overWrite>
-                  <outputDirectory>
-                    ${project.build.directory}${file.separator}${container-version}${file.separator}standalone${file.separator}deployments
-                  </outputDirectory>
-                  <destFileName>activemq-remote.rar</destFileName>
-                </artifactItem>
-              </artifactItems>
-              <stripVersion>true</stripVersion>
-            </configuration>
-          </execution>
-
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
-
-  <profiles>
-    <profile>
-      <id>eap</id>
-      <!-- dists jars are not available in maven central
-           so a manual download and extract into ./target is required
-        build>
-        <plugins>
-          <plugin>
-            <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-dependency-plugin</artifactId>
-            <version>${maven-dependency-plugin-version}</version>
-            <executions>
-              <execution>
-                <id>unpack-jboss</id>
-                <phase>process-test-classes</phase>
-                <goals>
-                  <goal>unpack</goal>
-                </goals>
-                <configuration>
-                  <artifactItems>
-                    <artifactItem>
-                      <groupId>org.jboss.as</groupId>
-                      <artifactId>jboss-as-dist</artifactId>
-                      <version>${container-version}</version>
-                      <type>zip</type>
-                      <overWrite>false</overWrite>
-                      <outputDirectory>${project.build.directory}</outputDirectory>
-                    </artifactItem>
-                  </artifactItems>
-                </configuration>
-              </execution>
-            </executions>
-          </plugin>
-        </plugins>
-      </build -->
-    </profile>
-    <profile>
-      <id>wildfly</id>
-      <!-- requires 1.7 for client container so needs work -->
-      <build>
-        <plugins>
-          <plugin>
-            <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-dependency-plugin</artifactId>
-            <version>${maven-dependency-plugin-version}</version>
-            <executions>
-              <execution>
-                <id>unpack-wildfly</id>
-                <phase>process-test-classes</phase>
-                <goals>
-                  <goal>unpack</goal>
-                </goals>
-                <configuration>
-                  <artifactItems>
-                    <artifactItem>
-                      <groupId>org.wildfly</groupId>
-                      <artifactId>wildfly-dist</artifactId>
-                      <version>${container-version}</version>
-                      <type>zip</type>
-                      <overWrite>false</overWrite>
-                      <outputDirectory>${project.build.directory}</outputDirectory>
-                    </artifactItem>
-                  </artifactItems>
-                </configuration>
-              </execution>
-            </executions>
-          </plugin>
-        </plugins>
-      </build>
-    </profile>
-
-  </profiles>
-</project>

http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/jca-config/pom.xml
----------------------------------------------------------------------
diff --git a/activemq-arquillian/javaee/jca-config/pom.xml b/activemq-arquillian/javaee/jca-config/pom.xml
deleted file mode 100644
index 0d61170..0000000
--- a/activemq-arquillian/javaee/jca-config/pom.xml
+++ /dev/null
@@ -1,64 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-   <modelVersion>4.0.0</modelVersion>
-
-  <parent>
-        <groupId>org.apache.activemq</groupId>
-        <artifactId>javaee</artifactId>
-        <version>5.9-SNAPSHOT</version>
-     </parent>
-
-   <artifactId>jee-jca-config-example</artifactId>
-   <packaging>jar</packaging>
-   <name>JEE JCA Config Example</name>
-
-
-   <build>
-      <plugins>
-         <plugin>
-            <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-resources-plugin</artifactId>
-            <executions combine.children="append">
-               <!-- Copy the AS for the second node into current_submodule/target/as-node1.-->
-               <execution>
-                  <id>as-node1</id>
-                  <inherited>true</inherited>
-                  <phase>generate-test-resources</phase>
-                  <goals>
-                     <goal>copy-resources</goal>
-                  </goals>
-                  <configuration>
-                     <outputDirectory>${basedir}/target/jbossas-node1</outputDirectory>
-                     <overwrite>true</overwrite>
-                     <resources>
-                        <resource>
-                           <directory>${ee.install.home}</directory>
-                           <excludes>
-                              <exclude>standalone/data</exclude>
-                              <exclude>standalone/log</exclude>
-                              <exclude>standalone/tmp</exclude>
-                           </excludes>
-                        </resource>
-                        <resource>
-                           <directory>${basedir}/server</directory>
-                        </resource>
-                     </resources>
-                  </configuration>
-               </execution>
-            </executions>
-         </plugin>
-         <plugin>
-            <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-surefire-plugin</artifactId>
-            <version>2.12</version>
-            <configuration>
-               <argLine>-Dlogging.configuration=file:///${user.dir}/test/config/logging.properties</argLine>
-               <!-- Parameters to test cases. -->
-               <systemPropertyVariables>
-                  <arquillian.launch>clustering-all</arquillian.launch>
-               </systemPropertyVariables>
-            </configuration>
-         </plugin>
-      </plugins>
-   </build>
-</project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/jca-config/server/hornetq-configuration.xml
----------------------------------------------------------------------
diff --git a/activemq-arquillian/javaee/jca-config/server/hornetq-configuration.xml b/activemq-arquillian/javaee/jca-config/server/hornetq-configuration.xml
deleted file mode 100644
index 9a17dc9..0000000
--- a/activemq-arquillian/javaee/jca-config/server/hornetq-configuration.xml
+++ /dev/null
@@ -1,54 +0,0 @@
-<configuration xmlns="urn:hornetq"
-               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-               xsi:schemaLocation="urn:hornetq /schema/hornetq-configuration.xsd">
-
-   <!--  Don't change this name.
-         This is used by the dependency framework on the deployers,
-         to make sure this deployment is done before any other deployment -->
-   <name>HornetQ.main.config</name>
-
-
-   <bindings-directory>${jboss.server.data.dir}/messaging/bindings</bindings-directory>
-
-   <journal-directory>${jboss.server.data.dir}/messaging/journal</journal-directory>
-
-   <large-messages-directory>${jboss.server.data.dir}/messaging/largemessages</large-messages-directory>
-
-   <paging-directory>${jboss.server.data.dir}/messaging/paging</paging-directory>
-
-   <!-- Connectors -->
-   <connectors>
-      <connector name="netty">
-         <factory-class>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</factory-class>
-      </connector>
-
-      <connector name="in-vm">
-         <factory-class>org.hornetq.core.remoting.impl.invm.InVMConnectorFactory</factory-class>
-      </connector>
-
-   </connectors>
-
-   <!-- Acceptors -->
-   <acceptors>
-      <!-- In VM acceptor -->
-      <acceptor name="in-vm">
-         <factory-class>org.hornetq.core.remoting.impl.invm.InVMAcceptorFactory</factory-class>
-         <param key="server-id" value="0"/>
-      </acceptor>
-
-      <!-- Netty TCP Acceptor -->
-      <acceptor name="netty">
-         <factory-class>org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory</factory-class>
-         <param key="port" value="${hornetq.remoting.netty.port:5445}"/>
-      </acceptor>
-   </acceptors>
-
-   <security-settings>
-      <security-setting match="jms.queue.#">
-         <permission type="consume" roles="guest,publisher"/>
-         <permission type="send" roles="guest,publisher"/>
-      </security-setting>
-   </security-settings>
-
-
-</configuration>

http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/jca-config/server/hornetq-jms.xml
----------------------------------------------------------------------
diff --git a/activemq-arquillian/javaee/jca-config/server/hornetq-jms.xml b/activemq-arquillian/javaee/jca-config/server/hornetq-jms.xml
deleted file mode 100644
index 409eeaf..0000000
--- a/activemq-arquillian/javaee/jca-config/server/hornetq-jms.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<!--configuration xmlns="urn:hornetq"
-            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-            xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">
-   <connection-factory name="ConnectionFactory">
-      <connectors>
-         <connector-ref connector-name="netty"/>
-      </connectors>
-      <entries>
-         <entry name="ConnectionFactory"/>
-         <entry name="XAConnectionFactory"/>
-      </entries>
-   </connection-factory>
-
-   <queue name="A">
-      <entry name="/queue/A"/>
-   </queue>
-   <queue name="B">
-      <entry name="/queue/B"/>
-   </queue>
-</configuration -->
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/jca-config/server/standalone/configuration/application-roles.properties
----------------------------------------------------------------------
diff --git a/activemq-arquillian/javaee/jca-config/server/standalone/configuration/application-roles.properties b/activemq-arquillian/javaee/jca-config/server/standalone/configuration/application-roles.properties
deleted file mode 100644
index 0ade8fb..0000000
--- a/activemq-arquillian/javaee/jca-config/server/standalone/configuration/application-roles.properties
+++ /dev/null
@@ -1,22 +0,0 @@
-#
-# Properties declaration of users roles for the realm 'ApplicationRealm'.
-#
-# This includes the following protocols: remote ejb, remote jndi, web, remote jms
-#
-# Users can be added to this properties file at any time, updates after the server has started
-# will be automatically detected.
-#
-# The format of this file is as follows: -
-# username=role1,role2,role3
-#
-# A utility script is provided which can be executed from the bin folder to add the users: -
-# - Linux
-#  bin/add-user.sh
-#
-# - Windows
-#  bin\add-user.bat
-#
-# The following illustrates how an admin user could be defined.
-#
-#admin=PowerUser,BillingAdmin,
-guest=guest

http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/jca-config/server/standalone/configuration/application-users.properties
----------------------------------------------------------------------
diff --git a/activemq-arquillian/javaee/jca-config/server/standalone/configuration/application-users.properties b/activemq-arquillian/javaee/jca-config/server/standalone/configuration/application-users.properties
deleted file mode 100644
index c52e923..0000000
--- a/activemq-arquillian/javaee/jca-config/server/standalone/configuration/application-users.properties
+++ /dev/null
@@ -1,24 +0,0 @@
-#
-# Properties declaration of users for the realm 'ApplicationRealm' which is the default realm
-# for application services on a new AS 7.1 installation.
-#
-# This includes the following protocols: remote ejb, remote jndi, web, remote jms
-#
-# Users can be added to this properties file at any time, updates after the server has started
-# will be automatically detected.
-#
-# The format of this realm is as follows: -
-# username=HEX( MD5( username ':' realm ':' password))
-#
-# A utility script is provided which can be executed from the bin folder to add the users: -
-# - Linux
-#  bin/add-user.sh
-#
-# - Windows
-#  bin\add-user.bat
-#
-# The following illustrates how an admin user could be defined, this
-# is for illustration only and does not correspond to a usable password.
-#
-#admin=2a0923285184943425d1f53ddd58ec7a
-guest=3437456520927d113b17d471d630e0d6

http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/jca-config/server/standalone/configuration/logging.properties
----------------------------------------------------------------------
diff --git a/activemq-arquillian/javaee/jca-config/server/standalone/configuration/logging.properties b/activemq-arquillian/javaee/jca-config/server/standalone/configuration/logging.properties
deleted file mode 100644
index 8d6254a..0000000
--- a/activemq-arquillian/javaee/jca-config/server/standalone/configuration/logging.properties
+++ /dev/null
@@ -1,54 +0,0 @@
-#
-# JBoss, Home of Professional Open Source.
-# Copyright 2010, Red Hat, Inc., and individual contributors
-# as indicated by the @author tags. See the copyright.txt file in the
-# distribution for a full listing of individual contributors.
-#
-# This is free software; you can redistribute it and/or modify it
-# under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation; either version 2.1 of
-# the License, or (at your option) any later version.
-#
-# This software is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this software; if not, write to the Free
-# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-# 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-#
-
-# Additional logger names to configure (root logger is always configured)
-loggers=org.jboss.as.config
-
-# Dump system environment at boot by default
-logger.org.jboss.as.config.level=DEBUG
-
-logger.org.jboss.level=DEBUG
-
-# Root logger level
-logger.level=${jboss.boot.server.log.level:DEBUG}
-# Root logger handlers
-logger.handlers=FILE,CONSOLE
-
-# Console handler configuration
-handler.CONSOLE=org.jboss.logmanager.handlers.ConsoleHandler
-handler.CONSOLE.properties=autoFlush
-handler.CONSOLE.level=${jboss.boot.server.log.console.level:DEBUG}
-handler.CONSOLE.autoFlush=true
-handler.CONSOLE.formatter=PATTERN
-
-# File handler configuration
-handler.FILE=org.jboss.logmanager.handlers.FileHandler
-handler.FILE.level=DEBUG
-handler.FILE.properties=autoFlush,fileName
-handler.FILE.autoFlush=true
-handler.FILE.fileName=${org.jboss.boot.log.file:boot.log}
-handler.FILE.formatter=PATTERN
-
-# Formatter pattern configuration
-formatter.PATTERN=org.jboss.logmanager.formatters.PatternFormatter
-formatter.PATTERN.properties=pattern
-formatter.PATTERN.pattern=%d{HH:mm:ss,SSS} %-5p [%c] %s%E%n

http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/jca-config/server/standalone/configuration/mgmt-users.properties
----------------------------------------------------------------------
diff --git a/activemq-arquillian/javaee/jca-config/server/standalone/configuration/mgmt-users.properties b/activemq-arquillian/javaee/jca-config/server/standalone/configuration/mgmt-users.properties
deleted file mode 100644
index 349b004..0000000
--- a/activemq-arquillian/javaee/jca-config/server/standalone/configuration/mgmt-users.properties
+++ /dev/null
@@ -1,24 +0,0 @@
-#
-# Properties declaration of users for the realm 'ManagementRealm' which is the default realm
-# for new AS 7.1 installations. Further authentication mechanism can be configured
-# as part of the <management /> in standalone.xml.
-#
-# Users can be added to this properties file at any time, updates after the server has started
-# will be automatically detected.
-#
-# By default the properties realm expects the entries to be in the format: -
-# username=HEX( MD5( username ':' realm ':' password))
-#
-# A utility script is provided which can be executed from the bin folder to add the users: -
-# - Linux
-#  bin/add-user.sh
-#
-# - Windows
-#  bin\add-user.bat
-
-# The following illustrates how an admin user could be defined, this
-# is for illustration only and does not correspond to a usable password.
-#
-#admin=2a0923285184943425d1f53ddd58ec7a
-admin=9d71b431e53d99563aa0dfca628c970b
-andy=dfb16391f1be1c454b5bce9822bd9df3

http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/jca-config/server/standalone/configuration/standalone-example.xml
----------------------------------------------------------------------
diff --git a/activemq-arquillian/javaee/jca-config/server/standalone/configuration/standalone-example.xml b/activemq-arquillian/javaee/jca-config/server/standalone/configuration/standalone-example.xml
deleted file mode 100644
index 3f85a51..0000000
--- a/activemq-arquillian/javaee/jca-config/server/standalone/configuration/standalone-example.xml
+++ /dev/null
@@ -1,445 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-
-<server xmlns="urn:jboss:domain:1.1">
-
-    <extensions>
-        <extension module="org.jboss.as.clustering.infinispan"/>
-        <extension module="org.jboss.as.cmp"/>
-        <extension module="org.jboss.as.configadmin"/>
-        <extension module="org.jboss.as.connector"/>
-        <extension module="org.jboss.as.deployment-scanner"/>
-        <extension module="org.jboss.as.ee"/>
-        <extension module="org.jboss.as.ejb3"/>
-        <extension module="org.jboss.as.jacorb"/>
-        <extension module="org.jboss.as.jaxr"/>
-        <extension module="org.jboss.as.jaxrs"/>
-        <extension module="org.jboss.as.jdr"/>
-        <extension module="org.jboss.as.jmx"/>
-        <extension module="org.jboss.as.jpa"/>
-        <extension module="org.jboss.as.jsr77"/>
-        <extension module="org.jboss.as.logging"/>
-        <extension module="org.jboss.as.mail"/>
-        <extension module="org.jboss.as.messaging"/>
-        <extension module="org.jboss.as.naming"/>
-        <extension module="org.jboss.as.osgi"/>
-        <extension module="org.jboss.as.pojo"/>
-        <extension module="org.jboss.as.remoting"/>
-        <extension module="org.jboss.as.sar"/>
-        <extension module="org.jboss.as.security"/>
-        <extension module="org.jboss.as.threads"/>
-        <extension module="org.jboss.as.transactions"/>
-        <extension module="org.jboss.as.web"/>
-        <extension module="org.jboss.as.webservices"/>
-        <extension module="org.jboss.as.weld"/>
-    </extensions>
-
-    <management>
-        <security-realms>
-            <security-realm name="ManagementRealm">
-                <authentication>
-                    <properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>
-                </authentication>
-            </security-realm>
-            <security-realm name="ApplicationRealm">
-                <authentication>
-                    <properties path="application-users.properties" relative-to="jboss.server.config.dir"/>
-                </authentication>
-            </security-realm>
-        </security-realms>
-        <management-interfaces>
-            <native-interface security-realm="ManagementRealm">
-                <socket-binding native="management-native"/>
-            </native-interface>
-            <http-interface security-realm="ManagementRealm">
-                <socket-binding http="management-http"/>
-            </http-interface>
-        </management-interfaces>
-    </management>
-
-    <profile>
-        <subsystem xmlns="urn:jboss:domain:logging:1.1">
-            <console-handler name="CONSOLE">
-                <level name="INFO"/>
-                <formatter>
-                    <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
-                </formatter>
-            </console-handler>
-            <periodic-rotating-file-handler name="FILE">
-                <formatter>
-                    <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
-                </formatter>
-                <file relative-to="jboss.server.log.dir" path="server.log"/>
-                <suffix value=".yyyy-MM-dd"/>
-                <append value="true"/>
-            </periodic-rotating-file-handler>
-            <logger category="com.arjuna">
-                <level name="WARN"/>
-            </logger>
-            <logger category="org.apache.tomcat.util.modeler">
-                <level name="WARN"/>
-            </logger>
-            <logger category="sun.rmi">
-                <level name="WARN"/>
-            </logger>
-            <logger category="jacorb">
-                <level name="WARN"/>
-            </logger>
-            <logger category="jacorb.config">
-                <level name="ERROR"/>
-            </logger>
-            <root-logger>
-                <level name="INFO"/>
-                <handlers>
-                    <handler name="CONSOLE"/>
-                    <handler name="FILE"/>
-                </handlers>
-            </root-logger>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:cmp:1.0"/>
-        <subsystem xmlns="urn:jboss:domain:configadmin:1.0"/>
-        <subsystem xmlns="urn:jboss:domain:datasources:1.0">
-            <datasources>
-                <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">
-                    <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1</connection-url>
-                    <driver>h2</driver>
-                    <security>
-                        <user-name>sa</user-name>
-                        <password>sa</password>
-                    </security>
-                </datasource>
-                <drivers>
-                    <driver name="h2" module="com.h2database.h2">
-                        <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
-                    </driver>
-                </drivers>
-            </datasources>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1">
-            <deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000"/>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:ee:1.0"/>
-        <subsystem xmlns="urn:jboss:domain:ejb3:1.2">
-            <session-bean>
-                <stateless>
-                    <bean-instance-pool-ref pool-name="slsb-strict-max-pool"/>
-                </stateless>
-                <stateful default-access-timeout="5000" cache-ref="simple"/>
-                <singleton default-access-timeout="5000"/>
-            </session-bean>
-            <mdb>
-                <resource-adapter-ref resource-adapter-name="activemq-rar.rar"/>
-                <bean-instance-pool-ref pool-name="mdb-strict-max-pool"/>
-            </mdb>
-            <pools>
-                <bean-instance-pools>
-                    <strict-max-pool name="slsb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
-                    <strict-max-pool name="mdb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
-                </bean-instance-pools>
-            </pools>
-            <caches>
-                <cache name="simple" aliases="NoPassivationCache"/>
-                <cache name="passivating" passivation-store-ref="file" aliases="SimpleStatefulCache"/>
-            </caches>
-            <passivation-stores>
-                <file-passivation-store name="file"/>
-            </passivation-stores>
-            <async thread-pool-name="default"/>
-            <timer-service thread-pool-name="default">
-                <data-store path="timer-service-data" relative-to="jboss.server.data.dir"/>
-            </timer-service>
-            <remote connector-ref="remoting-connector" thread-pool-name="default"/>
-            <thread-pools>
-                <thread-pool name="default">
-                    <max-threads count="10"/>
-                    <keepalive-time time="100" unit="milliseconds"/>
-                </thread-pool>
-            </thread-pools>
-            <iiop enable-by-default="false" use-qualified-name="false"/>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:infinispan:1.1" default-cache-container="hibernate">
-            <cache-container name="hibernate" default-cache="local-query">
-                <local-cache name="entity">
-                    <transaction mode="NON_XA"/>
-                    <eviction strategy="LRU" max-entries="10000"/>
-                    <expiration max-idle="100000"/>
-                </local-cache>
-                <local-cache name="local-query">
-                    <transaction mode="NONE"/>
-                    <eviction strategy="LRU" max-entries="10000"/>
-                    <expiration max-idle="100000"/>
-                </local-cache>
-                <local-cache name="timestamps">
-                    <transaction mode="NONE"/>
-                    <eviction strategy="NONE"/>
-                </local-cache>
-            </cache-container>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:jacorb:1.1">
-            <orb>
-                <initializers transactions="spec" security="on"/>
-            </orb>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:jaxr:1.0">
-            <connection-factory jndi-name="java:jboss/jaxr/ConnectionFactory"/>
-            <juddi-server publish-url="http://localhost:8080/juddi/publish" query-url="http://localhost:8080/juddi/query"/>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:jaxrs:1.0"/>
-        <subsystem xmlns="urn:jboss:domain:jca:1.1">
-            <archive-validation enabled="true" fail-on-error="true" fail-on-warn="false"/>
-            <bean-validation enabled="true"/>
-            <default-workmanager>
-                <short-running-threads>
-                    <core-threads count="50"/>
-                    <queue-length count="50"/>
-                    <max-threads count="50"/>
-                    <keepalive-time time="10" unit="seconds"/>
-                </short-running-threads>
-                <long-running-threads>
-                    <core-threads count="50"/>
-                    <queue-length count="50"/>
-                    <max-threads count="50"/>
-                    <keepalive-time time="10" unit="seconds"/>
-                </long-running-threads>
-            </default-workmanager>
-            <cached-connection-manager/>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:jdr:1.0"/>
-        <subsystem xmlns="urn:jboss:domain:jmx:1.1">
-            <show-model value="true"/>
-            <remoting-connector/>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:jpa:1.0">
-            <jpa default-datasource=""/>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:jsr77:1.0"/>
-        <subsystem xmlns="urn:jboss:domain:mail:1.0">
-            <mail-session jndi-name="java:jboss/mail/Default">
-                <smtp-server outbound-socket-binding-ref="mail-smtp"/>
-            </mail-session>
-        </subsystem>
-        <!--subsystem xmlns="urn:jboss:domain:messaging:1.1">
-            <hornetq-server>
-                <persistence-enabled>true</persistence-enabled>
-                <journal-file-size>102400</journal-file-size>
-                <journal-min-files>2</journal-min-files>
-
-                <connectors>
-                    <netty-connector name="netty" socket-binding="messaging"/>
-                    <netty-connector name="netty-throughput" socket-binding="messaging-throughput">
-                        <param key="batch-delay" value="50"/>
-                    </netty-connector>
-                    <in-vm-connector name="in-vm" server-id="0"/>
-                </connectors>
-
-                <acceptors>
-                    <netty-acceptor name="netty" socket-binding="messaging"/>
-                    <netty-acceptor name="netty-throughput" socket-binding="messaging-throughput">
-                        <param key="batch-delay" value="50"/>
-                        <param key="direct-deliver" value="false"/>
-                    </netty-acceptor>
-                    <in-vm-acceptor name="in-vm" server-id="0"/>
-                </acceptors>
-
-                <security-settings>
-                    <security-setting match="#">
-                        <permission type="send" roles="guest"/>
-                        <permission type="consume" roles="guest"/>
-                        <permission type="createNonDurableQueue" roles="guest"/>
-                        <permission type="deleteNonDurableQueue" roles="guest"/>
-                    </security-setting>
-                </security-settings>
-
-                <address-settings>
-                    <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>
-                        <address-full-policy>BLOCK</address-full-policy>
-                        <message-counter-history-day-limit>10</message-counter-history-day-limit>
-                    </address-setting>
-                </address-settings>
-
-                <jms-connection-factories>
-                    <connection-factory name="InVmConnectionFactory">
-                        <connectors>
-                            <connector-ref connector-name="in-vm"/>
-                        </connectors>
-                        <entries>
-                            <entry name="java:/ConnectionFactory"/>
-                        </entries>
-                    </connection-factory>
-                    <connection-factory name="RemoteConnectionFactory">
-                        <connectors>
-                            <connector-ref connector-name="netty"/>
-                        </connectors>
-                        <entries>
-                            <entry name="RemoteConnectionFactory"/>
-                            <entry name="java:jboss/exported/jms/RemoteConnectionFactory"/>
-                        </entries>
-                    </connection-factory>
-                    <pooled-connection-factory name="hornetq-ra">
-                        <transaction mode="xa"/>
-                        <connectors>
-                            <connector-ref connector-name="in-vm"/>
-                        </connectors>
-                        <entries>
-                            <entry name="java:/JmsXA"/>
-                        </entries>
-                    </pooled-connection-factory>
-                </jms-connection-factories>
-                <jms-destinations>
-                    <jms-queue name="A">
-                        <entry name="queue/A"/>
-                        <entry name="java:jboss/exported/queues/A"/>
-                    </jms-queue>
-                    <jms-queue name="B">
-                        <entry name="queue/B"/>
-                        <entry name="java:jboss/exported/queues/B"/>
-                    </jms-queue>
-                </jms-destinations>
-            </hornetq-server>
-        </subsystem -->
-        <subsystem xmlns="urn:jboss:domain:naming:1.1"/>
-        <subsystem xmlns="urn:jboss:domain:osgi:1.2" activation="lazy">
-            <properties>
-                <!-- Specifies the beginning start level of the framework -->
-                <property name="org.osgi.framework.startlevel.beginning">1</property>
-            </properties>
-            <capabilities>
-                <!-- modules registered with the OSGi layer on startup -->
-                <capability name="javax.servlet.api:v25"/>
-                <capability name="javax.transaction.api"/>
-                <!-- bundles started in startlevel 1 -->
-                <capability name="org.apache.felix.log" startlevel="1"/>
-                <capability name="org.jboss.osgi.logging" startlevel="1"/>
-                <capability name="org.apache.felix.configadmin" startlevel="1"/>
-                <capability name="org.jboss.as.osgi.configadmin" startlevel="1"/>
-            </capabilities>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:pojo:1.0"/>
-        <subsystem xmlns="urn:jboss:domain:remoting:1.1">
-            <connector name="remoting-connector" socket-binding="remoting" security-realm="ApplicationRealm"/>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:resource-adapters:1.0">
-         <resource-adapters>
-          <resource-adapter>
-              <archive>
-                  activemq-rar.rar
-              </archive>
-              <transaction-support>XATransaction</transaction-support>
-              <config-property name="UseInboundSession">
-                  false
-              </config-property>
-              <config-property name="Password">
-                  defaultPassword
-              </config-property>
-              <config-property name="UserName">
-                  defaultUser
-              </config-property>
-              <config-property name="ServerUrl">
-                vm://localhost?brokerConfig=xbean:broker-config.xml
-              </config-property>
-              <connection-definitions>
-                  <connection-definition class-name="org.apache.activemq.ra.ActiveMQManagedConnectionFactory" jndi-name="java:/JmsXA" enabled="true" pool-name="ConnectionFactory">
-                      <xa-pool>
-                          <min-pool-size>1</min-pool-size>
-                          <max-pool-size>20</max-pool-size>
-                      </xa-pool>
-                    <recovery no-recovery="false" />
-                  </connection-definition>
-              </connection-definitions>
-          </resource-adapter>
-         </resource-adapters>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:sar:1.0"/>
-        <subsystem xmlns="urn:jboss:domain:security:1.1">
-            <security-domains>
-                <security-domain name="other" cache-type="default">
-                    <authentication>
-                        <login-module code="Remoting" flag="optional">
-                            <module-option name="password-stacking" value="useFirstPass"/>
-                        </login-module>
-                        <login-module code="RealmUsersRoles" flag="required">
-                            <module-option name="usersProperties" value="${jboss.server.config.dir}/application-users.properties"/>
-                            <module-option name="rolesProperties" value="${jboss.server.config.dir}/application-roles.properties"/>
-                            <module-option name="realm" value="ApplicationRealm"/>
-                            <module-option name="password-stacking" value="useFirstPass"/>
-                        </login-module>
-                    </authentication>
-                </security-domain>
-                <security-domain name="jboss-web-policy" cache-type="default">
-                    <authorization>
-                        <policy-module code="Delegating" flag="required"/>
-                    </authorization>
-                </security-domain>
-                <security-domain name="jboss-ejb-policy" cache-type="default">
-                    <authorization>
-                        <policy-module code="Delegating" flag="required"/>
-                    </authorization>
-                </security-domain>
-            </security-domains>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:threads:1.1"/>
-        <subsystem xmlns="urn:jboss:domain:transactions:1.1">
-            <core-environment>
-                <process-id>
-                    <uuid/>
-                </process-id>
-            </core-environment>
-            <recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>
-            <coordinator-environment default-timeout="300"/>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">
-            <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
-            <virtual-server name="default-host" enable-welcome-root="true">
-                <alias name="localhost"/>
-                <alias name="example.com"/>
-            </virtual-server>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:webservices:1.1">
-            <modify-wsdl-address>true</modify-wsdl-address>
-            <wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host>
-            <endpoint-config name="Standard-Endpoint-Config"/>
-            <endpoint-config name="Recording-Endpoint-Config">
-                <pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM">
-                    <handler name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/>
-                </pre-handler-chain>
-            </endpoint-config>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:weld:1.0"/>
-    </profile>
-
-    <interfaces>
-        <interface name="management">
-            <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
-        </interface>
-        <interface name="public">
-            <inet-address value="${jboss.bind.address:127.0.0.1}"/>
-        </interface>
-        <interface name="unsecure">
-            <!-- Used for IIOP sockets in the standarad configuration.
-                 To secure JacORB you need to setup SSL -->
-            <inet-address value="127.0.0.1"/>
-        </interface>
-    </interfaces>
-
-    <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
-        <socket-binding name="http" port="8080"/>
-        <socket-binding name="https" port="8443"/>
-        <socket-binding name="jacorb" interface="unsecure" port="3528"/>
-        <socket-binding name="jacorb-ssl" interface="unsecure" port="3529"/>
-        <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/>
-        <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>
-        <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9443}"/>
-        <socket-binding name="messaging" port="5445"/>
-        <socket-binding name="messaging-throughput" port="5455"/>
-        <socket-binding name="osgi-http" interface="management" port="8090"/>
-        <socket-binding name="remoting" port="4447"/>
-        <socket-binding name="txn-recovery-environment" port="4712"/>
-        <socket-binding name="txn-status-manager" port="4713"/>
-        <outbound-socket-binding name="mail-smtp">
-            <remote-destination host="localhost" port="25"/>
-        </outbound-socket-binding>
-    </socket-binding-group>
-</server>

http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/jca-config/server/standalone/configuration/standalone-example2.xml
----------------------------------------------------------------------
diff --git a/activemq-arquillian/javaee/jca-config/server/standalone/configuration/standalone-example2.xml b/activemq-arquillian/javaee/jca-config/server/standalone/configuration/standalone-example2.xml
deleted file mode 100644
index 0062481..0000000
--- a/activemq-arquillian/javaee/jca-config/server/standalone/configuration/standalone-example2.xml
+++ /dev/null
@@ -1,455 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-
-<server xmlns="urn:jboss:domain:1.1">
-
-    <extensions>
-        <extension module="org.jboss.as.clustering.infinispan"/>
-        <extension module="org.jboss.as.cmp"/>
-        <extension module="org.jboss.as.configadmin"/>
-        <extension module="org.jboss.as.connector"/>
-        <extension module="org.jboss.as.deployment-scanner"/>
-        <extension module="org.jboss.as.ee"/>
-        <extension module="org.jboss.as.ejb3"/>
-        <extension module="org.jboss.as.jacorb"/>
-        <extension module="org.jboss.as.jaxr"/>
-        <extension module="org.jboss.as.jaxrs"/>
-        <extension module="org.jboss.as.jdr"/>
-        <extension module="org.jboss.as.jmx"/>
-        <extension module="org.jboss.as.jpa"/>
-        <extension module="org.jboss.as.jsr77"/>
-        <extension module="org.jboss.as.logging"/>
-        <extension module="org.jboss.as.mail"/>
-        <extension module="org.jboss.as.messaging"/>
-        <extension module="org.jboss.as.naming"/>
-        <extension module="org.jboss.as.osgi"/>
-        <extension module="org.jboss.as.pojo"/>
-        <extension module="org.jboss.as.remoting"/>
-        <extension module="org.jboss.as.sar"/>
-        <extension module="org.jboss.as.security"/>
-        <extension module="org.jboss.as.threads"/>
-        <extension module="org.jboss.as.transactions"/>
-        <extension module="org.jboss.as.web"/>
-        <extension module="org.jboss.as.webservices"/>
-        <extension module="org.jboss.as.weld"/>
-    </extensions>
-
-    <management>
-        <security-realms>
-            <security-realm name="ManagementRealm">
-                <authentication>
-                    <properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>
-                </authentication>
-            </security-realm>
-            <security-realm name="ApplicationRealm">
-                <authentication>
-                    <properties path="application-users.properties" relative-to="jboss.server.config.dir"/>
-                </authentication>
-            </security-realm>
-        </security-realms>
-        <management-interfaces>
-            <native-interface security-realm="ManagementRealm">
-                <socket-binding native="management-native"/>
-            </native-interface>
-            <http-interface security-realm="ManagementRealm">
-                <socket-binding http="management-http"/>
-            </http-interface>
-        </management-interfaces>
-    </management>
-
-    <profile>
-        <subsystem xmlns="urn:jboss:domain:logging:1.1">
-            <console-handler name="CONSOLE">
-                <level name="INFO"/>
-                <formatter>
-                    <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
-                </formatter>
-            </console-handler>
-            <periodic-rotating-file-handler name="FILE">
-                <formatter>
-                    <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
-                </formatter>
-                <file relative-to="jboss.server.log.dir" path="server.log"/>
-                <suffix value=".yyyy-MM-dd"/>
-                <append value="true"/>
-            </periodic-rotating-file-handler>
-            <logger category="com.arjuna">
-                <level name="WARN"/>
-            </logger>
-            <logger category="org.apache.tomcat.util.modeler">
-                <level name="WARN"/>
-            </logger>
-            <logger category="sun.rmi">
-                <level name="WARN"/>
-            </logger>
-            <logger category="jacorb">
-                <level name="WARN"/>
-            </logger>
-            <logger category="jacorb.config">
-                <level name="ERROR"/>
-            </logger>
-            <root-logger>
-                <level name="INFO"/>
-                <handlers>
-                    <handler name="CONSOLE"/>
-                    <handler name="FILE"/>
-                </handlers>
-            </root-logger>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:cmp:1.0"/>
-        <subsystem xmlns="urn:jboss:domain:configadmin:1.0"/>
-        <subsystem xmlns="urn:jboss:domain:datasources:1.0">
-            <datasources>
-                <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">
-                    <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1</connection-url>
-                    <driver>h2</driver>
-                    <security>
-                        <user-name>sa</user-name>
-                        <password>sa</password>
-                    </security>
-                </datasource>
-                <drivers>
-                    <driver name="h2" module="com.h2database.h2">
-                        <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
-                    </driver>
-                </drivers>
-            </datasources>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1">
-            <deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000"/>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:ee:1.0"/>
-        <subsystem xmlns="urn:jboss:domain:ejb3:1.2">
-            <session-bean>
-                <stateless>
-                    <bean-instance-pool-ref pool-name="slsb-strict-max-pool"/>
-                </stateless>
-                <stateful default-access-timeout="5000" cache-ref="simple"/>
-                <singleton default-access-timeout="5000"/>
-            </session-bean>
-            <mdb>
-                <resource-adapter-ref resource-adapter-name="activemq-remote.rar"/>
-                <bean-instance-pool-ref pool-name="mdb-strict-max-pool"/>
-            </mdb>
-            <pools>
-                <bean-instance-pools>
-                    <strict-max-pool name="slsb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
-                    <strict-max-pool name="mdb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
-                </bean-instance-pools>
-            </pools>
-            <caches>
-                <cache name="simple" aliases="NoPassivationCache"/>
-                <cache name="passivating" passivation-store-ref="file" aliases="SimpleStatefulCache"/>
-            </caches>
-            <passivation-stores>
-                <file-passivation-store name="file"/>
-            </passivation-stores>
-            <async thread-pool-name="default"/>
-            <timer-service thread-pool-name="default">
-                <data-store path="timer-service-data" relative-to="jboss.server.data.dir"/>
-            </timer-service>
-            <remote connector-ref="remoting-connector" thread-pool-name="default"/>
-            <thread-pools>
-                <thread-pool name="default">
-                    <max-threads count="10"/>
-                    <keepalive-time time="100" unit="milliseconds"/>
-                </thread-pool>
-            </thread-pools>
-            <iiop enable-by-default="false" use-qualified-name="false"/>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:infinispan:1.1" default-cache-container="hibernate">
-            <cache-container name="hibernate" default-cache="local-query">
-                <local-cache name="entity">
-                    <transaction mode="NON_XA"/>
-                    <eviction strategy="LRU" max-entries="10000"/>
-                    <expiration max-idle="100000"/>
-                </local-cache>
-                <local-cache name="local-query">
-                    <transaction mode="NONE"/>
-                    <eviction strategy="LRU" max-entries="10000"/>
-                    <expiration max-idle="100000"/>
-                </local-cache>
-                <local-cache name="timestamps">
-                    <transaction mode="NONE"/>
-                    <eviction strategy="NONE"/>
-                </local-cache>
-            </cache-container>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:jacorb:1.1">
-            <orb>
-                <initializers transactions="spec" security="on"/>
-            </orb>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:jaxr:1.0">
-            <connection-factory jndi-name="java:jboss/jaxr/ConnectionFactory"/>
-            <juddi-server publish-url="http://localhost:8080/juddi/publish" query-url="http://localhost:8080/juddi/query"/>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:jaxrs:1.0"/>
-        <subsystem xmlns="urn:jboss:domain:jca:1.1">
-            <archive-validation enabled="true" fail-on-error="true" fail-on-warn="false"/>
-            <bean-validation enabled="true"/>
-            <default-workmanager>
-                <short-running-threads>
-                    <core-threads count="50"/>
-                    <queue-length count="50"/>
-                    <max-threads count="50"/>
-                    <keepalive-time time="10" unit="seconds"/>
-                </short-running-threads>
-                <long-running-threads>
-                    <core-threads count="50"/>
-                    <queue-length count="50"/>
-                    <max-threads count="50"/>
-                    <keepalive-time time="10" unit="seconds"/>
-                </long-running-threads>
-            </default-workmanager>
-            <cached-connection-manager/>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:jdr:1.0"/>
-        <subsystem xmlns="urn:jboss:domain:jmx:1.1">
-            <show-model value="true"/>
-            <remoting-connector/>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:jpa:1.0">
-            <jpa default-datasource=""/>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:jsr77:1.0"/>
-        <subsystem xmlns="urn:jboss:domain:mail:1.0">
-            <mail-session jndi-name="java:jboss/mail/Default">
-                <smtp-server outbound-socket-binding-ref="mail-smtp"/>
-            </mail-session>
-        </subsystem>
-        <!--subsystem xmlns="urn:jboss:domain:messaging:1.1">
-            <hornetq-server>
-                <persistence-enabled>true</persistence-enabled>
-                <journal-file-size>102400</journal-file-size>
-                <journal-min-files>2</journal-min-files>
-
-                <connectors>
-                    <netty-connector name="netty" socket-binding="messaging"/>
-                    <netty-connector name="remote-netty" socket-binding="remote-messaging"/>
-                    <netty-connector name="netty-throughput" socket-binding="messaging-throughput">
-                        <param key="batch-delay" value="50"/>
-                    </netty-connector>
-                    <in-vm-connector name="in-vm" server-id="0"/>
-                </connectors>
-
-                <acceptors>
-                    <netty-acceptor name="netty" socket-binding="messaging"/>
-                    <netty-acceptor name="netty-throughput" socket-binding="messaging-throughput">
-                        <param key="batch-delay" value="50"/>
-                        <param key="direct-deliver" value="false"/>
-                    </netty-acceptor>
-                    <in-vm-acceptor name="in-vm" server-id="0"/>
-                </acceptors>
-
-                <security-settings>
-                    <security-setting match="#">
-                        <permission type="send" roles="guest"/>
-                        <permission type="consume" roles="guest"/>
-                        <permission type="createNonDurableQueue" roles="guest"/>
-                        <permission type="deleteNonDurableQueue" roles="guest"/>
-                    </security-setting>
-                </security-settings>
-
-                <address-settings>
-                    <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>
-                        <address-full-policy>BLOCK</address-full-policy>
-                        <message-counter-history-day-limit>10</message-counter-history-day-limit>
-                    </address-setting>
-                </address-settings>
-
-                <jms-connection-factories>
-                    <connection-factory name="InVmConnectionFactory">
-                        <connectors>
-                            <connector-ref connector-name="in-vm"/>
-                        </connectors>
-                        <entries>
-                            <entry name="java:/ConnectionFactory"/>
-                        </entries>
-                    </connection-factory>
-                    <connection-factory name="RemoteConnectionFactory">
-                        <connectors>
-                            <connector-ref connector-name="netty"/>
-                        </connectors>
-                        <entries>
-                            <entry name="RemoteConnectionFactory"/>
-                            <entry name="java:jboss/exported/jms/RemoteConnectionFactory"/>
-                        </entries>
-                    </connection-factory>
-                    <pooled-connection-factory name="hornetq-ra">
-                        <transaction mode="xa"/>
-                        <connectors>
-                            <connector-ref connector-name="in-vm"/>
-                        </connectors>
-                        <entries>
-                            <entry name="java:/JmsXA"/>
-                        </entries>
-                    </pooled-connection-factory>
-                    <pooled-connection-factory name="hornetq-ra-remote">
-                        <transaction mode="xa"/>
-                        <user>guest</user>
-                        <password>password</password>
-                        <connectors>
-                            <connector-ref connector-name="remote-netty"/>
-                        </connectors>
-                        <entries>
-                            <entry name="java:/RemoteJmsXA"/>
-                        </entries>
-                    </pooled-connection-factory>
-                </jms-connection-factories>
-                <jms-destinations>
-                    <jms-queue name="B">
-                        <entry name="queue/B"/>
-                        <entry name="java:jboss/exported/queues/B"/>
-                    </jms-queue>
-                </jms-destinations>
-            </hornetq-server>
-        </subsystem -->
-        <subsystem xmlns="urn:jboss:domain:naming:1.1"/>
-        <subsystem xmlns="urn:jboss:domain:osgi:1.2" activation="lazy">
-            <properties>
-                <!-- Specifies the beginning start level of the framework -->
-                <property name="org.osgi.framework.startlevel.beginning">1</property>
-            </properties>
-            <capabilities>
-                <!-- modules registered with the OSGi layer on startup -->
-                <capability name="javax.servlet.api:v25"/>
-                <capability name="javax.transaction.api"/>
-                <!-- bundles started in startlevel 1 -->
-                <capability name="org.apache.felix.log" startlevel="1"/>
-                <capability name="org.jboss.osgi.logging" startlevel="1"/>
-                <capability name="org.apache.felix.configadmin" startlevel="1"/>
-                <capability name="org.jboss.as.osgi.configadmin" startlevel="1"/>
-            </capabilities>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:pojo:1.0"/>
-        <subsystem xmlns="urn:jboss:domain:remoting:1.1">
-            <connector name="remoting-connector" socket-binding="remoting" security-realm="ApplicationRealm"/>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:resource-adapters:1.0">
-          <resource-adapters>
-           <resource-adapter>
-               <archive>
-                 activemq-remote.rar
-               </archive>
-               <transaction-support>XATransaction</transaction-support>
-               <config-property name="UseInboundSession">
-                   false
-               </config-property>
-               <config-property name="Password">
-                   defaultPassword
-               </config-property>
-               <config-property name="UserName">
-                   defaultUser
-               </config-property>
-               <config-property name="ServerUrl">
-                   tcp://localhost:61616
-               </config-property>
-               <connection-definitions>
-                   <connection-definition class-name="org.apache.activemq.ra.ActiveMQManagedConnectionFactory" jndi-name="java:/RemoteJmsXA" enabled="true" pool-name="ConnectionFactory">
-                       <xa-pool>
-                           <min-pool-size>1</min-pool-size>
-                           <max-pool-size>20</max-pool-size>
-                       </xa-pool>
-                     <recovery no-recovery="false" />
-                   </connection-definition>
-               </connection-definitions>
-           </resource-adapter>
-          </resource-adapters>
-         </subsystem>
-
-        <subsystem xmlns="urn:jboss:domain:sar:1.0"/>
-        <subsystem xmlns="urn:jboss:domain:security:1.1">
-            <security-domains>
-                <security-domain name="other" cache-type="default">
-                    <authentication>
-                        <login-module code="Remoting" flag="optional">
-                            <module-option name="password-stacking" value="useFirstPass"/>
-                        </login-module>
-                        <login-module code="RealmUsersRoles" flag="required">
-                            <module-option name="usersProperties" value="${jboss.server.config.dir}/application-users.properties"/>
-                            <module-option name="rolesProperties" value="${jboss.server.config.dir}/application-roles.properties"/>
-                            <module-option name="realm" value="ApplicationRealm"/>
-                            <module-option name="password-stacking" value="useFirstPass"/>
-                        </login-module>
-                    </authentication>
-                </security-domain>
-                <security-domain name="jboss-web-policy" cache-type="default">
-                    <authorization>
-                        <policy-module code="Delegating" flag="required"/>
-                    </authorization>
-                </security-domain>
-                <security-domain name="jboss-ejb-policy" cache-type="default">
-                    <authorization>
-                        <policy-module code="Delegating" flag="required"/>
-                    </authorization>
-                </security-domain>
-            </security-domains>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:threads:1.1"/>
-        <subsystem xmlns="urn:jboss:domain:transactions:1.1">
-            <core-environment>
-                <process-id>
-                    <uuid/>
-                </process-id>
-            </core-environment>
-            <recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>
-            <coordinator-environment default-timeout="300"/>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">
-            <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
-            <virtual-server name="default-host" enable-welcome-root="true">
-                <alias name="localhost"/>
-                <alias name="example.com"/>
-            </virtual-server>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:webservices:1.1">
-            <modify-wsdl-address>true</modify-wsdl-address>
-            <wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host>
-            <endpoint-config name="Standard-Endpoint-Config"/>
-            <endpoint-config name="Recording-Endpoint-Config">
-                <pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM">
-                    <handler name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/>
-                </pre-handler-chain>
-            </endpoint-config>
-        </subsystem>
-        <subsystem xmlns="urn:jboss:domain:weld:1.0"/>
-    </profile>
-
-    <interfaces>
-        <interface name="management">
-            <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
-        </interface>
-        <interface name="public">
-            <inet-address value="${jboss.bind.address:127.0.0.1}"/>
-        </interface>
-        <interface name="unsecure">
-            <!-- Used for IIOP sockets in the standarad configuration.
-                 To secure JacORB you need to setup SSL -->
-            <inet-address value="127.0.0.1"/>
-        </interface>
-    </interfaces>
-
-    <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
-        <socket-binding name="http" port="8080"/>
-        <socket-binding name="https" port="8443"/>
-        <socket-binding name="jacorb" interface="unsecure" port="3528"/>
-        <socket-binding name="jacorb-ssl" interface="unsecure" port="3529"/>
-        <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/>
-        <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>
-        <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9443}"/>
-        <socket-binding name="messaging" port="5445"/>
-        <socket-binding name="messaging-throughput" port="5455"/>
-        <socket-binding name="remote-messaging" port="5445" fixed-port="true"/>
-        <socket-binding name="osgi-http" interface="management" port="8090"/>
-        <socket-binding name="remoting" port="4447"/>
-        <socket-binding name="txn-recovery-environment" port="4712"/>
-        <socket-binding name="txn-status-manager" port="4713"/>
-        <outbound-socket-binding name="mail-smtp">
-            <remote-destination host="localhost" port="25"/>
-        </outbound-socket-binding>
-    </socket-binding-group>
-</server>

http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/jca-config/src/main/java/org/hornetq/javaee/example/MDBRemoteClientExample.java
----------------------------------------------------------------------
diff --git a/activemq-arquillian/javaee/jca-config/src/main/java/org/hornetq/javaee/example/MDBRemoteClientExample.java b/activemq-arquillian/javaee/jca-config/src/main/java/org/hornetq/javaee/example/MDBRemoteClientExample.java
deleted file mode 100644
index 6c4dec2..0000000
--- a/activemq-arquillian/javaee/jca-config/src/main/java/org/hornetq/javaee/example/MDBRemoteClientExample.java
+++ /dev/null
@@ -1,74 +0,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.
- */
-package org.hornetq.javaee.example;
-
-import org.hornetq.javaee.example.server2.StatelessSenderService;
-
-import javax.jms.Connection;
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import java.util.Properties;
-
-/**
- *
- * MDB Remote & JCA Configuration Example.
- *
- * @author <a href="mailto:clebert.suconic@jboss.org">Clebert Suconic</a>
- */
-public class MDBRemoteClientExample
-{
-   public static void main(String[] args) throws Exception
-   {
-      Connection connection = null;
-      InitialContext initialContext = null;
-      try
-      {
-         final Properties env = new Properties();
-
-         env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory");
-
-         env.put(Context.PROVIDER_URL, "remote://localhost:4547");
-
-         env.put(Context.SECURITY_PRINCIPAL, "guest");
-
-         env.put(Context.SECURITY_CREDENTIALS, "password");
-         env.put("jboss.naming.client.ejb.context", true);
-
-env.put("jboss.naming.client.connect.options.org.xnio.Options.SASL_POLICY_NOPLAINTEXT", "false");
-         //Step 1. Create an initial context to perform the JNDI lookup.
-         initialContext = new InitialContext(env);
-
-         //Step 2. Getting a reference to the Stateless Bean
-         StatelessSenderService sender = (StatelessSenderService)initialContext.lookup("mdb2/StatelessSender!org.hornetq.javaee.example.server2.StatelessSenderService");
-
-         //Step 3. Calling a Stateless Session Bean. You will have more steps on the SessionBean
-         sender.sendHello("Hello there MDB!");
-
-         System.out.println("Step 3: Invoking the Stateless Bean");
-
-         initialContext.close();
-      }
-      finally
-      {
-         //Step 11. Be sure to close our JMS resources!
-         if (initialContext != null)
-         {
-            initialContext.close();
-         }
-         if(connection != null)
-         {
-            connection.close();
-         }
-      }
-   }
-}

http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/jca-config/src/main/java/org/hornetq/javaee/example/server/MDBQueueA.java
----------------------------------------------------------------------
diff --git a/activemq-arquillian/javaee/jca-config/src/main/java/org/hornetq/javaee/example/server/MDBQueueA.java b/activemq-arquillian/javaee/jca-config/src/main/java/org/hornetq/javaee/example/server/MDBQueueA.java
deleted file mode 100644
index ced6af3..0000000
--- a/activemq-arquillian/javaee/jca-config/src/main/java/org/hornetq/javaee/example/server/MDBQueueA.java
+++ /dev/null
@@ -1,52 +0,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.
- */
-package org.hornetq.javaee.example.server;
-
-import javax.ejb.ActivationConfigProperty;
-import javax.ejb.MessageDriven;
-import javax.jms.Message;
-import javax.jms.MessageListener;
-import javax.jms.TextMessage;
-
-/**
- * MDB that is connected to the remote queue.
- * @author <a href="mailto:clebert.suconic@jboss.org">Clebert Suconic</a>
- */
-
-//Step 9. The message is received on the MDB, using a local queue.
-@MessageDriven(name = "MDB_QueueA",
-               activationConfig =
-                     {
-                        @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
-                        @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/A"),
-                        @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge")
-                     })
-public class MDBQueueA implements MessageListener
-{
-   public void onMessage(Message message)
-   {
-      try
-      {
-         TextMessage tm = (TextMessage)message;
-
-         String text = tm.getText();
-
-         System.out.println("Step 10: (MDBQueueA.java) Message received using the default adapter. Message = \"" + text + "\"" );
-
-      }
-      catch (Exception e)
-      {
-         e.printStackTrace();
-      }
-   }
-}

http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/jca-config/src/main/java/org/hornetq/javaee/example/server2/MDBQueueB.java
----------------------------------------------------------------------
diff --git a/activemq-arquillian/javaee/jca-config/src/main/java/org/hornetq/javaee/example/server2/MDBQueueB.java b/activemq-arquillian/javaee/jca-config/src/main/java/org/hornetq/javaee/example/server2/MDBQueueB.java
deleted file mode 100644
index 644883d..0000000
--- a/activemq-arquillian/javaee/jca-config/src/main/java/org/hornetq/javaee/example/server2/MDBQueueB.java
+++ /dev/null
@@ -1,55 +0,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.
- */
-package org.hornetq.javaee.example.server2;
-
-import org.jboss.ejb3.annotation.ResourceAdapter;
-
-import javax.ejb.ActivationConfigProperty;
-import javax.ejb.MessageDriven;
-import javax.jms.Message;
-import javax.jms.MessageListener;
-import javax.jms.TextMessage;
-
-/**
- * MDB that is connected to the remote queue.
- * @author <a href="mailto:clebert.suconic@jboss.org">Clebert Suconic</a>
- */
-
-//Step 10. The message is received on the MDB, using a remote queue.
-@MessageDriven(name = "MDB_QueueB",
-               activationConfig =
-                     {
-                        @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
-                        @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/B"),
-                        @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge")
-                     })
-@ResourceAdapter("activemq-remote.rar")
-public class MDBQueueB implements MessageListener
-{
-   public void onMessage(Message message)
-   {
-      try
-      {
-         TextMessage tm = (TextMessage)message;
-
-         String text = tm.getText();
-
-         System.out.println("Step 11: (MDBQueueB.java) Message received using the remote adapter. Message = \"" + text + "\"" );
-
-      }
-      catch (Exception e)
-      {
-         e.printStackTrace();
-      }
-   }
-}

http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/jca-config/src/main/java/org/hornetq/javaee/example/server2/StatelessSender.java
----------------------------------------------------------------------
diff --git a/activemq-arquillian/javaee/jca-config/src/main/java/org/hornetq/javaee/example/server2/StatelessSender.java b/activemq-arquillian/javaee/jca-config/src/main/java/org/hornetq/javaee/example/server2/StatelessSender.java
deleted file mode 100644
index 90fbfc1..0000000
--- a/activemq-arquillian/javaee/jca-config/src/main/java/org/hornetq/javaee/example/server2/StatelessSender.java
+++ /dev/null
@@ -1,90 +0,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.
- */
-
-
-package org.hornetq.javaee.example.server2;
-
-
-import javax.annotation.Resource;
-import javax.ejb.Remote;
-import javax.ejb.Stateless;
-import javax.jms.*;
-
-/**
- * A Stateless Bean that will connect to a remote JBM.
- *
- * @author <a href="mailto:clebert.suconic@jboss.org">Clebert Suconic</a>
- *
- *
- */
-@Remote(StatelessSenderService.class)
-@Stateless
-public class StatelessSender implements StatelessSenderService
-{
-
-   /**
-    *  Resource to be deployed by jms-remote-ds.xml
-    *  */
-   @Resource(mappedName="java:/RemoteJmsXA")
-   private ConnectionFactory connectionFactory;
-
-
-   /* (non-Javadoc)
-    * @see org.jboss.javaee.example.server.StatelessSenderService#sendHello(java.lang.String)
-    */
-   public void sendHello(String message) throws Exception
-   {
-      // Step 4. Define the destinations that will receive the message (instead of using JNDI to the remote server)
-      //Queue destQueueA = HornetQJMSClient.createQueue("A");
-      //Queue destQueueB = HornetQJMSClient.createQueue("B");
-      // Step 5. Create a connection to a remote server using a connection-factory (look at the deployed file jms-remote-ds.xml)
-      Connection conn = connectionFactory.createConnection("guest", "password");
-
-      // Step 6. Send a message to a QueueA on the remote server, which will be received by MDBQueueA
-      Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
-      MessageProducer prodA = sess.createProducer(sess.createQueue("A"));
-      prodA.send(sess.createTextMessage(message));
-
-      System.out.println("Step 7 (StatelessSender.java): Sent message \"" + message + "\" to QueueA");
-
-      // Step 6. Send a message to a QueueB on the remote server, which will be received by MDBQueueA
-      MessageProducer prodB = sess.createProducer(sess.createQueue("B"));
-      prodB.send(sess.createTextMessage(message));
-
-      System.out.println("Step 8 (StatelessSender.java): Sent message \"" + message + "\" to QueueB");
-
-      // Step 7. Close the connection. (Since this is a JCA connection, this will just place the connection back to a connection pool)
-      conn.close();
-      System.out.println("Step 9 (StatelessSender.java): Closed Connection (sending it back to pool)");
-
-   }
-
-   // Constants -----------------------------------------------------
-
-   // Attributes ----------------------------------------------------
-
-   // Static --------------------------------------------------------
-
-   // Constructors --------------------------------------------------
-
-   // Public --------------------------------------------------------
-
-   // Package protected ---------------------------------------------
-
-   // Protected -----------------------------------------------------
-
-   // Private -------------------------------------------------------
-
-   // Inner classes -------------------------------------------------
-
-}

http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/jca-config/src/main/java/org/hornetq/javaee/example/server2/StatelessSenderService.java
----------------------------------------------------------------------
diff --git a/activemq-arquillian/javaee/jca-config/src/main/java/org/hornetq/javaee/example/server2/StatelessSenderService.java b/activemq-arquillian/javaee/jca-config/src/main/java/org/hornetq/javaee/example/server2/StatelessSenderService.java
deleted file mode 100644
index 5d50cd5..0000000
--- a/activemq-arquillian/javaee/jca-config/src/main/java/org/hornetq/javaee/example/server2/StatelessSenderService.java
+++ /dev/null
@@ -1,29 +0,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.
- */
-
-
-package org.hornetq.javaee.example.server2;
-
-/**
- * A StatelessSenderService
- *
- * @author <a href="mailto:clebert.suconic@jboss.org">Clebert Suconic</a>
- *
- *
- */
-public interface StatelessSenderService
-{
-
-   public void sendHello(String message) throws Exception;
-
-}


Mime
View raw message