http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..fd63cef
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,754 @@
+#idea files
+hornetq-pom.ipr
+hornetq-pom.iws
+.idea
+*.iml
+*/*.iml
+*/*/*.iml
+*/*/*/*.iml
+dependency-reduced-pom.xml
+*/dependency-reduced-pom.xml
+*/*/dependency-reduced-pom.xml
+*/*/*dependency-reduced-pom.xml
+.factorypath
+
+# compilation from native
+*/*/bin
+*~
+
+target
+tests/integration-tests/data/
+tests/joram-tests/data/
+org.eclipse.jdt.core.prefs
+org.eclipse.jdt.ui.prefs
+org.eclipse.m2e.core.prefs
+*/.settings/org.eclipse.*
+*/*/.settings/org.eclipse.*
+examples/*/*/.settings/org.eclipse.*
+examples/*/*/.project
+examples/*/.project
+!etc/org.eclipse.jdt.ui.prefs
+!etc/org.eclipse.jdt.core.prefs
+org.maven.ide.eclipse.prefs
+.classpath
+tests/*-tests/hs_err_pid*.log
+tests/**/server.lock
+hornetq-core/*.log
+.checkstyle
+
+# /
+/build
+/eclipse-output
+/thirdparty
+/logs
+/ObjectStore
+/tmp
+/data
+/junit*.properties
+/target
+/.metadata
+
+integration/hornetq-*-integration/.project
+
+# /distribution/
+/distribution/target
+/distribution/.project
+/distribution/jboss-mc/.project
+
+# /distribution/hornetq/
+/distribution/hornetq/.project
+
+# /distribution/jnp-client/
+/distribution/jnp-client/target
+/distribution/jnp-client/bin
+/distribution/jnp-client/.project
+
+# /docs/
+/docs/.project
+
+# /docs/eap-manual/
+/docs/eap-manual/build
+
+# /docs/quickstart-guide/
+/docs/quickstart-guide/build
+/docs/quickstart-guide/target
+
+# /docs/user-manual/
+/docs/user-manual/build
+/docs/user-manual/target
+/docs/user-manual/bin
+/docs/user-manual/.project
+
+# /examples/
+/examples/bin
+/examples/.project
+
+# /examples/common/
+/examples/common/build
+
+# /examples/core/embedded/
+/examples/core/embedded/logs
+/examples/core/embedded/build
+
+# /examples/core/embedded-remote/
+/examples/core/embedded-remote/build
+
+# /examples/core/microcontainer/
+/examples/core/microcontainer/build
+
+# /examples/core/perf/
+/examples/core/perf/build
+/examples/core/perf/data
+/examples/core/perf/logs
+
+# /examples/javaee/ejb-jms-transaction/
+/examples/javaee/ejb-jms-transaction/build
+
+# /examples/javaee/hajndi/
+/examples/javaee/hajndi/build
+
+# /examples/javaee/jca-config/
+/examples/javaee/jca-config/build
+
+# /examples/javaee/jms-bridge/
+/examples/javaee/jms-bridge/build
+
+# /examples/javaee/mdb-cmt-tx-local/
+/examples/javaee/mdb-cmt-tx-local/build
+
+# /examples/javaee/mdb-cmt-tx-required/
+/examples/javaee/mdb-cmt-tx-required/build
+
+# /examples/javaee/servlet-ssl/
+/examples/javaee/servlet-ssl/build
+
+# /examples/javaee/servlet-transport/
+/examples/javaee/servlet-transport/build
+
+# /examples/javaee/xarecovery/
+/examples/javaee/xarecovery/build
+
+# /examples/
+/examples/build
+
+# /examples/applet/
+/examples/applet/build
+
+# /examples/applet/server0/
+/examples/applet/server0/data
+
+# /examples/application-layer-failover/
+/examples/application-layer-failover/build
+/examples/application-layer-failover/logs
+
+# /examples/application-layer-failover/server0/
+/examples/application-layer-failover/server0/data
+/examples/application-layer-failover/server0/logs
+
+# /examples/application-layer-failover/server1/
+/examples/application-layer-failover/server1/data
+/examples/application-layer-failover/server1/logs
+/examples/application-layer-failover/server1/KILL_ME
+
+# /examples/bridge/
+/examples/bridge/build
+/examples/bridge/logs
+
+# /examples/bridge/server0/
+/examples/bridge/server0/data
+/examples/bridge/server0/logs
+
+# /examples/bridge/server1/
+/examples/bridge/server1/data
+/examples/bridge/server1/logs
+
+# /examples/browser/
+/examples/browser/build
+/examples/browser/logs
+
+# /examples/browser/server0/
+/examples/browser/server0/data
+/examples/browser/server0/logs
+
+# /examples/client-kickoff/
+/examples/client-kickoff/build
+/examples/client-kickoff/logs
+
+# /examples/client-kickoff/server0/
+/examples/client-kickoff/server0/data
+/examples/client-kickoff/server0/logs
+
+# /examples/client-side-load-balancing/
+/examples/client-side-load-balancing/build
+/examples/client-side-load-balancing/logs
+
+# /examples/client-side-load-balancing/server0/
+/examples/client-side-load-balancing/server0/data
+/examples/client-side-load-balancing/server0/logs
+
+# /examples/client-side-load-balancing/server1/
+/examples/client-side-load-balancing/server1/data
+/examples/client-side-load-balancing/server1/logs
+
+# /examples/client-side-load-balancing/server2/
+/examples/client-side-load-balancing/server2/data
+/examples/client-side-load-balancing/server2/logs
+
+# /examples/clustered-durable-subscription/
+/examples/clustered-durable-subscription/build
+/examples/clustered-durable-subscription/logs
+
+# /examples/clustered-durable-subscription/server0/
+/examples/clustered-durable-subscription/server0/data
+/examples/clustered-durable-subscription/server0/logs
+
+# /examples/clustered-durable-subscription/server1/
+/examples/clustered-durable-subscription/server1/data
+/examples/clustered-durable-subscription/server1/logs
+
+# /examples/clustered-queue/
+/examples/clustered-queue/build
+/examples/clustered-queue/logs
+
+# /examples/clustered-jgroups/
+/examples/clustered-jgroups/server0
+/examples/clustered-jgroups/server1
+
+# /examples/clustered-queue/server0/
+/examples/clustered-queue/server0/data
+/examples/clustered-queue/server0/logs
+
+# /examples/clustered-queue/server1/
+/examples/clustered-queue/server1/data
+/examples/clustered-queue/server1/logs
+
+# /examples/clustered-topic/
+/examples/clustered-topic/build
+/examples/clustered-topic/logs
+
+# /examples/clustered-topic/server0/
+/examples/clustered-topic/server0/data
+/examples/clustered-topic/server0/logs
+
+# /examples/clustered-topic/server1/
+/examples/clustered-topic/server1/data
+/examples/clustered-topic/server1/logs
+
+# /examples/consumer-rate-limit/
+/examples/consumer-rate-limit/build
+/examples/consumer-rate-limit/logs
+
+# /examples/consumer-rate-limit/server0/
+/examples/consumer-rate-limit/server0/data
+/examples/consumer-rate-limit/server0/logs
+
+# /examples/dead-letter/
+/examples/dead-letter/build
+/examples/dead-letter/logs
+
+# /examples/dead-letter/server0/
+/examples/dead-letter/server0/data
+/examples/dead-letter/server0/logs
+
+# /examples/delayed-redelivery/
+/examples/delayed-redelivery/build
+/examples/delayed-redelivery/logs
+
+# /examples/delayed-redelivery/server0/
+/examples/delayed-redelivery/server0/data
+/examples/delayed-redelivery/server0/logs
+
+# /examples/divert/
+/examples/divert/build
+/examples/divert/logs
+
+# /examples/divert/server0/
+/examples/divert/server0/data
+/examples/divert/server0/logs
+
+# /examples/divert/server1/
+/examples/divert/server1/data
+/examples/divert/server1/logs
+
+# /examples/durable-subscription/
+/examples/durable-subscription/build
+/examples/durable-subscription/logs
+
+# /examples/durable-subscription/server0/
+/examples/durable-subscription/server0/data
+/examples/durable-subscription/server0/logs
+
+# /examples/embedded/
+/examples/embedded/logs
+/examples/embedded/build
+
+# /examples/expiry/
+/examples/expiry/build
+/examples/expiry/logs
+
+# /examples/expiry/server0/
+/examples/expiry/server0/data
+/examples/expiry/server0/logs
+
+# /examples/http-transport/
+/examples/http-transport/build
+/examples/http-transport/logs
+
+# /examples/http-transport/server0/
+/examples/http-transport/server0/data
+/examples/http-transport/server0/logs
+
+# /examples/instantiate-connection-factory/
+/examples/instantiate-connection-factory/build
+/examples/instantiate-connection-factory/logs
+
+# /examples/instantiate-connection-factory/server0/
+/examples/instantiate-connection-factory/server0/data
+/examples/instantiate-connection-factory/server0/logs
+
+# /examples/interceptor/
+/examples/interceptor/build
+/examples/interceptor/logs
+
+# /examples/interceptor/server0/
+/examples/interceptor/server0/data
+/examples/interceptor/server0/logs
+
+# /examples/jaas/
+/examples/jaas/build
+/examples/jaas/logs
+
+# /examples/jaas/server0/
+/examples/jaas/server0/data
+/examples/jaas/server0/logs
+
+# /examples/jms-bridge/
+/examples/jms-bridge/build
+/examples/jms-bridge/data
+
+# /examples/jmx/
+/examples/jmx/build
+/examples/jmx/logs
+
+# /examples/jmx/server0/
+/examples/jmx/server0/data
+/examples/jmx/server0/logs
+
+# /examples/large-message/
+/examples/large-message/build
+/examples/large-message/logs
+/examples/large-message/huge_message_received.dat
+/examples/large-message/huge_message_to_send.dat
+
+# /examples/large-message/server0/
+/examples/large-message/server0/logs
+/examples/large-message/server0/data
+
+# /examples/last-value-queue/
+/examples/last-value-queue/build
+/examples/last-value-queue/logs
+
+# /examples/last-value-queue/server0/
+/examples/last-value-queue/server0/data
+/examples/last-value-queue/server0/logs
+
+# /examples/management/
+/examples/management/build
+/examples/management/logs
+
+# /examples/management/server0/
+/examples/management/server0/data
+/examples/management/server0/logs
+
+# /examples/management-notifications/
+/examples/management-notifications/build
+/examples/management-notifications/logs
+
+# /examples/management-notifications/server0/
+/examples/management-notifications/server0/logs
+/examples/management-notifications/server0/data
+
+# /examples/message-counters/
+/examples/message-counters/build
+/examples/message-counters/logs
+
+# /examples/message-counters/server0/
+/examples/message-counters/server0/data
+/examples/message-counters/server0/logs
+
+# /examples/message-group/
+/examples/message-group/build
+/examples/message-group/logs
+
+# /examples/message-group/server0/
+/examples/message-group/server0/data
+/examples/message-group/server0/logs
+
+# /examples/message-priority/
+/examples/message-priority/build
+/examples/message-priority/logs
+
+# /examples/message-priority/server0/
+/examples/message-priority/server0/data
+/examples/message-priority/server0/logs
+
+# /examples/no-consumer-buffering/
+/examples/no-consumer-buffering/build
+/examples/no-consumer-buffering/logs
+
+# /examples/no-consumer-buffering/server0/
+/examples/no-consumer-buffering/server0/data
+/examples/no-consumer-buffering/server0/logs
+
+# /examples/non-transaction-failover/
+/examples/non-transaction-failover/build
+
+# /examples/non-transaction-failover/server0/
+/examples/non-transaction-failover/server0/data
+
+# /examples/non-transaction-failover/server1/
+/examples/non-transaction-failover/server1/data
+
+# /examples/paging/
+/examples/paging/build
+/examples/paging/logs
+
+# /examples/paging/server0/
+/examples/paging/server0/data
+/examples/paging/server0/logs
+
+# /examples/perf/
+/examples/perf/build
+/examples/perf/data
+
+# /examples/pre-acknowledge/
+/examples/pre-acknowledge/build
+/examples/pre-acknowledge/logs
+
+# /examples/pre-acknowledge/server0/
+/examples/pre-acknowledge/server0/data
+/examples/pre-acknowledge/server0/logs
+
+# /examples/producer-rate-limit/
+/examples/producer-rate-limit/build
+/examples/producer-rate-limit/logs
+
+# /examples/producer-rate-limit/server0/
+/examples/producer-rate-limit/server0/data
+/examples/producer-rate-limit/server0/logs
+
+# /examples/queue/
+/examples/queue/build
+/examples/queue/logs
+
+# /examples/queue/server0/
+/examples/queue/server0/data
+/examples/queue/server0/logs
+
+# /examples/queue-message-redistribution/
+/examples/queue-message-redistribution/build
+/examples/queue-message-redistribution/logs
+
+# /examples/queue-message-redistribution/server0/
+/examples/queue-message-redistribution/server0/data
+/examples/queue-message-redistribution/server0/logs
+
+# /examples/queue-message-redistribution/server1/
+/examples/queue-message-redistribution/server1/data
+/examples/queue-message-redistribution/server1/logs
+
+# /examples/queue-requestor/
+/examples/queue-requestor/build
+/examples/queue-requestor/logs
+
+# /examples/queue-requestor/server0/
+/examples/queue-requestor/server0/data
+/examples/queue-requestor/server0/logs
+
+# /examples/queue-selector/
+/examples/queue-selector/build
+/examples/queue-selector/logs
+
+# /examples/queue-selector/server0/
+/examples/queue-selector/server0/data
+/examples/queue-selector/server0/logs
+
+# /examples/reattach-node/
+/examples/reattach-node/build
+/examples/reattach-node/logs
+
+# /examples/reattach-node/server0/
+/examples/reattach-node/server0/data
+/examples/reattach-node/server0/logs
+
+# /examples/request-reply/
+/examples/request-reply/build
+/examples/request-reply/logs
+
+# /examples/request-reply/server0/
+/examples/request-reply/server0/data
+/examples/request-reply/server0/logs
+
+# /examples/scheduled-message/
+/examples/scheduled-message/build
+/examples/scheduled-message/logs
+
+# /examples/scheduled-message/server0/
+/examples/scheduled-message/server0/data
+/examples/scheduled-message/server0/logs
+
+# /examples/security/
+/examples/security/build
+/examples/security/logs
+
+# /examples/security/server0/
+/examples/security/server0/data
+/examples/security/server0/logs
+
+# /examples/send-acknowledgements/
+/examples/send-acknowledgements/build
+/examples/send-acknowledgements/logs
+
+# /examples/send-acknowledgements/server0/
+/examples/send-acknowledgements/server0/data
+/examples/send-acknowledgements/server0/logs
+
+# /examples/ssl-enabled/
+/examples/ssl-enabled/build
+/examples/ssl-enabled/logs
+
+# /examples/ssl-enabled/server0/
+/examples/ssl-enabled/server0/data
+/examples/ssl-enabled/server0/logs
+
+# /examples/static-selector/
+/examples/static-selector/build
+/examples/static-selector/logs
+
+# /examples/static-selector/server0/
+/examples/static-selector/server0/data
+/examples/static-selector/server0/logs
+
+# /examples/static-selector-jms/
+/examples/static-selector-jms/logs
+/examples/static-selector-jms/build
+
+# /examples/static-selector-jms/server0/
+/examples/static-selector-jms/server0/data
+/examples/static-selector-jms/server0/logs
+
+# /examples/stomp/
+/examples/stomp/build
+
+# /examples/stomp/server0/
+/examples/stomp/server0/data
+
+# /examples/symmetric-cluster/
+/examples/symmetric-cluster/build
+/examples/symmetric-cluster/logs
+
+# /examples/symmetric-cluster/server0/
+/examples/symmetric-cluster/server0/data
+/examples/symmetric-cluster/server0/logs
+
+# /examples/symmetric-cluster/server1/
+/examples/symmetric-cluster/server1/data
+/examples/symmetric-cluster/server1/logs
+
+# /examples/symmetric-cluster/server2/
+/examples/symmetric-cluster/server2/data
+/examples/symmetric-cluster/server2/logs
+
+# /examples/symmetric-cluster/server3/
+/examples/symmetric-cluster/server3/data
+/examples/symmetric-cluster/server3/logs
+
+# /examples/symmetric-cluster/server4/
+/examples/symmetric-cluster/server4/data
+/examples/symmetric-cluster/server4/logs
+
+# /examples/symmetric-cluster/server5/
+/examples/symmetric-cluster/server5/data
+/examples/symmetric-cluster/server5/logs
+
+# /examples/temp-queue/
+/examples/temp-queue/build
+/examples/temp-queue/logs
+
+# /examples/temp-queue/server0/
+/examples/temp-queue/server0/data
+/examples/temp-queue/server0/logs
+
+# /examples/topic/
+/examples/topic/build
+/examples/topic/logs
+
+# /examples/topic/server0/
+/examples/topic/server0/data
+/examples/topic/server0/logs
+
+# /examples/topic-hierarchies/
+/examples/topic-hierarchies/build
+/examples/topic-hierarchies/logs
+
+# /examples/topic-hierarchies/server0/
+/examples/topic-hierarchies/server0/data
+/examples/topic-hierarchies/server0/logs
+
+# /examples/topic-selector-example1/
+/examples/topic-selector-example1/build
+/examples/topic-selector-example1/logs
+
+# /examples/topic-selector-example1/server0/
+/examples/topic-selector-example1/server0/data
+/examples/topic-selector-example1/server0/logs
+
+# /examples/topic-selector-example2/
+/examples/topic-selector-example2/build
+/examples/topic-selector-example2/logs
+
+# /examples/topic-selector-example2/server0/
+/examples/topic-selector-example2/server0/data
+/examples/topic-selector-example2/server0/logs
+
+# /examples/transaction-failover/
+/examples/transaction-failover/build
+
+# /examples/transaction-failover/server0/
+/examples/transaction-failover/server0/data
+
+# /examples/transaction-failover/server1/
+/examples/transaction-failover/server1/data
+
+# /examples/transactional/
+/examples/transactional/build
+/examples/transactional/logs
+
+# /examples/transactional/server0/
+/examples/transactional/server0/data
+/examples/transactional/server0/logs
+
+# /examples/xa-heuristic/
+/examples/xa-heuristic/build
+/examples/xa-heuristic/logs
+
+# /examples/xa-heuristic/server0/
+/examples/xa-heuristic/server0/data
+/examples/xa-heuristic/server0/logs
+
+# /examples/xa-receive/
+/examples/xa-receive/build
+/examples/xa-receive/logs
+
+# /examples/xa-receive/server0/
+/examples/xa-receive/server0/data
+/examples/xa-receive/server0/logs
+
+# /examples/xa-send/
+/examples/xa-send/build
+/examples/xa-send/logs
+
+# /examples/xa-send/server0/
+/examples/xa-send/server0/data
+/examples/xa-send/server0/logs
+
+# /examples/xa-with-jta/
+/examples/xa-with-jta/server0/data
+/examples/xa-with-jta/build
+/examples/xa-with-jta/logs
+/examples/xa-with-jta/ObjectStore
+
+# /examples/xa-with-jta/server0/
+/examples/xa-with-jta/server0/data
+/examples/xa-with-jta/server0/logs
+
+#      examples/browser/data/
+examples/browser/data/
+
+#      examples/client-kickoff/data/
+examples/client-kickoff/data/
+
+#      examples/consumer-rate-limit/data/
+examples/consumer-rate-limit/data/
+
+#      examples/data/
+examples/data/
+
+#      examples/dead-letter/data/
+examples/dead-letter/data/
+
+#      examples/delayed-redelivery/data/
+examples/delayed-redelivery/data/
+
+#      examples/durable-subscription/data/
+examples/durable-subscription/data/
+
+#      examples/expiry/data/
+examples/expiry/data/
+
+#      examples/http-transport/data/
+examples/http-transport/data/
+
+#      examples/instantiate-connection-factory/data/
+examples/instantiate-connection-factory/data/
+
+#      examples/interceptor/data/
+examples/interceptor/data/
+
+#      examples/jaas/data/
+examples/jaas/data/
+
+#      examples/jmx/data/
+examples/jmx/data/
+
+examples/move.sh
+examples/move2.sh
+examples/pom-template.xml
+
+# /examples/soak/normal/
+/examples/soak/normal/build
+
+# /examples/soak/tx-restarts/
+/examples/soak/tx-restarts/build
+
+# /hornetq-protocols/
+/hornetq-protocols/hornetq-amqp-protocol/.project
+/hornetq-protocols/hornetq-stomp-protocol/.project
+
+# /hornetq-ra/hornetq-ra-jar/
+/hornetq-ra/hornetq-ra-jar/target
+/hornetq-ra/hornetq-ra-jar/.project
+
+# /hornetq-ra/hornetq-ra-rar/
+/hornetq-ra/hornetq-ra-rar/target
+/hornetq-ra/hornetq-ra-rar/.project
+
+# /hornetq-rest/hornetq-rest/
+/hornetq-rest/target
+/hornetq-rest/.project
+/hornetq-rest/data/
+
+# /hornetq-rest/
+/hornetq-*/.project
+/hornetq-*/target
+
+/tests/.project
+/tests/*-tests/.project
+
+/docs/rest-manual/.project
+/docs/quickstart-guide/.project
+
+native/autom4te.cache
+native/src/.libs
+native/src/.deps
+.settings/org.eclipse.core.resources.prefs
+
+*.iml
+*/*.iml
+*/*/*.iml
+*/*/*/*.iml
+
+hornetq.log
+*/hornetq.log
+*/*/hornetq.log
+*/*/*/hornetq.log

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/.project
----------------------------------------------------------------------
diff --git a/.project b/.project
new file mode 100644
index 0000000..d928224
--- /dev/null
+++ b/.project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>hornetq</name>
+       <comment></comment>
+       <projects>
+       </projects>
+       <buildSpec>
+               <buildCommand>
+                       <name>org.eclipse.m2e.core.maven2Builder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+       </buildSpec>
+       <natures>
+               <nature>org.eclipse.m2e.core.maven2Nature</nature>
+       </natures>
+</projectDescription>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/.settings/de.loskutov.anyedit.AnyEditTools.prefs
----------------------------------------------------------------------
diff --git a/.settings/de.loskutov.anyedit.AnyEditTools.prefs 
b/.settings/de.loskutov.anyedit.AnyEditTools.prefs
new file mode 100644
index 0000000..6858acb
--- /dev/null
+++ b/.settings/de.loskutov.anyedit.AnyEditTools.prefs
@@ -0,0 +1,14 @@
+activeContentFilterList=*.makefile,makefile,*.Makefile,Makefile,Makefile.*,*.mk,MANIFEST.MF
+convertActionOnSaave=AnyEdit.CnvrtTabToSpaces
+eclipse.preferences.version=1
+inActiveContentFilterList=
+javaTabWidthForJava=true
+org.eclipse.jdt.ui.editor.tab.width=3
+projectPropsEnabled=true
+removeTrailingSpaces=true
+replaceAllSpaces=false
+replaceAllTabs=false
+saveAndAddLine=false
+saveAndConvert=true
+saveAndTrim=true
+useModulo4Tabs=false

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/.settings/intellij_settings.jar
----------------------------------------------------------------------
diff --git a/.settings/intellij_settings.jar b/.settings/intellij_settings.jar
new file mode 100644
index 0000000..4a3bf10
Binary files /dev/null and b/.settings/intellij_settings.jar differ

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/NOTICE
----------------------------------------------------------------------
diff --git a/NOTICE b/NOTICE
new file mode 100644
index 0000000..288a13f
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1,14 @@
+HornetQ
+Copyright 2009 Red Hat, Inc.  Licensed under the Apache License, version 2.0.
+Unless required by applicable law, HornetQ is distributed on
+an "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, either express or
+implied, including the implied warranties of TITLE, NON-INFRINGEMENT,
+MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE.
+
+Certain portions of HornetQ are based on code made available
+under the GNU Lesser General Public License, version 2.1 or later
+(http://www.fsf.org/licensing/licenses/lgpl.html).
+"JBoss" and "Red Hat" are trademarks of Red Hat, Inc. and/or its
+affiliates, registered in the U.S. and other countries.  Your
+permissions under the licensing terms governing HornetQ do
+not include a license, express or implied, to any Red Hat trademark.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..d37b3a5
--- /dev/null
+++ b/README.md
@@ -0,0 +1,171 @@
+# HornetQ
+
+If you need information about the HornetQ project please go to
+
+http://community.jboss.org/wiki/HornetQ
+
+http://www.jboss.org/hornetq/
+
+This file describes some minimum 'stuff one needs to know' to get
+started coding in this project.
+
+## Source
+
+The project's source code is hosted at:
+
+https://github.com/hornetq
+
+### Git usage:
+
+Pull requests should be merged without fast forwards '--no-ff'. An easy way to 
achieve that is to use
+
+```% git config branch.master.mergeoptions --no-ff```
+
+## Maven
+
+The minimum required Maven version is 3.0.0.
+
+Do note that there are some compatibility issues with Maven 3.X still
+unsolved [1]. This is specially true for the 'site' plugin [2].
+
+[1]: <https://cwiki.apache.org/MAVEN/maven-3x-compatibility-notes.html>
+[2]: <https://cwiki.apache.org/MAVEN/maven-3x-and-site-plugin.html>
+
+## Tests
+
+To run the unit tests:
+
+```% mvn -Phudson-tests test```
+
+Generating reports from unit tests:
+
+```% mvn install site```
+
+
+Running tests individually
+
+```% mvn -Phudson-tests -DfailIfNoTests=false -Dtest=<test-name> test ```
+
+where &lt;test-name> is the name of the Test class without its package name
+
+
+## Examples
+
+To run an example firstly make sure you have run
+
+```% mvn -Prelease install```
+
+If the project version has already been released then this is unnecessary.
+
+then you will need to set the following maven options, on Linux by
+
+```export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=512m"```
+
+and the finally run the examples by
+
+```% mvn verify```
+
+You can also run individual examples by running the same command from the 
directory of which ever example you want to run.
+NB for this make sure you have installed examples/common.
+
+### Recreating the examples
+
+If you are trying to copy the examples somewhere else and modifying them. 
Consider asking Maven to explicitly list all the dependencies:
+
+```
+# if trying to modify the 'topic' example:
+cd examples/jms/topic && mvn dependency:list
+```
+
+## To build a release artifact
+
+```% mvn -Prelease install```
+
+## To build the release bundle
+
+```% mvn -Prelease package```
+
+## Eclipse
+
+We recommend using Eclipse Kepler (4.3), due to the built-in support
+for Maven and Git. Note that there are still some Maven plugins used
+by sub-projects (e.g. documentation) which are not supported even in
+Eclipse Kepler (4.3).
+
+Eclipse [m2e] is already included in "Eclipse IDE for Java Developers", or it
+can be installed from [Eclipse Kepler release repository].
+
+[m2e]: http://eclipse.org/m2e/
+[Eclipse Kepler release repository]: 
http://download.eclipse.org/releases/kepler
+
+### Annotation Pre-Processing
+
+HornetQ uses [JBoss Logging] and that requires source code generation from Java
+annotations. In order for it to 'just work' in Eclipse you need to install the
+_Maven Integration for Eclipse JDT Annotation Processor Toolkit_ [m2e-apt]. See
+this [JBoss blog post] for details.
+
+[JBoss Logging]: <https://community.jboss.org/wiki/JBossLoggingTooling>
+[m2e-apt]: https://github.com/jbosstools/m2e-apt
+[JBoss blog post]: 
https://community.jboss.org/en/tools/blog/2012/05/20/annotation-processing-support-in-m2e-or-m2e-apt-100-is-out
+
+### M2E Connector for Javacc-Maven-Plugin
+
+Eclipse Indigo (3.7) has out-of-the-box support for it.
+
+As of this writing, Eclipse Kepler (4.3) still lacks support for
+Maven's javacc plugin. The available [m2e connector for
+javacc-maven-plugin] requires a downgrade of Maven components to be
+installed. manual installation instructions (as of this writing you
+need to use the development update site). See [this post] for how to
+do this with Eclipse Juno (4.2).
+
+The current recommended solution for Eclipse Kepler is to mark
+`javacc-maven-plugin` as ignored by Eclipse, run Maven from the
+command line and then modify the project `hornetq-core-client` adding
+the folder `target/generated-sources/javacc` to its build path.
+
+[m2e connector for javacc-maven-plugin]: 
https://github.com/objectledge/maven-extensions
+[this post]:
+http://dev.eclipse.org/mhonarc/lists/m2e-users/msg02725.html
+
+### Use _Project Working Sets_
+
+Importing all HornetQ subprojects will create _too many_ projects in Eclipse,
+cluttering your _Package Explorer_ and _Project Explorer_ views. One way to 
address
+that is to use [Eclipse's Working Sets] feature. A good introduction to it can 
be
+found at a [Dzone article on Eclipse Working Sets].
+
+[Eclipse's Working Sets]: 
http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Fconcepts%2Fcworkset.htm
+[Dzone article on Eclipse Working Sets]: 
http://eclipse.dzone.com/articles/categorise-projects-package
+
+### Code Formatting
+
+Eclipse code formatting and (basic) project configuration files can be found at
+the ```etc/``` folder. You should manually copy them _after importing all your
+projects_:
+
+```
+for settings_dir in `find . -type d -name .settings`; do
+   \cp -v etc/org.eclipse.jdt.* $settings_dir
+done
+```
+
+Do not use the [maven-eclipse-plugin] to copy the files as it conflicts with 
[m2e].
+
+[maven-eclipse-plugin]: https://maven.apache.org/plugins/maven-eclipse-plugin/
+[m2e]: http://eclipse.org/m2e/
+
+## GitHub procedures
+
+The best way to submit changes to HornetQ is through pull requests on
+GitHub. After review a pull request should either get merged or be
+rejected.
+
+When a pull request needs to be reworked, say you have missed
+something, the pull request is then closed. When you finished
+addressing the required changes you should reopen your original pull
+request and it will then be re-evaluated. At that point if the request
+is approved we will then merge it.
+
+Make sure you always rebase your branch on master before submitting pull 
requests.

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/RELEASING.md
----------------------------------------------------------------------
diff --git a/RELEASING.md b/RELEASING.md
new file mode 100644
index 0000000..1f83987
--- /dev/null
+++ b/RELEASING.md
@@ -0,0 +1,61 @@
+# A check list of things to be done before a release. #
+
+Things to do before issuing a new MAJOR release:
+
+* check if all new Configuration parameters are documented;
+
+* use your IDE to regenerate equals/hashCode for ConfigurationImpl (this
+  is just much safer than trying to inspect the code).
+
+* check if all public API classes have a proper Javadoc.
+
+
+## Tagging a release in Git ##
+
+We must avoid having multiple commits with the same final release version in 
the POMs. To achieve that, the commit changing the pom versions to the final 
release version, should be merged together with a second commit changing to 
version in all pom's to ``X.Y.Z-SNAPSHOT``.
+
+Assuming current version is ``X.Y.Z-SNAPSHOT``
+
+0. Update the release notes.
+1. Prepare a single commit changing all version tags in all pom's.
+2. tag this commit locally by 'git tag -a HornetQ_X_Y_Z_Final -m "release for 
x.y.z.Final' or what ever the version is
+3. remember to update the version in the main pom, think of a cool name if you 
can
+4. update the hornetq-maven-plugin plugin in the main pom to one that is 
released, if needed release a new version of the plugin.
+5. Either use ``git revert`` to create a new commit reverting the commit with 
the version changes. Or change again all versions to ``R.S.T-SNAPSHOT``.
+6. push both commits with version changes together, including them in the same 
_pull-request_.
+7. push the committed tag upstream 'git push upstream HornetQ_X_Y_Z_Final'
+8. download and unpack the tag from github
+9. firstly upload the maven artifacts to the staged repository 'mvn 
-Pmaven-release deploy' (you will need the repository details in your 
settings.xml'
+10. go to nexus (https://repository.jboss.org/nexus/index.html), log in, 
select staging repositories, select the staging profile that you uploaded and 
close it.
+11. build the standalone release 'mvn -Prelease package' to build the zip and 
tar.gz
+
+testing the standalone release (this should be done on windows as well as 
linux if possible)
+
+1. unpack the zip or tar.gz
+2. start and stop the server (run.sh and stop.sh) for each configuration
+3. run the jms examples (follow the instructions under 
examples/jms/README.md), if you have a failure (memory etc) you can use mvn -rf 
to restart
+4. run the javaee examples (follow instructions under 
examples/javaee/README.md)
+5. check the manuals have been created properly
+6. check the javadocs are created correctly (including the diagrams)
+
+testing the release for AS7
+
+1. update the hornetq version in you local AS7 clone (there may be integration 
work you may have to include that is in the hornetq AS7 clone)
+2. commit this and push to your repo
+3. go to 
http://lightning.mw.lab.eng.bos.redhat.com/jenkins/job/as7-param-all-tests/ and 
run against your repo (using the staged repo).
+4. go to http://lightning.mw.lab.eng.bos.redhat.com/jenkins/job/tck6-as7-jms/ 
and run against your repo (using the staged repo). (note this takes 5 hours)
+
+If everything is ok then release by:
+
+1. Upload the binaries and docs to jboss.org (instructions can be found at 
https://mojo.redhat.com/docs/DOC-81955)
+2. go to https://www.jboss.org/author/.magnolia/pages/adminCentral.html and 
update the download/docs pages and add a release announcement if needed.
+3. when you are happy activate the changes
+4. go to nexus and release the maven artifacts from the staging repository
+5. do announcements twitter/blog
+
+if there is a problem
+
+1. delete the tag locally 'git tag -d HornetQ_X_Y_Z_Final"
+2. delete the tag remotely 'git push origin :refs/tags/HornetQ_X_Y_Z_Final"
+3. go to nexus and drop the profile
+4. fix what's broken and start again

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/distribution/hornetq/pom.xml
----------------------------------------------------------------------
diff --git a/distribution/hornetq/pom.xml b/distribution/hornetq/pom.xml
new file mode 100644
index 0000000..644b6b4
--- /dev/null
+++ b/distribution/hornetq/pom.xml
@@ -0,0 +1,186 @@
+<!--
+  ~ 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 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.hornetq</groupId>
+      <artifactId>hornetq-distribution</artifactId>
+      <version>2.5.0-SNAPSHOT</version>
+   </parent>
+
+   <artifactId>hornetq</artifactId>
+   <packaging>pom</packaging>
+   <name>Actual HornetQ Distribution</name>
+
+   <properties>
+      
<schemaLocation>${project.build.directory}/${project.artifactId}-${project.version}-bin/${project.artifactId}-${project.version}/schema</schemaLocation>
+      <standalone>src/main/resources/config/stand-alone</standalone>
+      <as6>src/main/resources/config/jboss-as-6</as6>
+   </properties>
+
+   <dependencies>
+      <dependency>
+         <groupId>org.hornetq</groupId>
+         <artifactId>hornetq-core-client</artifactId>
+         <version>${project.version}</version>
+      </dependency>
+       <dependency>
+           <groupId>org.hornetq</groupId>
+           <artifactId>hornetq-amqp-protocol</artifactId>
+           <version>${project.version}</version>
+       </dependency>
+       <dependency>
+           <groupId>org.hornetq</groupId>
+           <artifactId>hornetq-stomp-protocol</artifactId>
+           <version>${project.version}</version>
+       </dependency>
+       <dependency>
+           <groupId>org.apache.qpid</groupId>
+           <artifactId>proton-api</artifactId>
+       </dependency>
+       <dependency>
+           <groupId>org.apache.qpid</groupId>
+           <artifactId>proton-j-impl</artifactId>
+       </dependency>
+       <dependency>
+           <groupId>org.apache.qpid</groupId>
+           <artifactId>proton-jms</artifactId>
+       </dependency>
+   </dependencies>
+
+   <build>
+      <resources>
+         <resource>
+            <directory>src/main/resources</directory>
+            <filtering>true</filtering>
+         </resource>
+      </resources>
+      <plugins>
+         <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-deploy-plugin</artifactId>
+            <configuration>
+               <skip>true</skip>
+            </configuration>
+         </plugin>
+         <plugin>
+            <artifactId>maven-assembly-plugin</artifactId>
+            <version>2.2</version>
+            <configuration>
+               <descriptor>src/main/assembly/dep.xml</descriptor>
+               <tarLongFileMode>gnu</tarLongFileMode>
+            </configuration>
+            <executions>
+               <execution>
+                  <phase>package</phase>
+                  <goals>
+                     <goal>single</goal>
+                  </goals>
+               </execution>
+            </executions>
+         </plugin>
+         <plugin>
+            <groupId>org.codehaus.mojo</groupId>
+            <artifactId>xml-maven-plugin</artifactId>
+            <executions>
+               <execution>
+                  <phase>package</phase>
+                  <goals>
+                     <goal>validate</goal>
+                  </goals>
+               </execution>
+            </executions>
+            <configuration>
+               <validationSets>
+                  <validationSet>
+                     <dir>${standalone}/clustered</dir>
+                     
<systemId>${schemaLocation}/hornetq-configuration.xsd</systemId>
+                     <includes>
+                        <include>hornetq-configuration.xml</include>
+                     </includes>
+                  </validationSet>
+                  <validationSet>
+                     <dir>${standalone}/non-clustered</dir>
+                     
<systemId>${schemaLocation}/hornetq-configuration.xsd</systemId>
+                     <includes>
+                        <include>hornetq-configuration.xml</include>
+                     </includes>
+                  </validationSet>
+                  <validationSet>
+                     <dir>${as6}/clustered</dir>
+                     
<systemId>${schemaLocation}/hornetq-configuration.xsd</systemId>
+                     <includes>
+                        <include>hornetq-configuration.xml</include>
+                     </includes>
+                  </validationSet>
+                  <validationSet>
+                     <dir>${as6}/non-clustered</dir>
+                     
<systemId>${schemaLocation}/hornetq-configuration.xsd</systemId>
+                     <includes>
+                        <include>hornetq-configuration.xml</include>
+                     </includes>
+                  </validationSet>
+                  <validationSet>
+                     <dir>${standalone}/clustered</dir>
+                     <systemId>${schemaLocation}/hornetq-jms.xsd</systemId>
+                     <includes>
+                        <include>hornetq-jms.xml</include>
+                     </includes>
+                  </validationSet>
+                  <validationSet>
+                     <dir>${standalone}/non-clustered</dir>
+                     <systemId>${schemaLocation}/hornetq-jms.xsd</systemId>
+                     <includes>
+                        <include>hornetq-jms.xml</include>
+                     </includes>
+                  </validationSet>
+                  <validationSet>
+                     <dir>${as6}/clustered</dir>
+                     <systemId>${schemaLocation}/hornetq-jms.xsd</systemId>
+                     <includes>
+                        <include>hornetq-jms.xml</include>
+                     </includes>
+                  </validationSet>
+                  <validationSet>
+                     <dir>${as6}/non-clustered</dir>
+                     <systemId>${schemaLocation}/hornetq-jms.xsd</systemId>
+                     <includes>
+                        <include>hornetq-jms.xml</include>
+                     </includes>
+                  </validationSet>
+                  <validationSet>
+                     <dir>${standalone}/clustered</dir>
+                     <systemId>${schemaLocation}/hornetq-users.xsd</systemId>
+                     <includes>
+                        <include>hornetq-users.xml</include>
+                     </includes>
+                  </validationSet>
+                  <validationSet>
+                     <dir>${standalone}/non-clustered</dir>
+                     <systemId>${schemaLocation}/hornetq-users.xsd</systemId>
+                     <includes>
+                        <include>hornetq-users.xml</include>
+                     </includes>
+                  </validationSet>
+               </validationSets>
+            </configuration>
+         </plugin>
+
+      </plugins>
+   </build>
+
+</project>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/distribution/hornetq/src/main/assembly/dep.xml
----------------------------------------------------------------------
diff --git a/distribution/hornetq/src/main/assembly/dep.xml 
b/distribution/hornetq/src/main/assembly/dep.xml
new file mode 100644
index 0000000..f2ee1d1
--- /dev/null
+++ b/distribution/hornetq/src/main/assembly/dep.xml
@@ -0,0 +1,508 @@
+<!--
+  ~ 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.
+  -->
+
+<assembly 
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+  
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2
 http://maven.apache.org/xsd/assembly-1.1.2.xsd";>
+
+  <id>bin</id>
+  <formats>
+    <format>dir</format>
+    <format>zip</format>
+    <format>tar.gz</format>
+  </formats>
+  <includeBaseDirectory>true</includeBaseDirectory>
+   <moduleSets>
+      <moduleSet>
+         <useAllReactorProjects>true</useAllReactorProjects>
+         <includes>
+            <include>org.hornetq:hornetq-commons</include>
+         </includes>
+         <binaries>
+            <includeDependencies>false</includeDependencies>
+            <outputDirectory>lib</outputDirectory>
+            <unpack>false</unpack>
+            
<outputFileNameMapping>${module.artifactId}.${module.extension}</outputFileNameMapping>
+         </binaries>
+      </moduleSet>
+      <moduleSet>
+         <useAllReactorProjects>true</useAllReactorProjects>
+         <includes>
+            <include>org.hornetq:hornetq-journal</include>
+         </includes>
+         <binaries>
+            <includeDependencies>false</includeDependencies>
+            <outputDirectory>lib</outputDirectory>
+            <unpack>false</unpack>
+            
<outputFileNameMapping>${module.artifactId}.${module.extension}</outputFileNameMapping>
+         </binaries>
+      </moduleSet>
+       <moduleSet>
+           <useAllReactorProjects>true</useAllReactorProjects>
+           <includes>
+               <include>org.hornetq:hornetq-native</include>
+           </includes>
+           <binaries>
+               <includeDependencies>false</includeDependencies>
+               <outputDirectory>lib</outputDirectory>
+               <unpack>false</unpack>
+               
<outputFileNameMapping>${module.artifactId}.${module.extension}</outputFileNameMapping>
+           </binaries>
+       </moduleSet>
+       <moduleSet>
+           <useAllReactorProjects>true</useAllReactorProjects>
+           <includes>
+               <include>org.hornetq:hornetq-tools</include>
+           </includes>
+           <binaries>
+               <includeDependencies>false</includeDependencies>
+               <outputDirectory>lib</outputDirectory>
+               <unpack>false</unpack>
+               
<outputFileNameMapping>${module.artifactId}.${module.extension}</outputFileNameMapping>
+           </binaries>
+       </moduleSet>
+      <moduleSet>
+         <useAllReactorProjects>true</useAllReactorProjects>
+         <includes>
+            <include>org.hornetq:hornetq-bootstrap</include>
+         </includes>
+         <binaries>
+            <includeDependencies>false</includeDependencies>
+            <outputDirectory>lib</outputDirectory>
+            <unpack>false</unpack>
+            
<outputFileNameMapping>${module.artifactId}.${module.extension}</outputFileNameMapping>
+         </binaries>
+      </moduleSet>
+      <moduleSet>
+         <useAllReactorProjects>true</useAllReactorProjects>
+         <includes>
+            <include>org.hornetq:hornetq-server</include>
+         </includes>
+         <binaries>
+            <includeDependencies>false</includeDependencies>
+            <outputDirectory></outputDirectory>
+            <unpack>true</unpack>
+            <unpackOptions>
+               <includes>
+                  <include>**/*.xsd</include>
+               </includes>
+            </unpackOptions>
+         </binaries>
+      </moduleSet>
+      <moduleSet>
+         <useAllReactorProjects>true</useAllReactorProjects>
+         <includes>
+            <include>org.hornetq:hornetq-native</include>
+         </includes>
+         <binaries>
+            <includeDependencies>false</includeDependencies>
+            <outputDirectory>bin</outputDirectory>
+            <unpack>true</unpack>
+            <unpackOptions>
+               <includes>
+                  <include>**/*.so</include>
+               </includes>
+            </unpackOptions>
+         </binaries>
+      </moduleSet>
+      <moduleSet>
+         <useAllReactorProjects>true</useAllReactorProjects>
+         <includes>
+            <include>org.hornetq:hornetq-core-client</include>
+         </includes>
+         <binaries>
+            <includeDependencies>false</includeDependencies>
+            <outputDirectory>lib</outputDirectory>
+            <unpack>false</unpack>
+            
<outputFileNameMapping>${module.artifactId}.${module.extension}</outputFileNameMapping>
+         </binaries>
+      </moduleSet>
+      <moduleSet>
+         <useAllReactorProjects>true</useAllReactorProjects>
+         <includes>
+            <include>org.hornetq:hornetq-server</include>
+         </includes>
+         <binaries>
+            <includeDependencies>false</includeDependencies>
+            <outputDirectory>lib</outputDirectory>
+            <unpack>false</unpack>
+            
<outputFileNameMapping>${module.artifactId}.${module.extension}</outputFileNameMapping>
+         </binaries>
+      </moduleSet>
+      <moduleSet>
+         <useAllReactorProjects>true</useAllReactorProjects>
+         <includes>
+            <include>org.hornetq:hornetq-jboss-as-integration</include>
+         </includes>
+         <binaries>
+            <includeDependencies>false</includeDependencies>
+            <outputDirectory>lib</outputDirectory>
+            <unpack>false</unpack>
+            
<outputFileNameMapping>${module.artifactId}.${module.extension}</outputFileNameMapping>
+         </binaries>
+      </moduleSet>
+      <moduleSet>
+         <useAllReactorProjects>true</useAllReactorProjects>
+         <includes>
+            <include>org.hornetq:hornetq-jms-client</include>
+         </includes>
+         <binaries>
+            <includeDependencies>false</includeDependencies>
+            <outputDirectory>lib</outputDirectory>
+            <unpack>false</unpack>
+            
<outputFileNameMapping>${module.artifactId}.${module.extension}</outputFileNameMapping>
+         </binaries>
+      </moduleSet>
+      <moduleSet>
+         <useAllReactorProjects>true</useAllReactorProjects>
+         <includes>
+            <include>org.hornetq:hornetq-jms-server</include>
+         </includes>
+         <binaries>
+            <includeDependencies>false</includeDependencies>
+            <outputDirectory>lib</outputDirectory>
+            <unpack>false</unpack>
+            
<outputFileNameMapping>${module.artifactId}.${module.extension}</outputFileNameMapping>
+         </binaries>
+      </moduleSet>
+      <moduleSet>
+         <useAllReactorProjects>true</useAllReactorProjects>
+         <includes>
+            <include>org.hornetq:hornetq-jms-server</include>
+         </includes>
+         <binaries>
+            <includeDependencies>false</includeDependencies>
+            <outputDirectory></outputDirectory>
+            <unpack>true</unpack>
+            <unpackOptions>
+               <includes>
+                  <include>**/*.xsd</include>
+               </includes>
+            </unpackOptions>
+         </binaries>
+      </moduleSet>
+      <moduleSet>
+         <useAllReactorProjects>true</useAllReactorProjects>
+         <includes>
+            <include>org.hornetq:hornetq-jms-client</include>
+         </includes>
+         <binaries>
+            <includeDependencies>false</includeDependencies>
+            <outputDirectory>lib</outputDirectory>
+            <unpack>false</unpack>
+            
<outputFileNameMapping>${module.artifactId}.${module.extension}</outputFileNameMapping>
+         </binaries>
+      </moduleSet>
+      <moduleSet>
+         <useAllReactorProjects>true</useAllReactorProjects>
+         <includes>
+            <include>org.hornetq:hornetq-ra</include>
+         </includes>
+         <binaries>
+            <includeDependencies>false</includeDependencies>
+            <outputDirectory>lib</outputDirectory>
+            <unpack>false</unpack>
+            
<outputFileNameMapping>${module.artifactId}.${module.extension}</outputFileNameMapping>
+         </binaries>
+      </moduleSet>
+      <moduleSet>
+         <useAllReactorProjects>true</useAllReactorProjects>
+         <includes>
+            <include>org.hornetq:hornetq-service-sar</include>
+         </includes>
+         <binaries>
+            <includeDependencies>false</includeDependencies>
+            <outputDirectory>lib</outputDirectory>
+            <unpack>false</unpack>
+            
<outputFileNameMapping>${module.artifactId}.${module.extension}</outputFileNameMapping>
+         </binaries>
+      </moduleSet>
+      <moduleSet>
+         <useAllReactorProjects>true</useAllReactorProjects>
+         <includes>
+            <include>org.hornetq:hornetq-spring-integration</include>
+         </includes>
+         <binaries>
+            <includeDependencies>false</includeDependencies>
+            <outputDirectory>lib</outputDirectory>
+            <unpack>false</unpack>
+            
<outputFileNameMapping>${module.artifactId}.${module.extension}</outputFileNameMapping>
+         </binaries>
+      </moduleSet>
+      <moduleSet>
+         <useAllReactorProjects>true</useAllReactorProjects>
+         <includes>
+            <include>org.hornetq:hornetq-twitter-integration</include>
+         </includes>
+         <binaries>
+            <includeDependencies>false</includeDependencies>
+            <outputDirectory>lib</outputDirectory>
+            <unpack>false</unpack>
+            
<outputFileNameMapping>${module.artifactId}.${module.extension}</outputFileNameMapping>
+         </binaries>
+      </moduleSet>
+      <moduleSet>
+         <useAllReactorProjects>true</useAllReactorProjects>
+         <includes>
+            <include>org.hornetq:hornetq-vertx-integration</include>
+         </includes>
+         <binaries>
+            <includeDependencies>false</includeDependencies>
+            <outputDirectory>lib</outputDirectory>
+            <unpack>false</unpack>
+            
<outputFileNameMapping>${module.artifactId}.${module.extension}</outputFileNameMapping>
+         </binaries>
+      </moduleSet>
+      <moduleSet>
+         <useAllReactorProjects>true</useAllReactorProjects>
+         <includes>
+            <include>org.hornetq.rest:hornetq-rest</include>
+         </includes>
+         <binaries>
+            <includeDependencies>false</includeDependencies>
+            <outputDirectory>lib</outputDirectory>
+            <unpack>false</unpack>
+            
<outputFileNameMapping>${module.artifactId}.${module.extension}</outputFileNameMapping>
+         </binaries>
+      </moduleSet>
+       <moduleSet>
+           <useAllReactorProjects>true</useAllReactorProjects>
+           <includes>
+               <include>org.hornetq:hornetq-amqp-protocol</include>
+           </includes>
+           <binaries>
+               <includeDependencies>false</includeDependencies>
+               <outputDirectory>lib</outputDirectory>
+               <unpack>false</unpack>
+               
<outputFileNameMapping>${module.artifactId}.${module.extension}</outputFileNameMapping>
+           </binaries>
+       </moduleSet>
+       <moduleSet>
+           <useAllReactorProjects>true</useAllReactorProjects>
+           <includes>
+               <include>org.hornetq:hornetq-aerogear-integration</include>
+           </includes>
+           <binaries>
+               <includeDependencies>false</includeDependencies>
+               <outputDirectory>lib</outputDirectory>
+               <unpack>false</unpack>
+               
<outputFileNameMapping>${module.artifactId}.${module.extension}</outputFileNameMapping>
+           </binaries>
+       </moduleSet>
+       <moduleSet>
+           <useAllReactorProjects>true</useAllReactorProjects>
+           <includes>
+               <include>org.hornetq:hornetq-stomp-protocol</include>
+           </includes>
+           <binaries>
+               <includeDependencies>false</includeDependencies>
+               <outputDirectory>lib</outputDirectory>
+               <unpack>false</unpack>
+               
<outputFileNameMapping>${module.artifactId}.${module.extension}</outputFileNameMapping>
+           </binaries>
+       </moduleSet>
+       <moduleSet>
+           <useAllReactorProjects>true</useAllReactorProjects>
+           <includes>
+               <include>org.hornetq:hornetq-selector</include>
+           </includes>
+           <binaries>
+               <includeDependencies>false</includeDependencies>
+               <outputDirectory>lib</outputDirectory>
+               <unpack>false</unpack>
+               
<outputFileNameMapping>${module.artifactId}.${module.extension}</outputFileNameMapping>
+           </binaries>
+       </moduleSet>
+      <moduleSet>
+         <useAllReactorProjects>true</useAllReactorProjects>
+         <includes>
+            <include>org.hornetq:jnp-client</include>
+         </includes>
+         <binaries>
+            <includeDependencies>false</includeDependencies>
+            <outputDirectory>lib</outputDirectory>
+            <unpack>false</unpack>
+            
<outputFileNameMapping>${module.artifactId}.${module.extension}</outputFileNameMapping>
+         </binaries>
+      </moduleSet>
+      <moduleSet>
+         <useAllReactorProjects>true</useAllReactorProjects>
+         <includes>
+            <include>org.hornetq:jboss-mc</include>
+         </includes>
+         <binaries>
+            <includeDependencies>false</includeDependencies>
+            <outputDirectory>lib</outputDirectory>
+            <unpack>false</unpack>
+            
<outputFileNameMapping>${module.artifactId}.${module.extension}</outputFileNameMapping>
+         </binaries>
+      </moduleSet>
+      <moduleSet>
+         <useAllReactorProjects>true</useAllReactorProjects>
+         <includes>
+            <include>org.hornetq:jboss-mc</include>
+         </includes>
+         <binaries>
+            <includeDependencies>false</includeDependencies>
+            <outputDirectory>lib</outputDirectory>
+            <unpack>false</unpack>
+            
<outputFileNameMapping>${module.artifactId}.${module.extension}</outputFileNameMapping>
+         </binaries>
+      </moduleSet>
+      <moduleSet>
+         <useAllReactorProjects>true</useAllReactorProjects>
+         <includes>
+            <include>org.hornetq:hornetq-core-client</include>
+         </includes>
+         <binaries>
+            <attachmentClassifier>javadoc</attachmentClassifier>
+            <includeDependencies>false</includeDependencies>
+            <outputDirectory>docs/api/hornetq-client</outputDirectory>
+         </binaries>
+      </moduleSet>
+      <moduleSet>
+         <useAllReactorProjects>true</useAllReactorProjects>
+         <includes>
+            <include>org.hornetq:hornetq-server</include>
+         </includes>
+         <binaries>
+            <attachmentClassifier>javadoc</attachmentClassifier>
+            <includeDependencies>false</includeDependencies>
+            <outputDirectory>docs/api/hornetq-server</outputDirectory>
+         </binaries>
+      </moduleSet>
+      <moduleSet>
+         <useAllReactorProjects>true</useAllReactorProjects>
+         <includes>
+            <include>org.hornetq:hornetq-jms-client</include>
+         </includes>
+         <binaries>
+            <attachmentClassifier>javadoc</attachmentClassifier>
+            <includeDependencies>false</includeDependencies>
+            <outputDirectory>docs/api/hornetq-jms-client</outputDirectory>
+         </binaries>
+      </moduleSet>
+      <moduleSet>
+         <useAllReactorProjects>true</useAllReactorProjects>
+         <includes>
+            <include>org.hornetq:hornetq-jms-server</include>
+         </includes>
+         <binaries>
+            <attachmentClassifier>javadoc</attachmentClassifier>
+            <includeDependencies>false</includeDependencies>
+            <outputDirectory>docs/api/hornetq-jms-server</outputDirectory>
+         </binaries>
+      </moduleSet>
+   </moduleSets>
+   <dependencySets>
+      <dependencySet>
+         <includes>
+            <include>org.jboss.spec.javax.jms:jboss-jms-api_2.0_spec</include>
+         </includes>
+         <outputDirectory>lib</outputDirectory>
+         <unpack>false</unpack>
+         <outputFileNameMapping>jboss-jms-api.jar</outputFileNameMapping>
+      </dependencySet>
+      <dependencySet>
+         <includes>
+            <include>org.jboss.naming:jnpserver</include>
+         </includes>
+         <outputDirectory>lib</outputDirectory>
+         <unpack>false</unpack>
+         <outputFileNameMapping>jnpserver.jar</outputFileNameMapping>
+      </dependencySet>
+      <dependencySet>
+         <includes>
+            <include>io.netty:netty-all</include>
+         </includes>
+         <outputDirectory>lib</outputDirectory>
+         <unpack>false</unpack>
+         <outputFileNameMapping>netty.jar</outputFileNameMapping>
+      </dependencySet>
+       <dependencySet>
+           <includes>
+               <include>org.apache.qpid:proton-api</include>
+           </includes>
+           <outputDirectory>lib</outputDirectory>
+           <unpack>false</unpack>
+           <outputFileNameMapping>proton-api.jar</outputFileNameMapping>
+       </dependencySet>
+       <dependencySet>
+           <includes>
+               <include>org.apache.qpid:proton-jms</include>
+           </includes>
+           <outputDirectory>lib</outputDirectory>
+           <unpack>false</unpack>
+           <outputFileNameMapping>proton-jms.jar</outputFileNameMapping>
+       </dependencySet>
+       <dependencySet>
+           <includes>
+               <include>org.apache.qpid:proton-j-impl</include>
+           </includes>
+           <outputDirectory>lib</outputDirectory>
+           <unpack>false</unpack>
+           <outputFileNameMapping>proton-j-impl.jar</outputFileNameMapping>
+       </dependencySet>
+   </dependencySets>
+  <fileSets>
+    <fileSet>
+      <directory>src/main/resources/config</directory>
+      <outputDirectory>config</outputDirectory>
+      <lineEnding>keep</lineEnding>
+      <excludes>
+         <exclude>**/trunk/**</exclude>
+         <exclude>*.properties</exclude>
+      </excludes>
+    </fileSet>
+    <fileSet>
+      <directory>src/main/resources/bin</directory>
+      <outputDirectory>bin</outputDirectory>
+      <lineEnding>keep</lineEnding>
+    </fileSet>
+    <fileSet>
+      <directory>src/main/resources/licenses</directory>
+      <outputDirectory>licenses</outputDirectory>
+      <lineEnding>keep</lineEnding>
+    </fileSet>
+    <fileSet>
+      <directory>src/main/resources/examples</directory>
+      <outputDirectory>examples</outputDirectory>
+      <lineEnding>keep</lineEnding>
+    </fileSet>
+    <fileSet>
+      <directory>../../examples</directory>
+      <outputDirectory>examples</outputDirectory>
+      <lineEnding>keep</lineEnding>
+      <excludes>
+         <exclude>**/target/**</exclude>
+         <exclude>**/**/*.iml</exclude>
+         <exclude>**/**/*.dat</exclude>
+      </excludes>
+    </fileSet>
+     <!--todo, this is crap, there must be better jdocbook assembly 
integration-->
+      <fileSet>
+         
<directory>../../docs/user-manual/target/docbook/publish/en</directory>
+         <outputDirectory>docs/user-manual</outputDirectory>
+         <lineEnding>keep</lineEnding>
+      </fileSet>
+      <fileSet>
+         
<directory>../../docs/quickstart-guide/target/docbook/publish/en</directory>
+         <outputDirectory>docs/quickstart-guide</outputDirectory>
+         <lineEnding>keep</lineEnding>
+      </fileSet>
+      <fileSet>
+         
<directory>../../docs/rest-manual/target/docbook/publish/en</directory>
+         <outputDirectory>docs/rest-manual</outputDirectory>
+         <lineEnding>keep</lineEnding>
+      </fileSet>
+  </fileSets>
+</assembly>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/distribution/hornetq/src/main/resources/bin/run.bat
----------------------------------------------------------------------
diff --git a/distribution/hornetq/src/main/resources/bin/run.bat 
b/distribution/hornetq/src/main/resources/bin/run.bat
new file mode 100644
index 0000000..0772410
--- /dev/null
+++ b/distribution/hornetq/src/main/resources/bin/run.bat
@@ -0,0 +1,21 @@
+@ echo off
+setlocal ENABLEDELAYEDEXPANSION
+set HORNETQ_HOME=..
+IF "a%1"== "a" ( 
+set CONFIG_DIR=%HORNETQ_HOME%\config\stand-alone\non-clustered
+) ELSE (
+SET CONFIG_DIR=%1
+)
+set CLASSPATH=%CONFIG_DIR%;%HORNETQ_HOME%\schemas\
+REM you can use the following line if you want to run with different ports
+REM set CLUSTER_PROPS="-Djnp.port=1099 -Djnp.rmiPort=1098 -Djnp.host=localhost 
-Dhornetq.remoting.netty.host=localhost -Dhornetq.remoting.netty.port=5445"
+set JVM_ARGS=%CLUSTER_PROPS% -XX:+UseParallelGC  -XX:+AggressiveOpts 
-XX:+UseFastAccessorMethods -Xms512M -Xmx1024M 
-Dhornetq.config.dir=%CONFIG_DIR% 
-Djava.util.logging.manager=org.jboss.logmanager.LogManager 
-Djava.util.logging.config.file=%CONFIG_DIR%\logging.properties 
-Djava.library.path=.
+REM export JVM_ARGS="-Xmx512M 
-Djava.util.logging.manager=org.jboss.logmanager.LogManager 
-Djava.util.logging.config.file=%CONFIG_DIR%\logging.properties 
-Dhornetq.config.dir=$CONFIG_DIR -Djava.library.path=. -Xdebug 
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"
+for /R ..\lib %%A in (*.jar) do (
+SET CLASSPATH=!CLASSPATH!;%%A
+)
+mkdir ..\logs
+echo 
***********************************************************************************
+echo "java %JVM_ARGS% -classpath %CLASSPATH% 
org.hornetq.integration.bootstrap.HornetQBootstrapServer hornetq-beans.xml"
+echo 
***********************************************************************************
+java %JVM_ARGS% -classpath "%CLASSPATH%" 
org.hornetq.integration.bootstrap.HornetQBootstrapServer hornetq-beans.xml

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/distribution/hornetq/src/main/resources/bin/run.sh
----------------------------------------------------------------------
diff --git a/distribution/hornetq/src/main/resources/bin/run.sh 
b/distribution/hornetq/src/main/resources/bin/run.sh
new file mode 100755
index 0000000..87e5aa8
--- /dev/null
+++ b/distribution/hornetq/src/main/resources/bin/run.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+#------------------------------------------------
+# Simple shell-script to run HornetQ standalone
+#------------------------------------------------
+
+export HORNETQ_HOME=..
+mkdir -p ../logs
+
+# By default, the server is started in the non-clustered standalone 
configuration
+
+if [ a"$1" = a ]; then 
CONFIG_DIR=$HORNETQ_HOME/config/stand-alone/non-clustered; else 
CONFIG_DIR="$1"; fi
+if [ a"$2" = a ]; then FILENAME=hornetq-beans.xml; else FILENAME="$2"; fi
+
+if [ ! -d $CONFIG_DIR ]; then
+    echo script needs to be run from the HORNETQ_HOME/bin directory >&2
+    exit 1
+fi
+
+RESOLVED_CONFIG_DIR=`cd "$CONFIG_DIR"; pwd`
+export CLASSPATH=$RESOLVED_CONFIG_DIR:$HORNETQ_HOME/schemas/
+
+# Use the following line to run with different ports
+#export CLUSTER_PROPS="-Djnp.port=1099 -Djnp.rmiPort=1098 -Djnp.host=localhost 
-Dhornetq.remoting.netty.host=localhost -Dhornetq.remoting.netty.port=5445"
+
+export JVM_ARGS="$CLUSTER_PROPS -XX:+UseParallelGC -XX:+AggressiveOpts 
-XX:+UseFastAccessorMethods -Xms512M -Xmx1024M 
-Dhornetq.config.dir=$RESOLVED_CONFIG_DIR 
-Djava.util.logging.manager=org.jboss.logmanager.LogManager 
-Dlogging.configuration=file://$RESOLVED_CONFIG_DIR/logging.properties 
-Djava.library.path=./lib/linux-i686:./lib/linux-x86_64"
+#export JVM_ARGS="-Xmx512M 
-Djava.util.logging.manager=org.jboss.logmanager.LogManager 
-Dlogging.configuration=$CONFIG_DIR/logging.properties 
-Dhornetq.config.dir=$CONFIG_DIR -Djava.library.path=. -Xdebug 
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"
+
+for i in `ls $HORNETQ_HOME/lib/*.jar`; do
+       CLASSPATH=$i:$CLASSPATH
+done
+
+echo 
"***********************************************************************************"
+echo "java $JVM_ARGS -classpath $CLASSPATH 
org.hornetq.integration.bootstrap.HornetQBootstrapServer $FILENAME"
+echo 
"***********************************************************************************"
+java $JVM_ARGS -classpath $CLASSPATH -Dcom.sun.management.jmxremote 
org.hornetq.integration.bootstrap.HornetQBootstrapServer $FILENAME

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/distribution/hornetq/src/main/resources/bin/stop.bat
----------------------------------------------------------------------
diff --git a/distribution/hornetq/src/main/resources/bin/stop.bat 
b/distribution/hornetq/src/main/resources/bin/stop.bat
new file mode 100644
index 0000000..4a1aa8e
--- /dev/null
+++ b/distribution/hornetq/src/main/resources/bin/stop.bat
@@ -0,0 +1,9 @@
+@ echo off
+setlocal ENABLEDELAYEDEXPANSION
+set HORNETQ_HOME=..
+IF "a%1"== "a" ( 
+set CONFIG_DIR=%HORNETQ_HOME%\config\stand-alone\non-clustered
+) ELSE (
+SET CONFIG_DIR=%1
+)
+dir >> %CONFIG_DIR%\STOP_ME
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/distribution/hornetq/src/main/resources/bin/stop.sh
----------------------------------------------------------------------
diff --git a/distribution/hornetq/src/main/resources/bin/stop.sh 
b/distribution/hornetq/src/main/resources/bin/stop.sh
new file mode 100755
index 0000000..9f55248
--- /dev/null
+++ b/distribution/hornetq/src/main/resources/bin/stop.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+export HORNETQ_HOME=..
+if [ a"$1" = a ]; then 
CONFIG_DIR=$HORNETQ_HOME/config/stand-alone/non-clustered; else 
CONFIG_DIR="$1"; fi
+touch $CONFIG_DIR/STOP_ME;
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/distribution/hornetq/src/main/resources/config/jboss-as-6/clustered/hornetq-configuration.xml
----------------------------------------------------------------------
diff --git 
a/distribution/hornetq/src/main/resources/config/jboss-as-6/clustered/hornetq-configuration.xml
 
b/distribution/hornetq/src/main/resources/config/jboss-as-6/clustered/hornetq-configuration.xml
new file mode 100644
index 0000000..fb54135
--- /dev/null
+++ 
b/distribution/hornetq/src/main/resources/config/jboss-as-6/clustered/hornetq-configuration.xml
@@ -0,0 +1,122 @@
+<!--
+  ~ 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">
+
+   <!--  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}/${hornetq.data.dir:hornetq}/bindings</bindings-directory>
+
+   
<journal-directory>${jboss.server.data.dir}/${hornetq.data.dir:hornetq}/journal</journal-directory>
+   
+   <journal-min-files>10</journal-min-files>
+
+   
<large-messages-directory>${jboss.server.data.dir}/${hornetq.data.dir:hornetq}/largemessages</large-messages-directory>
+
+   
<paging-directory>${jboss.server.data.dir}/${hornetq.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"/>
+         <param key="direct-deliver" value="false"/>
+      </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>netty</connector-ref>
+      </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>         
+         <connector-ref>netty</connector-ref>
+             <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>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/distribution/hornetq/src/main/resources/config/jboss-as-6/clustered/hornetq-jboss-beans.xml
----------------------------------------------------------------------
diff --git 
a/distribution/hornetq/src/main/resources/config/jboss-as-6/clustered/hornetq-jboss-beans.xml
 
b/distribution/hornetq/src/main/resources/config/jboss-as-6/clustered/hornetq-jboss-beans.xml
new file mode 100644
index 0000000..50768e0
--- /dev/null
+++ 
b/distribution/hornetq/src/main/resources/config/jboss-as-6/clustered/hornetq-jboss-beans.xml
@@ -0,0 +1,62 @@
+<?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">
+      <property 
name="configurationUrl">${jboss.server.home.url}/deploy/hornetq/hornetq-configuration.xml</property>
+   </bean>
+
+       <!-- The security manager -->
+   <bean name="HornetQSecurityManager" 
class="org.hornetq.integration.jboss.security.JBossASSecurityManager">
+      <start ignored="true"/>
+      <stop ignored="true"/>
+      <depends>JBossSecurityJNDIContextEstablishment</depends>
+      <property name="allowClientLogin">false</property>
+      <property name="authoriseOnClientLogin">false</property>
+   </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>
+
+   <!-- POJO which ensures HornetQ Resource Adapter is stopped before 
HornetQServer -->
+   <bean name="HornetQRAService" class="org.hornetq.ra.HornetQRAService">
+      <constructor>
+         <parameter>
+            <inject bean="MBeanServer"/>
+         </parameter>
+         
<parameter>jboss.jca:name='jms-ra.rar',service=RARDeployment</parameter>
+      </constructor>
+      <depends>HornetQServer</depends>
+   </bean>
+
+</deployment>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/distribution/hornetq/src/main/resources/config/jboss-as-6/clustered/hornetq-jms.xml
----------------------------------------------------------------------
diff --git 
a/distribution/hornetq/src/main/resources/config/jboss-as-6/clustered/hornetq-jms.xml
 
b/distribution/hornetq/src/main/resources/config/jboss-as-6/clustered/hornetq-jms.xml
new file mode 100644
index 0000000..8d4bd7a
--- /dev/null
+++ 
b/distribution/hornetq/src/main/resources/config/jboss-as-6/clustered/hornetq-jms.xml
@@ -0,0 +1,47 @@
+<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">
+      <xa>true</xa>
+      <connectors>
+         <connector-ref connector-name="netty"/>
+      </connectors>
+      <entries>
+         <entry name="/ConnectionFactory"/>
+         <entry name="/XAConnectionFactory"/>
+      </entries>
+   </connection-factory>
+   
+   <connection-factory name="NettyThroughputConnectionFactory">
+      <xa>true</xa>
+          <connectors>
+         <connector-ref connector-name="netty-throughput"/>
+          </connectors>
+               <entries>
+                       <entry name="/ThroughputConnectionFactory"/>
+                       <entry name="/XAThroughputConnectionFactory"/>
+               </entries>
+       </connection-factory>
+   
+   <connection-factory name="InVMConnectionFactory">
+      <xa>true</xa>
+      <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>
+

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/distribution/hornetq/src/main/resources/config/jboss-as-6/clustered/jms-ds.xml
----------------------------------------------------------------------
diff --git 
a/distribution/hornetq/src/main/resources/config/jboss-as-6/clustered/jms-ds.xml
 
b/distribution/hornetq/src/main/resources/config/jboss-as-6/clustered/jms-ds.xml
new file mode 100644
index 0000000..f387cf9
--- /dev/null
+++ 
b/distribution/hornetq/src/main/resources/config/jboss-as-6/clustered/jms-ds.xml
@@ -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>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>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/distribution/hornetq/src/main/resources/config/jboss-as-6/non-clustered/hornetq-configuration.xml
----------------------------------------------------------------------
diff --git 
a/distribution/hornetq/src/main/resources/config/jboss-as-6/non-clustered/hornetq-configuration.xml
 
b/distribution/hornetq/src/main/resources/config/jboss-as-6/non-clustered/hornetq-configuration.xml
new file mode 100644
index 0000000..a92796f
--- /dev/null
+++ 
b/distribution/hornetq/src/main/resources/config/jboss-as-6/non-clustered/hornetq-configuration.xml
@@ -0,0 +1,97 @@
+<!--
+  ~ 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">
+
+   <!--  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}/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"/>
+         <param key="direct-deliver" value="false"/>
+      </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>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/distribution/hornetq/src/main/resources/config/jboss-as-6/non-clustered/hornetq-jboss-beans.xml
----------------------------------------------------------------------
diff --git 
a/distribution/hornetq/src/main/resources/config/jboss-as-6/non-clustered/hornetq-jboss-beans.xml
 
b/distribution/hornetq/src/main/resources/config/jboss-as-6/non-clustered/hornetq-jboss-beans.xml
new file mode 100644
index 0000000..238792c
--- /dev/null
+++ 
b/distribution/hornetq/src/main/resources/config/jboss-as-6/non-clustered/hornetq-jboss-beans.xml
@@ -0,0 +1,61 @@
+<?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">
+      <property 
name="configurationUrl">${jboss.server.home.url}/deploy/hornetq/hornetq-configuration.xml</property>
+   </bean>
+
+       <!-- The security manager -->
+   <bean name="HornetQSecurityManager" 
class="org.hornetq.integration.jboss.security.JBossASSecurityManager">
+      <start ignored="true"/>
+      <stop ignored="true"/>
+      <depends>JBossSecurityJNDIContextEstablishment</depends>
+      <property name="allowClientLogin">false</property>
+      <property name="authoriseOnClientLogin">false</property>
+   </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>
+
+   <!-- POJO which ensures HornetQ Resource Adapter is stopped before 
HornetQServer -->
+   <bean name="HornetQRAService" class="org.hornetq.ra.HornetQRAService">
+      <constructor>
+         <parameter>
+            <inject bean="MBeanServer"/>
+         </parameter>
+         
<parameter>jboss.jca:name='jms-ra.rar',service=RARDeployment</parameter>
+      </constructor>
+      <depends>HornetQServer</depends>
+   </bean>
+</deployment>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/distribution/hornetq/src/main/resources/config/jboss-as-6/non-clustered/hornetq-jms.xml
----------------------------------------------------------------------
diff --git 
a/distribution/hornetq/src/main/resources/config/jboss-as-6/non-clustered/hornetq-jms.xml
 
b/distribution/hornetq/src/main/resources/config/jboss-as-6/non-clustered/hornetq-jms.xml
new file mode 100644
index 0000000..8fcc227
--- /dev/null
+++ 
b/distribution/hornetq/src/main/resources/config/jboss-as-6/non-clustered/hornetq-jms.xml
@@ -0,0 +1,46 @@
+<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">
+      <xa>true</xa>
+      <connectors>
+         <connector-ref connector-name="netty"/>
+      </connectors>
+      <entries>
+         <entry name="/ConnectionFactory"/>
+         <entry name="/XAConnectionFactory"/>
+      </entries>
+   </connection-factory>
+   
+   <connection-factory name="NettyThroughputConnectionFactory">
+      <xa>true</xa>
+          <connectors>
+         <connector-ref connector-name="netty-throughput"/>
+          </connectors>
+               <entries>
+                       <entry name="/ThroughputConnectionFactory"/>
+                       <entry name="/XAThroughputConnectionFactory"/>
+               </entries>
+       </connection-factory>
+   
+   <connection-factory name="InVMConnectionFactory">
+      <xa>true</xa>
+      <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>

Reply via email to