diff --git a/examples/jms/activemq-jms-examples-common/common.css b/examples/jms/activemq-jms-examples-common/common.css
new file mode 100644
index 0000000000..333ea01bfd
--- /dev/null
+++ b/examples/jms/activemq-jms-examples-common/common.css
@@ -0,0 +1,29 @@
+body {
+ background: url(images/hornetQ-banner_final.png) top left no-repeat;
+}
+
+h1 {
+ margin-top: 110px;
+ font-size: 250%;
+}
+
+code {
+ background-color: lightgrey;
+ color:#333;
+}
+
+pre {
+ background-color: lightgrey;
+ display:block;
+ overflow:auto;
+ border: dotted grey 1px;
+}
+
+abbr {
+ border-bottom: 1px dotted #333; cursor: help;
+}
+
+.missing-doc {
+ background-color: red;
+ border: dotted black 1px;
+}
diff --git a/examples/jms/activemq-jms-examples-common/config/logging.properties b/examples/jms/activemq-jms-examples-common/config/logging.properties
new file mode 100644
index 0000000000..890ffa686d
--- /dev/null
+++ b/examples/jms/activemq-jms-examples-common/config/logging.properties
@@ -0,0 +1,35 @@
+############################################################
+# Default Logging Configuration File
+#
+# You can use a different file by specifying a filename
+# with the java.util.logging.config.file system property.
+# For example java -Djava.util.logging.config.file=myfile
+############################################################
+
+############################################################
+# Global properties
+############################################################
+
+# "handlers" specifies a comma separated list of log Handler
+# classes. These handlers will be installed during VM startup.
+# Note that these classes must be on the system classpath.
+# By default we only configure a ConsoleHandler, which will only
+# show messages at the INFO and above levels.
+handlers=java.util.logging.ConsoleHandler
+#handlers=java.util.logging.ConsoleHandler,java.util.logging.FileHandler
+java.util.logging.ConsoleHandler.formatter=org.apache.activemq6.integration.logging.HornetQLoggerFormatter
+java.util.logging.FileHandler.level=INFO
+java.util.logging.FileHandler.formatter=org.apache.activemq6.integration.logging.HornetQLoggerFormatter
+java.util.logging.FileHandler.pattern=logs/hornetq.log
+# Default global logging level.
+# This specifies which kinds of events are logged across
+# all loggers. For any given facility this global level
+# can be overriden by a facility specific level
+# Note that the ConsoleHandler also has a separate level
+# setting to limit messages printed to the console.
+.level= INFO
+
+############################################################
+# Handler specific properties.
+# Describes specific configuration info for Handlers.
+############################################################
diff --git a/examples/jms/activemq-jms-examples-common/config/server.properties b/examples/jms/activemq-jms-examples-common/config/server.properties
new file mode 100644
index 0000000000..0388e87151
--- /dev/null
+++ b/examples/jms/activemq-jms-examples-common/config/server.properties
@@ -0,0 +1 @@
+server.args=-XX:+UseParallelGC -Xms256M -Xmx256M -XX:+AggressiveOpts -XX:+UseFastAccessorMethods -Dcom.sun.management.jmxremote -Djava.util.logging.config.file=${imported.basedir}/config/logging.properties -Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory -Djava.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
\ No newline at end of file
diff --git a/examples/jms/activemq-jms-examples-common/images/hornetQ-banner_final.png b/examples/jms/activemq-jms-examples-common/images/hornetQ-banner_final.png
new file mode 100644
index 0000000000..6388dff1f5
Binary files /dev/null and b/examples/jms/activemq-jms-examples-common/images/hornetQ-banner_final.png differ
diff --git a/examples/jms/activemq-jms-examples-common/pom.xml b/examples/jms/activemq-jms-examples-common/pom.xml
new file mode 100644
index 0000000000..9695225d83
--- /dev/null
+++ b/examples/jms/activemq-jms-examples-common/pom.xml
@@ -0,0 +1,37 @@
+
+ 4.0.0
+
+
+ org.apache.activemq.examples.jms
+ jms-examples
+ 6.0.0-SNAPSHOT
+
+
+ activemq-jms-examples-common
+ jar
+ ActiveMQ6 Examples common
+
+
+
+ org.jboss.spec.javax.jms
+ jboss-jms-api_2.0_spec
+
+
+ org.apache.activemq
+ activemq-commons
+ ${project.version}
+
+
+ org.apache.activemq
+ activemq-core-client
+ ${project.version}
+
+
+ org.apache.activemq
+ activemq-jms-client
+ ${project.version}
+
+
+
+
diff --git a/examples/jms/activemq-jms-examples-common/prettify.css b/examples/jms/activemq-jms-examples-common/prettify.css
new file mode 100755
index 0000000000..0f1ed75995
--- /dev/null
+++ b/examples/jms/activemq-jms-examples-common/prettify.css
@@ -0,0 +1 @@
+.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun{color:#660}.pln{color:#000}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec{color:#606}pre.prettyprint{padding:2px;border:1px solid #888}@media print{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun{color:#440}.pln{color:#000}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}
\ No newline at end of file
diff --git a/examples/jms/activemq-jms-examples-common/prettify.js b/examples/jms/activemq-jms-examples-common/prettify.js
new file mode 100755
index 0000000000..8fc4c93393
--- /dev/null
+++ b/examples/jms/activemq-jms-examples-common/prettify.js
@@ -0,0 +1,23 @@
+function H(){var x=navigator&&navigator.userAgent&&/\bMSIE 6\./.test(navigator.userAgent);H=function(){return x};return x}(function(){function x(b){b=b.split(/ /g);var a={};for(var c=b.length;--c>=0;){var d=b[c];if(d)a[d]=null}return a}var y="break continue do else for if return while ",U=y+"auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile ",D=U+"catch class delete false import new operator private protected public this throw true try ",
+I=D+"alignof align_union asm axiom bool concept concept_map const_cast constexpr decltype dynamic_cast explicit export friend inline late_check mutable namespace nullptr reinterpret_cast static_assert static_cast template typeid typename typeof using virtual wchar_t where ",J=D+"boolean byte extends final finally implements import instanceof null native package strictfp super synchronized throws transient ",V=J+"as base by checked decimal delegate descending event fixed foreach from group implicit in interface internal into is lock object out override orderby params readonly ref sbyte sealed stackalloc string select uint ulong unchecked unsafe ushort var ",
+K=D+"debugger eval export function get null set undefined var with Infinity NaN ",L="caller delete die do dump elsif eval exit foreach for goto if import last local my next no our print package redo require sub undef unless until use wantarray while BEGIN END ",M=y+"and as assert class def del elif except exec finally from global import in is lambda nonlocal not or pass print raise try with yield False True None ",N=y+"alias and begin case class def defined elsif end ensure false in module next nil not or redo rescue retry self super then true undef unless until when yield BEGIN END ",
+O=y+"case done elif esac eval fi function in local set then until ",W=I+V+K+L+M+N+O;function X(b){return b>="a"&&b<="z"||b>="A"&&b<="Z"}function u(b,a,c,d){b.unshift(c,d||0);try{a.splice.apply(a,b)}finally{b.splice(0,2)}}var Y=(function(){var b=["!","!=","!==","#","%","%=","&","&&","&&=","&=","(","*","*=","+=",",","-=","->","/","/=",":","::",";","<","<<","<<=","<=","=","==","===",">",">=",">>",">>=",">>>",">>>=","?","@","[","^","^=","^^","^^=","{","|","|=","||","||=","~","break","case","continue",
+"delete","do","else","finally","instanceof","return","throw","try","typeof"],a="(?:(?:(?:^|[^0-9.])\\.{1,3})|(?:(?:^|[^\\+])\\+)|(?:(?:^|[^\\-])-)";for(var c=0;c:&])/g,"\\$1")}a+="|^)\\s*$";return new RegExp(a)})(),P=/&/g,Q=//g,Z=/\"/g;function $(b){return b.replace(P,"&").replace(Q,"<").replace(R,">").replace(Z,""")}function E(b){return b.replace(P,"&").replace(Q,"<").replace(R,">")}var aa=
+/</g,ba=/>/g,ca=/'/g,da=/"/g,ea=/&/g,fa=/ /g;function ga(b){var a=b.indexOf("&");if(a<0)return b;for(--a;(a=b.indexOf("",a+1))>=0;){var c=b.indexOf(";",a);if(c>=0){var d=b.substring(a+3,c),g=10;if(d&&d.charAt(0)==="x"){d=d.substring(1);g=16}var e=parseInt(d,g);if(!isNaN(e))b=b.substring(0,a)+String.fromCharCode(e)+b.substring(c+1)}}return b.replace(aa,"<").replace(ba,">").replace(ca,"'").replace(da,'"').replace(ea,"&").replace(fa," ")}function S(b){return"XMP"===b.tagName}
+function z(b,a){switch(b.nodeType){case 1:var c=b.tagName.toLowerCase();a.push("<",c);for(var d=0;d");for(var e=b.firstChild;e;e=e.nextSibling)z(e,a);if(b.firstChild||!/^(?:br|link|img)$/.test(c))a.push("",c,">");break;case 2:a.push(b.name.toLowerCase(),'="',$(b.value),'"');break;case 3:case 4:a.push(E(b.nodeValue));break}}var F=null;function ha(b){if(null===F){var a=document.createElement("PRE");
+a.appendChild(document.createTextNode('\n'));F=!/=0;i-=" ".length)d.push(" ".substring(0,i));g=e+1;break;
+case "\n":a=0;break;default:++a}}if(!d)return c;d.push(c.substring(g));return d.join("")}}var ja=/(?:[^<]+|
+
+
+
+ HornetQ 2.0 Resource Adapter
+ HornetQ 2.0 Resource Adapter
+
+ Red Hat Middleware LLC
+ JMS 1.1 Server
+ 1.0
+
+
+
+Copyright 2009 Red Hat, Inc.
+ Red Hat licenses this file to you under the Apache License, version
+ 2.0 (the "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+ http://www.apache.org/licenses/LICENSE-2.0
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied. See the License for the specific language governing
+ permissions and limitations under the License.
+
+ true
+
+
+
+ org.apache.activemq6.ra.HornetQResourceAdapter
+
+
+ The transport type. Multiple connectors can be configured by using a comma separated list,
+ i.e. org.apache.activemq6.core.remoting.impl.invm.InVMConnectorFactory,org.apache.activemq6.core.remoting.impl.invm.InVMConnectorFactory.
+
+ ConnectorClassName
+ java.lang.String
+ org.apache.activemq6.core.remoting.impl.invm.InVMConnectorFactory
+
+
+ The transport configuration. These values must be in the form of key=val;key=val;,
+ if multiple connectors are used then each set must be separated by a comma i.e. host=host1;port=5445,host=host2;port=5446.
+ Each set of params maps to the connector classname specified.
+
+ ConnectionParameters
+ java.lang.String
+ server-id=0
+
+
+
+
+
+ org.apache.activemq6.ra.HornetQRAManagedConnectionFactory
+
+
+ The default session type
+ SessionDefaultType
+ java.lang.String
+ javax.jms.Queue
+
+
+ Try to obtain a lock within specified number of seconds; less than or equal to 0 disable this functionality
+ UseTryLock
+ java.lang.Integer
+ 0
+
+
+ org.apache.activemq6.ra.HornetQRAConnectionFactory
+ org.apache.activemq6.ra.HornetQRAConnectionFactoryImpl
+ javax.jms.Session
+ org.apache.activemq6.ra.HornetQRASession
+
+ XATransaction
+
+ BasicPassword
+ javax.resource.spi.security.PasswordCredential
+
+ false
+
+
+
+
+
+ javax.jms.MessageListener
+
+ org.apache.activemq6.ra.inflow.HornetQActivationSpec
+
+ destination
+
+
+
+
+
+
+
+