Modified: websites/production/activemq/content/inbound-communication.html
==============================================================================
--- websites/production/activemq/content/inbound-communication.html (original)
+++ websites/production/activemq/content/inbound-communication.html Sat Jun 27
21:23:55 2015
@@ -32,15 +32,6 @@
</style>
<![endif]-->
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css'
rel='stylesheet' type='text/css' />
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushXml.js'
type='text/javascript'></script>
-
- <script type="text/javascript">
- SyntaxHighlighter.defaults['toolbar'] = false;
- SyntaxHighlighter.all();
- </script>
<title>
Apache ActiveMQ ™ -- Inbound Communication
@@ -85,12 +76,12 @@
<h2
id="InboundCommunication-INLINEConfiguringanMDBtoreceivemessagesfromActiveMQ">Configuring
an MDB to receive messages from ActiveMQ</h2>
-<p>There are three MDBs declared in the <a shape="rect"
href="inbound-communication.data/ejb-jar.xml?version=3&modificationDate=1117021488000&api=v2">ejb-jar.xml</a>
deployment descriptor. For this example, I will be explaining how to
configure the <code>TopicDurableMDB</code> to be invoked by JBoss when a
message is received on an ActiveMQ Topic.</p>
+<p>There are three MDBs declared in the <a shape="rect"
href="inbound-communication.data/ejb-jar.xml?version=3&modificationDate=1117021488000&api=v2"
data-linked-resource-id="3249" data-linked-resource-version="3"
data-linked-resource-type="attachment"
data-linked-resource-default-alias="ejb-jar.xml" data-nice-type="XML File"
data-linked-resource-content-type="text/xml"
data-linked-resource-container-id="35943"
data-linked-resource-container-version="53">ejb-jar.xml</a> deployment
descriptor. For this example, I will be explaining how to configure the
<code>TopicDurableMDB</code> to be invoked by JBoss when a message is received
on an ActiveMQ Topic.</p>
<h3 id="InboundCommunication-TheBean">The Bean</h3>
-<p>In the <a shape="rect"
href="inbound-communication.data/ejb-jar.xml?version=3&modificationDate=1117021488000&api=v2">ejb-jar.xml</a>
deployment descriptor, the <code>TopicDurableMDB</code> is declared as
follows:</p>
+<p>In the <a shape="rect"
href="inbound-communication.data/ejb-jar.xml?version=3&modificationDate=1117021488000&api=v2"
data-linked-resource-id="3249" data-linked-resource-version="3"
data-linked-resource-type="attachment"
data-linked-resource-default-alias="ejb-jar.xml" data-nice-type="XML File"
data-linked-resource-content-type="text/xml"
data-linked-resource-container-id="35943"
data-linked-resource-container-version="53">ejb-jar.xml</a> deployment
descriptor, the <code>TopicDurableMDB</code> is declared as follows:</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader
panelHeader pdl" style="border-bottom-width: 1px;"><b>ejb-jar.xml</b></div><div
class="codeContent panelContent pdl">
-<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: xml; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
<message-driven>
...
<ejb-name>TopicDurableMDB</ejb-name>
@@ -117,7 +108,7 @@
<h3 id="InboundCommunication-TheConnector">The Connector</h3>
<p>The two <code>activation-config-properties</code> shown above link to the
following elements in the <a shape="rect" class="external-link"
href="http://activemq.codehaus.org/checkout/activemq/modules/ra/src/rar/META-INF/ra.xml"
rel="nofollow">ra.xml</a> file, which is contained within the <a shape="rect"
href="jboss-integration.html#JBossIntegration-rarfile">activemq-ra-1.2.rar</a>
file:</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader
panelHeader pdl" style="border-bottom-width: 1px;"><b>ra.xml</b></div><div
class="codeContent panelContent pdl">
-<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: xml; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
<inbound-resourceadapter>
...
<activationspec>
@@ -133,19 +124,19 @@
</inbound-resourceadapter>
]]></script>
</div></div>
-<p>In the <a shape="rect"
href="inbound-communication.data/ejb-jar.xml?version=3&modificationDate=1117021488000&api=v2">ejb-jar.xml</a>
file section shown above, the value of the <code>Destination</code> property
is set to <code>topic.testTopic</code>. This value is the physical name of the
ActiveMQ destination the <code>TopicDurableMDB</code> will be receiving
messages from and not a JNDI name. In other words, the value of the
<code>Destination</code> property has no meaning to JBoss. It is purely an
ActiveMQ setting. </p>
+<p>In the <a shape="rect"
href="inbound-communication.data/ejb-jar.xml?version=3&modificationDate=1117021488000&api=v2"
data-linked-resource-id="3249" data-linked-resource-version="3"
data-linked-resource-type="attachment"
data-linked-resource-default-alias="ejb-jar.xml" data-nice-type="XML File"
data-linked-resource-content-type="text/xml"
data-linked-resource-container-id="35943"
data-linked-resource-container-version="53">ejb-jar.xml</a> file section shown
above, the value of the <code>Destination</code> property is set to
<code>topic.testTopic</code>. This value is the physical name of the ActiveMQ
destination the <code>TopicDurableMDB</code> will be receiving messages from
and not a JNDI name. In other words, the value of the <code>Destination</code>
property has no meaning to JBoss. It is purely an ActiveMQ setting. </p>
<h3 id="InboundCommunication-TheGlue">The Glue</h3>
-<p>In JBoss, the thing which connects an inbound JMS destination to an MDB is
a JBoss container. To use ActiveMQ as the inbound message source for the
<code>TopicDurableMDB</code> we must configure a new JBoss container. We do
this in the <a shape="rect"
href="inbound-communication.data/jboss.xml?version=3&modificationDate=1117021488000&api=v2">jboss.xml</a>
file.</p>
+<p>In JBoss, the thing which connects an inbound JMS destination to an MDB is
a JBoss container. To use ActiveMQ as the inbound message source for the
<code>TopicDurableMDB</code> we must configure a new JBoss container. We do
this in the <a shape="rect"
href="inbound-communication.data/jboss.xml?version=3&modificationDate=1117021488000&api=v2"
data-linked-resource-id="3251" data-linked-resource-version="3"
data-linked-resource-type="attachment"
data-linked-resource-default-alias="jboss.xml" data-nice-type="XML File"
data-linked-resource-content-type="text/xml"
data-linked-resource-container-id="35943"
data-linked-resource-container-version="53">jboss.xml</a> file.</p>
-<p>Three things are needed in the <a shape="rect"
href="inbound-communication.data/jboss.xml?version=3&modificationDate=1117021488000&api=v2">jboss.xml</a>
file in order to tie an MDB to a connector. They are:</p>
+<p>Three things are needed in the <a shape="rect"
href="inbound-communication.data/jboss.xml?version=3&modificationDate=1117021488000&api=v2"
data-linked-resource-id="3251" data-linked-resource-version="3"
data-linked-resource-type="attachment"
data-linked-resource-default-alias="jboss.xml" data-nice-type="XML File"
data-linked-resource-content-type="text/xml"
data-linked-resource-container-id="35943"
data-linked-resource-container-version="53">jboss.xml</a> file in order to tie
an MDB to a connector. They are:</p>
<ol><li>Configure a new <code>invoker-proxy-binding</code> that declares
<code>JBossMessageEndpointFactory</code> as the
<code>proxy-factory</code></li><li>Configure a new MDB container which uses the
new <code>invoker-proxy-binding</code></li><li>Declare which MDBs should go
into the new container</li></ol>
<p>This first snippet configures a new <code>invoker-proxy-binding</code>:</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader
panelHeader pdl" style="border-bottom-width: 1px;"><b>jboss.xml –
invoker-proxy-binding</b></div><div class="codeContent panelContent pdl">
-<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: xml; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
<invoker-proxy-binding>
<name>activemq-message-driven-bean</name>
<invoker-mbean>default</invoker-mbean>
@@ -157,7 +148,7 @@
<p>This second snippet configures a new MDB container which uses the
<code>invoker-proxy-binding</code> configured above:</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader
panelHeader pdl" style="border-bottom-width: 1px;"><b>jboss.xml –
container-configuration</b></div><div class="codeContent panelContent pdl">
-<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: xml; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
<container-configuration>
<container-name>ActiveMQ Message Driven Bean</container-name>
<call-logging>false</call-logging>
@@ -169,7 +160,7 @@
<p>This third snippet links the <code>TopicDurableMDB</code> to the <a
shape="rect"
href="jboss-integration.html#JBossIntegration-rarfile">activemq-ra-1.2.rar</a>
connector and tells JBoss to put instances of <code>TopicDurableMDB</code> into
the new MDB container declared above:</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader
panelHeader pdl" style="border-bottom-width: 1px;"><b>jboss.xml –
TopicDurableMDB</b></div><div class="codeContent panelContent pdl">
-<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: xml; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
<message-driven>
<ejb-name>TopicDurableMDB</ejb-name>
<resource-adapter-name>activemq-ra-1.2-SNAPSHOT.rar</resource-adapter-name>
@@ -180,7 +171,7 @@
<p>The above examples highlight the key configuration settings needed to
enable MDBs deployed in JBoss to process messages from an ActiveMQ destination.
</p>
-<p>You can try the above example, plus a few more, by downloading the <a
shape="rect"
href="inbound-communication.data/activemq-jboss-test.zip?version=3&modificationDate=1117021355000&api=v2">activemq-jboss-test.zip</a>
file which contains the complete sample project.</p></div>
+<p>You can try the above example, plus a few more, by downloading the <a
shape="rect"
href="inbound-communication.data/activemq-jboss-test.zip?version=3&modificationDate=1117021355000&api=v2"
data-linked-resource-id="3278" data-linked-resource-version="3"
data-linked-resource-type="attachment"
data-linked-resource-default-alias="activemq-jboss-test.zip"
data-nice-type="Zip Archive"
data-linked-resource-content-type="application/zip"
data-linked-resource-container-id="35943"
data-linked-resource-container-version="53">activemq-jboss-test.zip</a> file
which contains the complete sample project.</p></div>
</td>
<td valign="top">
<div class="navigation">
Modified: websites/production/activemq/content/index.html
==============================================================================
--- websites/production/activemq/content/index.html (original)
+++ websites/production/activemq/content/index.html Sat Jun 27 21:23:55 2015
@@ -72,7 +72,7 @@
<tbody>
<tr>
<td valign="top" width="100%">
-<div class="wiki-content maincontent"><h3
id="Index-DownloadActiveMQ5.11.1Today!" style="text-align: center;"><a
shape="rect" href="download.html">Download ActiveMQ 5.11.1 Today!</a></h3><p
style="text-align: center;"><img class="confluence-embedded-image"
src="index.data/activemq-5.x-box-reflection.png"
data-image-src="/confluence/download/attachments/36041/activemq-5.x-box-reflection.png?version=1&modificationDate=1397503385000&api=v2"></p><p><a
shape="rect" class="external-link" href="http://activemq.apache.org/">Apache
ActiveMQ</a> ™ is the most popular and powerful open source messaging and
<a shape="rect" href="enterprise-integration-patterns.html">Integration
Patterns</a> server.</p><p>Apache ActiveMQ is fast, supports many <a
shape="rect" href="cross-language-clients.html">Cross Language Clients and
Protocols</a>, comes with easy to use <a shape="rect"
href="enterprise-integration-patterns.html">Enterprise Integration Patterns</a>
and many <a shape="rect" href=
"features.html">advanced features</a> while fully supporting <a shape="rect"
class="external-link" href="http://java.sun.com/products/jms/"
rel="nofollow">JMS 1.1</a> and J2EE 1.4. Apache ActiveMQ is released under the
<a shape="rect" class="external-link" href="http://www.apache.org/">Apache</a>
<a shape="rect" class="external-link"
href="http://www.apache.org/licenses/LICENSE-2.0.html">2.0
License</a></p><p>Grab yourself a <a shape="rect"
href="download.html">Download</a>, try our <a shape="rect"
href="getting-started.html">Getting Started Guide</a>, surf our <a shape="rect"
href="faq.html">FAQ</a> or start <a shape="rect"
href="contributing.html">Contributing</a> and join us on our <a shape="rect"
href="discussion-forums.html">Discussion Forums</a>.</p><h3
id="Index-Features">Features</h3><p></p><ul><li>Supports a variety of <a
shape="rect" href="cross-language-clients.html">Cross Language Clients and
Protocols</a> from Java, C, C++, C#, Ruby, Perl, Python, PHP<ul><li><a shape="r
ect" href="openwire.html">OpenWire</a> for high performance clients in Java,
C, C++, C#</li><li><a shape="rect" href="stomp.html">Stomp</a> support so that
clients can be written easily in C, Ruby, Perl, Python, PHP,
ActionScript/Flash, Smalltalk to talk to ActiveMQ as well as any other <a
shape="rect" class="external-link"
href="http://stomp.codehaus.org/StompConnect" rel="nofollow">popular Message
Broker</a></li><li><a shape="rect" href="amqp.html">AMQP</a> v1.0
support</li><li><a shape="rect" href="mqtt.html">MQTT</a> v3.1 support allowing
for connections in an IoT environment.</li></ul></li><li>full support for the
<a shape="rect" href="enterprise-integration-patterns.html">Enterprise
Integration Patterns</a> both in the JMS client and the Message
Broker</li><li>Supports many <a shape="rect" href="features.html">advanced
features</a> such as <a shape="rect" href="message-groups.html">Message
Groups</a>, <a shape="rect" href="virtual-destinations.html">Virtual
Destinations</a>, <
a shape="rect" href="wildcards.html">Wildcards</a> and <a shape="rect"
href="composite-destinations.html">Composite Destinations</a></li><li>Fully
supports JMS 1.1 and J2EE 1.4 with support for transient, persistent,
transactional and XA messaging</li><li><a shape="rect"
href="spring-support.html">Spring Support</a> so that ActiveMQ can be easily
embedded into Spring applications and configured using Spring's XML
configuration mechanism</li><li>Tested inside popular J2EE servers such as <a
shape="rect" class="external-link" href="http://tomee.apache.org/">TomEE</a>,
<a shape="rect" class="external-link"
href="http://geronimo.apache.org/">Geronimo</a>, JBoss, GlassFish and
WebLogic<ul><li>Includes <a shape="rect" href="resource-adapter.html">JCA 1.5
resource adaptors</a> for inbound & outbound messaging so that ActiveMQ
should auto-deploy in any J2EE 1.4 compliant server</li></ul></li><li>Supports
pluggable <a shape="rect" href="uri-protocols.html">transport protocols</a>
such as
<a shape="rect"
href="how-do-i-use-activemq-using-in-jvm-messaging.html">in-VM</a>, TCP, SSL,
NIO, UDP, multicast, JGroups and JXTA transports</li><li>Supports very fast <a
shape="rect" href="persistence.html">persistence</a> using JDBC along with a
high performance journal</li><li>Designed for high performance clustering,
client-server, peer based communication</li><li><a shape="rect"
href="rest.html">REST</a> API to provide technology agnostic and language
neutral web based API to messaging</li><li><a shape="rect"
href="ajax.html">Ajax</a> to support web streaming support to web browsers
using pure DHTML, allowing web browsers to be part of the messaging
fabric</li><li><a shape="rect" href="axis-and-cxf-support.html">CXF and Axis
Support</a> so that ActiveMQ can be easily dropped into either of these web
service stacks to provide reliable messaging</li><li>Can be used as an in
memory JMS provider, ideal for <a shape="rect"
href="how-to-unit-test-jms-code.html">unit testing JMS</a
></li></ul><h3 id="Index-News">News</h3><p>
+<div class="wiki-content maincontent"><h3
id="Index-DownloadActiveMQ5.11.1Today!" style="text-align: center;"><a
shape="rect" href="download.html">Download ActiveMQ 5.11.1 Today!</a></h3><p
style="text-align: center;"><span class="confluence-embedded-file-wrapper"><img
class="confluence-embedded-image"
src="index.data/activemq-5.x-box-reflection.png"
data-image-src="/confluence/download/attachments/36041/activemq-5.x-box-reflection.png?version=1&modificationDate=1397503385000&api=v2"
data-unresolved-comment-count="0" data-linked-resource-id="40894943"
data-linked-resource-version="1" data-linked-resource-type="attachment"
data-linked-resource-default-alias="activemq-5.x-box-reflection.png"
data-base-url="https://cwiki.apache.org/confluence"
data-linked-resource-content-type="image/png"
data-linked-resource-container-id="36041"
data-linked-resource-container-version="163"></span></p><p><a shape="rect"
class="external-link" href="http://activemq.apache.org/">Apache ActiveMQ</a
> ™ is the most popular and powerful open source messaging and <a
> shape="rect" href="enterprise-integration-patterns.html">Integration
> Patterns</a> server.</p><p>Apache ActiveMQ is fast, supports many <a
> shape="rect" href="cross-language-clients.html">Cross Language Clients and
> Protocols</a>, comes with easy to use <a shape="rect"
> href="enterprise-integration-patterns.html">Enterprise Integration
> Patterns</a> and many <a shape="rect" href="features.html">advanced
> features</a> while fully supporting <a shape="rect" class="external-link"
> href="http://java.sun.com/products/jms/" rel="nofollow">JMS 1.1</a> and J2EE
> 1.4. Apache ActiveMQ is released under the <a shape="rect"
> class="external-link" href="http://www.apache.org/">Apache</a> <a
> shape="rect" class="external-link"
> href="http://www.apache.org/licenses/LICENSE-2.0.html">2.0
> License</a></p><p>Grab yourself a <a shape="rect"
> href="download.html">Download</a>, try our <a shape="rect"
> href="getting-started.html">Getting Started
Guide</a>, surf our <a shape="rect" href="faq.html">FAQ</a> or start <a
shape="rect" href="contributing.html">Contributing</a> and join us on our <a
shape="rect" href="discussion-forums.html">Discussion Forums</a>.</p><h3
id="Index-Features">Features</h3><p></p><ul><li>Supports a variety of <a
shape="rect" href="cross-language-clients.html">Cross Language Clients and
Protocols</a> from Java, C, C++, C#, Ruby, Perl, Python, PHP<ul><li><a
shape="rect" href="openwire.html">OpenWire</a> for high performance clients in
Java, C, C++, C#</li><li><a shape="rect" href="stomp.html">Stomp</a> support so
that clients can be written easily in C, Ruby, Perl, Python, PHP,
ActionScript/Flash, Smalltalk to talk to ActiveMQ as well as any other <a
shape="rect" class="external-link"
href="http://stomp.codehaus.org/StompConnect" rel="nofollow">popular Message
Broker</a></li><li><a shape="rect" href="amqp.html">AMQP</a> v1.0
support</li><li><a shape="rect" href="mqtt.html">MQTT</a> v3.1 support allowing
for connections in an IoT environment.</li></ul></li><li>full support for the
<a shape="rect" href="enterprise-integration-patterns.html">Enterprise
Integration Patterns</a> both in the JMS client and the Message
Broker</li><li>Supports many <a shape="rect" href="features.html">advanced
features</a> such as <a shape="rect" href="message-groups.html">Message
Groups</a>, <a shape="rect" href="virtual-destinations.html">Virtual
Destinations</a>, <a shape="rect" href="wildcards.html">Wildcards</a> and <a
shape="rect" href="composite-destinations.html">Composite
Destinations</a></li><li>Fully supports JMS 1.1 and J2EE 1.4 with support for
transient, persistent, transactional and XA messaging</li><li><a shape="rect"
href="spring-support.html">Spring Support</a> so that ActiveMQ can be easily
embedded into Spring applications and configured using Spring's XML
configuration mechanism</li><li>Tested inside popular J2EE servers such as <a
shape="rect" class="external-link" href="http://tomee
.apache.org/">TomEE</a>, <a shape="rect" class="external-link"
href="http://geronimo.apache.org/">Geronimo</a>, JBoss, GlassFish and
WebLogic<ul><li>Includes <a shape="rect" href="resource-adapter.html">JCA 1.5
resource adaptors</a> for inbound & outbound messaging so that ActiveMQ
should auto-deploy in any J2EE 1.4 compliant server</li></ul></li><li>Supports
pluggable <a shape="rect" href="uri-protocols.html">transport protocols</a>
such as <a shape="rect"
href="how-do-i-use-activemq-using-in-jvm-messaging.html">in-VM</a>, TCP, SSL,
NIO, UDP, multicast, JGroups and JXTA transports</li><li>Supports very fast <a
shape="rect" href="persistence.html">persistence</a> using JDBC along with a
high performance journal</li><li>Designed for high performance clustering,
client-server, peer based communication</li><li><a shape="rect"
href="rest.html">REST</a> API to provide technology agnostic and language
neutral web based API to messaging</li><li><a shape="rect"
href="ajax.html">Ajax</a>
to support web streaming support to web browsers using pure DHTML, allowing
web browsers to be part of the messaging fabric</li><li><a shape="rect"
href="axis-and-cxf-support.html">CXF and Axis Support</a> so that ActiveMQ can
be easily dropped into either of these web service stacks to provide reliable
messaging</li><li>Can be used as an in memory JMS provider, ideal for <a
shape="rect" href="how-to-unit-test-jms-code.html">unit testing
JMS</a></li></ul><h3 id="Index-News">News</h3><p>
@@ -84,7 +84,7 @@
</a> </span>
<span class="blogHeading">
<a shape="rect" class="blogHeading"
href="2015/02/18/apache-activemq-5111-released.html">Apache ActiveMQ 5.11.1
Released</a>
- </span><div class="page-metadata not-personal"><a shape="rect"
class="url fn confluence-userlink" href=" /confluence/display/~artnaseef
">Arthur Naseef</a> posted on Feb 18, 2015</div>
+ </span><div class="page-metadata not-personal"> <a
shape="rect" class="url fn confluence-userlink" href="
/confluence/display/~artnaseef ">Arthur Naseef</a> posted on Feb 18, 2015</div>
</div>
@@ -104,7 +104,7 @@
</a> </span>
<span class="blogHeading">
<a shape="rect" class="blogHeading"
href="2015/02/18/apache-activemq-5102-released.html">Apache ActiveMQ 5.10.2
Released</a>
- </span><div class="page-metadata not-personal"><a shape="rect"
class="url fn confluence-userlink" href=" /confluence/display/~artnaseef
">Arthur Naseef</a> posted on Feb 18, 2015</div>
+ </span><div class="page-metadata not-personal"> <a
shape="rect" class="url fn confluence-userlink" href="
/confluence/display/~artnaseef ">Arthur Naseef</a> posted on Feb 18, 2015</div>
</div>
@@ -124,7 +124,7 @@
</a> </span>
<span class="blogHeading">
<a shape="rect" class="blogHeading"
href="/confluence/pages/viewpage.action?pageId=51808966">Apache ActiveMQ
5.11.0 Released</a>
- </span><div class="page-metadata not-personal"><a shape="rect"
class="url fn confluence-userlink" href=" /confluence/display/~gtully ">Gary
Tully</a> posted on Feb 04, 2015</div>
+ </span><div class="page-metadata not-personal"> <a
shape="rect" class="url fn confluence-userlink" href="
/confluence/display/~gtully ">Gary Tully</a> posted on Feb 04, 2015</div>
</div>
@@ -144,7 +144,7 @@
</a> </span>
<span class="blogHeading">
<a shape="rect" class="blogHeading"
href="2015/01/22/apache-activemq-5101-released.html">Apache ActiveMQ 5.10.1
Released</a>
- </span><div class="page-metadata not-personal"><a shape="rect"
class="url fn confluence-userlink" href=" /confluence/display/~artnaseef
">Arthur Naseef</a> posted on Jan 22, 2015</div>
+ </span><div class="page-metadata not-personal"> <a
shape="rect" class="url fn confluence-userlink" href="
/confluence/display/~artnaseef ">Arthur Naseef</a> posted on Jan 22, 2015</div>
</div>
@@ -164,7 +164,7 @@
</a> </span>
<span class="blogHeading">
<a shape="rect" class="blogHeading"
href="2014/07/18/activemq-cpp-v383-released.html">ActiveMQ-CPP v3.8.3
Released</a>
- </span><div class="page-metadata not-personal"><a shape="rect"
class="url fn confluence-userlink" href=" /confluence/display/~tabish121
">Timothy Bish</a> posted on Jul 18, 2014</div>
+ </span><div class="page-metadata not-personal"> <a
shape="rect" class="url fn confluence-userlink" href="
/confluence/display/~tabish121 ">Timothy Bish</a> posted on Jul 18, 2014</div>
</div>
Modified: websites/production/activemq/content/installation.html
==============================================================================
--- websites/production/activemq/content/installation.html (original)
+++ websites/production/activemq/content/installation.html Sat Jun 27 21:23:55
2015
@@ -32,15 +32,6 @@
</style>
<![endif]-->
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css'
rel='stylesheet' type='text/css' />
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script>
-
- <script type="text/javascript">
- SyntaxHighlighter.defaults['toolbar'] = false;
- SyntaxHighlighter.all();
- </script>
<title>
Apache ActiveMQ ™ -- Installation
@@ -89,7 +80,7 @@
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
cd bin
activemq
]]></script>
Modified:
websites/production/activemq/content/integrating-apache-activemq-with-glassfish.html
==============================================================================
---
websites/production/activemq/content/integrating-apache-activemq-with-glassfish.html
(original)
+++
websites/production/activemq/content/integrating-apache-activemq-with-glassfish.html
Sat Jun 27 21:23:55 2015
@@ -32,15 +32,6 @@
</style>
<![endif]-->
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css'
rel='stylesheet' type='text/css' />
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushBash.js'
type='text/javascript'></script>
-
- <script type="text/javascript">
- SyntaxHighlighter.defaults['toolbar'] = false;
- SyntaxHighlighter.all();
- </script>
<title>
Apache ActiveMQ ™ -- Integrating Apache ActiveMQ with Glassfish
@@ -82,22 +73,22 @@
<tr>
<td valign="top" width="100%">
<div class="wiki-content maincontent"><h1
id="IntegratingApacheActiveMQwithGlassfish-General">General</h1><p>See this
article for a description of how to connect Glassfish 3 to an ActiveMQ 5
broker, and consume messages using a Message Driven Bean: <a shape="rect"
class="external-link"
href="http://geertschuring.wordpress.com/2012/04/20/how-to-connect-glassfish-3-to-activemq-5/"
rel="nofollow">http://geertschuring.wordpress.com/2012/04/20/how-to-connect-glassfish-3-to-activemq-5/</a></p><h1
id="IntegratingApacheActiveMQwithGlassfish-Glassfish4.1">Glassfish
4.1</h1><p> </p><ol><li>Add resource adapter<br
clear="none"><ol><li>Download the resource-adapter file suitable to your broker
version:<br clear="none"><a shape="rect" class="external-link"
href="http://repo1.maven.org/maven2/org/apache/activemq/activemq-rar/"
rel="nofollow">http://repo1.maven.org/maven2/org/apache/activemq/activemq-rar/</a></li><li><p>Deploy
the  resource adapter with the name "activemq-rar"</p><div cl
ass="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: bash; gutter: false"
type="syntaxhighlighter"><![CDATA[bin/asadmin deploy --type rar --name
activemq-rar /tmp/activemq-rar-5.11.1.rar]]></script>
+<script class="brush: bash; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[bin/asadmin deploy --type rar --name
activemq-rar /tmp/activemq-rar-5.11.1.rar]]></script>
</div></div></li><li><p>Configure resource adapter <br clear="none">(Failover
Setup)</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
-<script class="theme: Default; brush: bash; gutter: false"
type="syntaxhighlighter"><![CDATA[bin/asadmin create-resource-adapter-config \
+<script class="brush: bash; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[bin/asadmin create-resource-adapter-config \
--property
ServerUrl='failover\:(tcp\://broker-c1.foobar.local\:61616,tcp\://broker-c2.foobar.local\:61616,tcp\://broker-c3.foobar.local\:61616)?initialReconnectDelay\=2000&jms.useCompression\=true':UserName='admin':Password='admin'
activemq-rar]]></script>
</div></div></li></ol></li><li><p> Create connector connection
pool</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
-<script class="theme: Default; brush: bash; gutter: false"
type="syntaxhighlighter"><![CDATA[bin/asadmin create-connector-connection-pool \
+<script class="brush: bash; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[bin/asadmin create-connector-connection-pool \
--raname activemq-rar \
--connectiondefinition javax.jms.ConnectionFactory \
--ping true --isconnectvalidatereq true \
jms/myConnectionPool]]></script>
</div></div></li><li><p>Create a connector resource (JNDI-Mapping for
connection pool)</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
-<script class="theme: Default; brush: bash; gutter: false"
type="syntaxhighlighter"><![CDATA[bin/asadmin create-connector-resource \
+<script class="brush: bash; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[bin/asadmin create-connector-resource \
--poolname jms/myConnectionPool \
jms/myConnectionFactory]]></script>
</div></div></li><li><p>Configure JNDI mapping for a queue</p><div class="code
panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="theme: Default; brush: bash; gutter: false"
type="syntaxhighlighter"><![CDATA[bin/asadmin create-admin-object \
+<script class="brush: bash; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[bin/asadmin create-admin-object \
--raname activemq-rar \
--restype javax.jms.Queue \
--property PhysicalName=MY.MAGIC.OUT \
Modified:
websites/production/activemq/content/integrating-apache-activemq-with-jboss.html
==============================================================================
---
websites/production/activemq/content/integrating-apache-activemq-with-jboss.html
(original)
+++
websites/production/activemq/content/integrating-apache-activemq-with-jboss.html
Sat Jun 27 21:23:55 2015
@@ -32,16 +32,6 @@
</style>
<![endif]-->
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css'
rel='stylesheet' type='text/css' />
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushXml.js'
type='text/javascript'></script>
-
- <script type="text/javascript">
- SyntaxHighlighter.defaults['toolbar'] = false;
- SyntaxHighlighter.all();
- </script>
<title>
Apache ActiveMQ ™ -- Integrating Apache ActiveMQ with JBoss
@@ -102,7 +92,7 @@
<p>The first step in this process is to install Java 1.5 and verify that it
runs correctly. Using the link above, find, download and install the correct
version of Java for your platform. Once Java is installed and in the PATH, test
it to see that it runs correctly using the following command:</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
$ java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
@@ -115,7 +105,7 @@ Java HotSpot(TM) Client VM (build 1.5.0_
<p>The second step is to install Apache Ant. Simply download it using the link
above, expand somewhere on your hard drive and place the <code>bin</code>
directory in the PATH. This will allow you to test it quickly using the
commands below:</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
$ ant -version
Apache Ant version 1.6.2 compiled on July 16 2004
]]></script>
@@ -126,7 +116,7 @@ Apache Ant version 1.6.2 compiled on Jul
<p>The third step in this process is to install JBoss and make sure it runs
correctly before installing and configuring ActiveMQ. Upon downloading
JBoss-4.0.4, expand it in a place where it can create a directory. Next, run
the server using the following commands:</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
$ cd jboss-4.0.4.GA
$ ./bin/run.sh -c default
=========================================================================
@@ -170,7 +160,7 @@ Started in 22s:238ms
<p>The fourth step is to prepare your environment for integrating ActiveMQ
with JBoss. If you haven't done so already, download Apache ActiveMQ using the
link above. As of the writing of this article, the latest released version is
4.0.2-RC4. Upon downloading this archive, expand it in a place where it can
create a directory, preferably in the same location where JBoss was expanded.
Verify that the ActiveMQ RAR file is included using the following commands:</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
$ cd ./incubator-activemq-4.0.2.tar.gz
$ jar tvf /opt/incubator-activemq-4.0.2/lib/optional/activemq-ra-4.0.2.rar
0 Mon Sep 25 19:00:50 MDT 2006 META-INF/
@@ -197,7 +187,7 @@ $ jar tvf /opt/incubator-activemq-4.0.2/
<p>Now go back to the JBoss installation and create a directory for ActiveMQ
in the JBoss deploy directory for the default JBoss context. Below are the
commands to achieve this task:</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
$ mkdir /opt/jboss-4.0.4.GA/server/default/deploy/activemq-ra.rar
$ cd /opt/jboss-4.0.4.GA/server/default/deploy/activemq-ra.rar
$ pwd
@@ -209,7 +199,7 @@ $ pwd
</div></div>
<p>Now expand the activemq-ra-4.0.2.rar into the current working directory:</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
jar xvf /opt/incubator-activemq-4.0.2/lib/optional/activemq-ra-4.0.2.rar
created: META-INF/
inflated: META-INF/MANIFEST.MF
@@ -233,7 +223,7 @@ jar xvf /opt/incubator-activemq-4.0.2/li
</div></div>
<p>Below is a quick listing of the contents of that directory:</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
$ ls -l
total 12848
drwxr-xr-x 6 bsnyder bsnyder 204 Oct 16 16:27 META-INF
@@ -256,7 +246,7 @@ drwxr-xr-x 6 bsnyder bsnyder 204
<p>The fifth step is to actually configure ActiveMQ for integration with
JBoss. Remember that you should be sitting in the following directory:</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
/opt/jboss-4.0.4.GA/server/default/deploy/activemq-ra.rar
]]></script>
</div></div>
@@ -282,7 +272,7 @@ drwxr-xr-x 6 bsnyder bsnyder 204
</div></div>
<p>Open the <code>META-INF/ra.xml</code> file and look for the following
section:</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader
panelHeader pdl" style="border-bottom-width:
1px;"><b>META-INF/ra.xml</b></div><div class="codeContent panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
<config-property>
<description>
The URL to the ActiveMQ server that you want this connection to connect
to. If using
@@ -297,7 +287,7 @@ drwxr-xr-x 6 bsnyder bsnyder 204
</div></div>
<p>The section above is used to tell the ActiveMQ RAR where ActiveMQ is
located. By default, the in-VM protocol is commented out in favor of the tcp
protocol. This will find ActiveMQ running on any interface on the localhost on
port 61616. It's ok to just leave this alone if you don't mind the inefficiency
of communicating within the JVM via TCP. However, it is recommended that
<code>vm://</code> transport be used for an embedded broker, so comment out the
<code>tcp://</code> transport and uncomment the <code>vm://</code> transport.
Below is an example of this:</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader
panelHeader pdl" style="border-bottom-width:
1px;"><b>META-INF/ra.xml</b></div><div class="codeContent panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
<config-property>
<description>
The URL to the ActiveMQ server that you want this connection to connect
to. If using
@@ -314,7 +304,7 @@ drwxr-xr-x 6 bsnyder bsnyder 204
<p>Now look further down the <code>META-INF/ra.xml</code> file and locate the
following section:</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader
panelHeader pdl" style="border-bottom-width:
1px;"><b>META-INF/ra.xml</b></div><div class="codeContent panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
<config-property>
<description>
Sets the XML configuration file used to configure the embedded ActiveMQ
broker via
@@ -336,7 +326,7 @@ drwxr-xr-x 6 bsnyder bsnyder 204
</div></div>
<p>The section above needs to be changed to uncomment the second to last line
and remove/replace the empty element that is above it. Below is an example of
how this should be changed:</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader
panelHeader pdl" style="border-bottom-width:
1px;"><b>META-INF/ra.xml</b></div><div class="codeContent panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
<config-property>
<description>
Sets the XML configuration file used to configure the embedded ActiveMQ
broker via
@@ -357,7 +347,7 @@ drwxr-xr-x 6 bsnyder bsnyder 204
<p>The <code>broker-config.xml</code> file <em>is</em> the ActiveMQ
configuration file. This is the file used to configure ActiveMQ. The default
contents of this file are usable, but should be customized to suit your
environment. There are several items of note about this configuration. The most
prominent sections to note in this file are the
<code><persistenceAdapter></code> element and the
<code><transportConnectors></code> and
<code><networkConnectors></code> elements as seen below:</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader
panelHeader pdl" style="border-bottom-width:
1px;"><b>broker-config.xml</b></div><div class="codeContent panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
<beans xmlns="http://activemq.org/config/1.0">
<broker useJmx="true">
@@ -390,19 +380,19 @@ drwxr-xr-x 6 bsnyder bsnyder 204
</div></div>
<p>The first change to this file is to add the brokerName attribute to the
broker element and provide a name:</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
<broker useJmx="true" brokerName="bruce.broker1">
]]></script>
</div></div>
<p>In addition, this same name is used further down the configuration to
provide a name for the <code><transportConnector></code> element:</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
<transportConnector name="bruce.broker1"
uri="tcp://localhost:61616"
discoveryUri="multicast://default"/>
]]></script>
</div></div>
<p>Now we'll tell ActiveMQ not to initialize JMX because we'll use the
existing one that JBoss has:</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: xml; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
<!-- put the following as the first child of the broker tag -->
<managementContext><!-- we'll use an existing one (JBoss) instead
of creating one -->
<managementContext createConnector="false"/>
@@ -411,7 +401,7 @@ drwxr-xr-x 6 bsnyder bsnyder 204
</div></div>
<p>The <code><persistenceAdapter></code> element should be reconfigured
to store its data in an appropriate place. On JBoss, that's most likely within
the "data" directory of the server configuration you're using. We're going to
set this dynamically using an XBean and Spring feature that allows us to inject
system properties values into the configuration. First this needs to be
enabled:</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: xml; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
<!-- put the following as the first child of the beans element -->
<bean xmlns=""
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
]]></script>
@@ -424,7 +414,7 @@ drwxr-xr-x 6 bsnyder bsnyder 204
</div></div>
<p>Now we just need to start up JBoss to assure that it comes up correctly
without error using the same commands we used previously to start JBoss:</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
$ cd jboss-4.0.4.GA
$ ./bin/run.sh -c default
=========================================================================
@@ -464,7 +454,7 @@ Started in 28s:576ms
<p>The sixth step is to configure JBoss to initialize and start ActiveMQ
whenever JBoss starts up. This is accomplished using an XML file that abides by
the <a shape="rect" class="external-link"
href="http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd" rel="nofollow">JBoss JCA
DTD</a> for data sources. Like most other Java application servers on the
market, the JBoss architecture uses the J2EE Connector Architecture to manage
connections of any kind including JDBC, JMS, etc. and the JBoss JCA DTD denotes
the allowed contents for creating an XML data source instance to configure
JBoss JCA. Below is an example XML data source instance for use with JBoss:</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader
panelHeader pdl" style="border-bottom-width:
1px;"><b>activemq-jms-ds.xml</b></div><div class="codeContent panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE connection-factories
@@ -526,7 +516,7 @@ Started in 28s:576ms
</div></div>
<p>This XML instance configures a JMS <code>QueueConnectionFactory</code> and
a JMS <code>TopicConnectionFactory</code> and makes them available via JNDI.
Also defined in this file are some {{AdminObject}}s which are used to specify a
topic and a queue. This file should be dropped into the JBoss deploy directory.
Its name (*-ds.xml) will cause it to be picked up by the JBoss deployer upon
startup. Speaking of which, once this file is in place, a quick smoke test can
be performed by simply starting up the JBoss server. Below is an example of the
output that should be seen:</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
=========================================================================
JBoss Bootstrap Environment
@@ -669,7 +659,7 @@ Started in 26s:398ms
<p>The seventh and final step is to perform a slightly more comprehensive
smoke test of the integration. This can be accomplished using Apache Ant via
the examples that come with the ActiveMQ binary distribution. An Ant build.xml
file is included which provides easy access to a simple consumer and a simple
producer. The producer will be used to send messages that are received by the
consumer. To proceed with this testing, just follow the steps below:</p>
<ol><li>In the first terminal, start up JBoss. The same startup script can be
used here as was used above.</li><li>In the second terminal, use the commands
below to run the ActiveMQ consumer:
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
$ cd /opt/incubator-activemq-4.0.2/examples #note in activemq v5 the
directory is just "example" not "examples"
$ ant consumer
Buildfile: build.xml
@@ -690,7 +680,7 @@ consumer:
]]></script>
</div></div></li><li>In the third terminal, use the commands below to run the
ActiveMQ producer:
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
$ cd /opt/incubator-activemq-4.0.2/examples
$ ant producer
Buildfile: build.xml
@@ -789,105 +779,108 @@ description: Time spent by a message bef
<div class="plugin_attachments_table_container">
<fieldset class="hidden">
<input type="hidden" class="plugin_attachments_macro_render_param"
name="pageId" value="67786">
- <input type="hidden" name="deleteConfirmMessage" value="Are you
sure you want to remove the attached file {0}?">
- <input type="hidden" name="i18n-notpermitted" value="You are not
permitted to perform this operation.">
+ <input type="hidden" name="deleteConfirmMessage" value="Are you
sure you want to send the attached file " _0="_0" to="to" the="the"
trash="trash" only="only" a="a" space="space" administrator="administrator"
can="can" undo="undo" this="this" action.="action.">
<input type="hidden"
name="outputType" value="display">
</fieldset>
-
-
+
+
+
+
+
+
-<table class="attachments aui"><thead><tr><th colspan="1" rowspan="1"
class="expand-column attachment-history"> </th><th colspan="1" rowspan="1"
class="filename-column"> <a shape="rect"
href="integrating-apache-activemq-with-jboss.html?sortBy=name">Name</a>
- </th><th colspan="1" rowspan="1"> <a shape="rect"
href="integrating-apache-activemq-with-jboss.html?sortBy=size">Size</a>
- </th><th colspan="1" rowspan="1">Creator</th><th colspan="1" rowspan="1">
<a shape="rect"
href="integrating-apache-activemq-with-jboss.html?sortBy=createddate">Creation
Date</a>
- </th><th colspan="1" rowspan="1" class="labels">Labels</th><th colspan="1"
rowspan="1" class="attachments-comment">Comment</th><th colspan="1"
rowspan="1"> </th></tr></thead><tbody><script type="text/x-template"
title="labels-dialog-div">
- <div id="labels-dialog">
- <div class="labels-editor">
- <form method="GET" action="" id="add-labels-form" class="aui">
- <div id="labelOperationErrorContainer">
- <span class="error"><span class="errorMessage"
id="labelOperationErrorMessage"></span></span>
- </div>
- <div id="label-input-fields">
- <input autocomplete="off" id="labelsString"
name="labelsString" value="" class="text">
- <input id="add-labels-editor-button" type="submit"
class="add-labels aui-button" value="Add">
- </div>
- <div id="labelsAutocompleteList" class="aui-dd-parent
resize-to-input" style="width: 417px"></div>
- <div id="dialog-label-list">
- <!-- DIV placeholder for labels list, is copied into in
labels-dialog.js -->
- </div>
- <div id="waitImageAndStatus">
- <img class="waiting" alt="Please wait"
src="/confluence/s/en_GB-1988229788/4109/76e0dbb30bc8580e459c201f3535d84f9283a9ac.1/_/images/icons/wait.gif">
- <span id="labelOperationStatus" class="smalltext"></span>
- </div>
- <div class="labels-tip"></div>
- </form>
- </div>
- <div style="display: none;">
- <div class="labels-section-content content-column"
- >
- <div class="labels-content">
-
- </div>
-</div> </div>
- </div>
-</script><tr class="attachment-row" id="attachment-5194"
data-attachment-filename="amq-spring-2.0.tgz" data-attachment-version="1"><td
colspan="1" rowspan="1" class="attachment-history">
- </td><td colspan="1" rowspan="1"
class="filename-column">
-
+
+
+
+<table class="attachments aui"><thead><tr><th colspan="1" rowspan="1"
class="expand-column attachment-summary-toggle"> </th><th colspan="1"
rowspan="1" class="filename-column"> <a shape="rect"
href="integrating-apache-activemq-with-jboss.html?sortBy=name&sortOrder=ascending">File</a>
+ </th><th colspan="1" rowspan="1" class="modified-column">
<span class="propersortedby $sortOrder"><a shape="rect"
href="integrating-apache-activemq-with-jboss.html?sortBy=date&sortOrder=descending">Modified</a></span>
+ </th></tr></thead><tbody><tr class="attachment-row"
id="attachment-59670763" data-attachment-id="59670763"
data-attachment-idx="1"><td colspan="1" rowspan="1"
class="attachment-summary-toggle">
+ <span class="icon icon-section-closed" title="Show more
info"></span>
+ </td><td colspan="1" rowspan="1" class="filename-column">
+
-<span class="icon icon-file-unknown" title="File">File</span>
<a shape="rect" class="filename"
href="integrating-apache-activemq-with-jboss.data/amq-spring-2.0.tgz?api=v2"
title="amq-spring-2.0.tgz" data-filename="amq-spring-2.0.tgz"
data-type="application/x-tar">
- amq-spring-2.0.tgz
- </a>
- </td><td colspan="1" rowspan="1" class="attachment-filesize">6.20
MB</td><td colspan="1" rowspan="1" class="attachment-creator"><a shape="rect"
class="url fn confluence-userlink" href=" /confluence/display/~bsnyder
">Bruce Snyder</a></td><td colspan="1" rowspan="1"
class="attachment-created">Oct 03, 2007</td><td colspan="1" rowspan="1"
class="labels"><div class="labels-section-content content-column"
entityid="5194" entitytype="attachment">
+<span class="icon icon-file-unknown" title="File">File</span>
<a shape="rect" class="filename"
href="integrating-apache-activemq-with-jboss.data/amq-spring-1.2.6.tgz?api=v2"
title="Download" data-filename="amq-spring-1.2.6.tgz"
data-type="application/x-tar" data-linked-resource-container-id="67786">
+ amq-spring-1.2.6.tgz
+ </a>
+ </td><td colspan="1" rowspan="1"
class="attachment-created modified-column">
+ <span>Oct 03, 2007</span>
+ <span>by</span>
+ <a shape="rect" class="url fn confluence-userlink"
href=" /confluence/display/~bsnyder ">Bruce Snyder</a>
</td></tr><tr class="attachment-summary attachment-summary-59670763 hidden"
data-attachment-id="59670763"
data-attachment-filename="amq-spring-1.2.6.tgz"><td colspan="1" rowspan="1"
class="attachment-summary-toggle"></td><td colspan="2" rowspan="1"
class="attachment-details-wrapper">
+
+
+ <p class="attachment-labels">Labels</p>
+
+<div class="labels-section-content content-column" entityid="59670763"
entitytype="attachment">
<div class="labels-content">
-<ul class="label-list"><li class="no-labels-message-container">
- <span class="no-labels-message" id="labels-section-title-none">
+ <ul class="label-list has-pen"><li class="no-labels-message">
No labels
- </span>
- </li><li class="labels-edit-container"><a shape="rect"
class="show-labels-editor editor-icon" href="#" title="Edit Labels">
- <span class="icon icon-edit">Edit Labels</span>
- </a></li></ul>
+ </li><li class="labels-edit-container">
+ <a shape="rect" class="show-labels-editor" href="#" title="Edit
Labels">
+ <span class="aui-icon aui-icon-small
aui-iconfont-edit-small">Edit Labels</span>
+ </a>
+ </li></ul>
+
</div>
-</div></td><td colspan="1" rowspan="1" class="comment">
-  
- </td><td colspan="1" rowspan="1"
class="attachment-dropdown-actions">
- </td></tr><tr
class="attachment-row" id="attachment-5193"
data-attachment-filename="amq-spring-1.2.6.tgz" data-attachment-version="1"><td
colspan="1" rowspan="1" class="attachment-history">
- </td><td colspan="1" rowspan="1"
class="filename-column">
-
+</div>
+
+ <div
class="attachment-history-wrapper"></div>
+
+ <div class="attachment-buttons">
+ <a shape="rect"
class="aui-button previewAttachmentLink" data-filename="amq-spring-1.2.6.tgz"
data-file-src="/confluence/download/attachments/67786/amq-spring-1.2.6.tgz?api=v2"
data-linked-resource-default-alias="amq-spring-1.2.6.tgz"
data-mime-type="application/x-tar" data-linked-resource-container-id="67786"
data-linked-resource-id="59670763">Preview</a>
+
+ </div>
+ </td></tr><tr class="attachment-row"
id="attachment-59670764" data-attachment-id="59670764"
data-attachment-idx="2"><td colspan="1" rowspan="1"
class="attachment-summary-toggle">
+ <span class="icon icon-section-closed" title="Show more
info"></span>
+ </td><td colspan="1" rowspan="1" class="filename-column">
+
-<span class="icon icon-file-unknown" title="File">File</span>
<a shape="rect" class="filename"
href="integrating-apache-activemq-with-jboss.data/amq-spring-1.2.6.tgz?api=v2"
title="amq-spring-1.2.6.tgz" data-filename="amq-spring-1.2.6.tgz"
data-type="application/x-tar">
- amq-spring-1.2.6.tgz
- </a>
- </td><td colspan="1" rowspan="1" class="attachment-filesize">5.58
MB</td><td colspan="1" rowspan="1" class="attachment-creator"><a shape="rect"
class="url fn confluence-userlink" href=" /confluence/display/~bsnyder
">Bruce Snyder</a></td><td colspan="1" rowspan="1"
class="attachment-created">Oct 03, 2007</td><td colspan="1" rowspan="1"
class="labels"><div class="labels-section-content content-column"
entityid="5193" entitytype="attachment">
+<span class="icon icon-file-unknown" title="File">File</span>
<a shape="rect" class="filename"
href="integrating-apache-activemq-with-jboss.data/amq-spring-2.0.tgz?api=v2"
title="Download" data-filename="amq-spring-2.0.tgz"
data-type="application/x-tar" data-linked-resource-container-id="67786">
+ amq-spring-2.0.tgz
+ </a>
+ </td><td colspan="1" rowspan="1"
class="attachment-created modified-column">
+ <span>Oct 03, 2007</span>
+ <span>by</span>
+ <a shape="rect" class="url fn confluence-userlink"
href=" /confluence/display/~bsnyder ">Bruce Snyder</a>
</td></tr><tr class="attachment-summary attachment-summary-59670764 hidden"
data-attachment-id="59670764" data-attachment-filename="amq-spring-2.0.tgz"><td
colspan="1" rowspan="1" class="attachment-summary-toggle"></td><td colspan="2"
rowspan="1" class="attachment-details-wrapper">
+
+
+ <p class="attachment-labels">Labels</p>
+
+<div class="labels-section-content content-column" entityid="59670764"
entitytype="attachment">
<div class="labels-content">
-<ul class="label-list"><li class="no-labels-message-container">
- <span class="no-labels-message" id="labels-section-title-none">
+ <ul class="label-list has-pen"><li class="no-labels-message">
No labels
- </span>
- </li><li class="labels-edit-container"><a shape="rect"
class="show-labels-editor editor-icon" href="#" title="Edit Labels">
- <span class="icon icon-edit">Edit Labels</span>
- </a></li></ul>
+ </li><li class="labels-edit-container">
+ <a shape="rect" class="show-labels-editor" href="#" title="Edit
Labels">
+ <span class="aui-icon aui-icon-small
aui-iconfont-edit-small">Edit Labels</span>
+ </a>
+ </li></ul>
+
</div>
-</div></td><td colspan="1" rowspan="1" class="comment">
-  
- </td><td colspan="1" rowspan="1"
class="attachment-dropdown-actions">
-
</td></tr></tbody></table>
-
-<fieldset class="hiddenfieldset hidden">
- <input type="hidden" class="param" name="showActions" value="true">
-</fieldset>
+</div>
+ <div
class="attachment-history-wrapper"></div>
+
+ <div class="attachment-buttons">
+ <a shape="rect"
class="aui-button previewAttachmentLink" data-filename="amq-spring-2.0.tgz"
data-file-src="/confluence/download/attachments/67786/amq-spring-2.0.tgz?api=v2"
data-linked-resource-default-alias="amq-spring-2.0.tgz"
data-mime-type="application/x-tar" data-linked-resource-container-id="67786"
data-linked-resource-id="59670764">Preview</a>
+
+ </div>
+ </td></tr></tbody></table>
+ </div>
+ <div class="plugin_attachments_upload_container">
</div>
- <div class="plugin_attachments_upload_container">
- </div>
+ <div>
+ <a shape="rect" class="download-all-link"
href="/confluence/pages/downloadallattachments.action?pageId=67786"
title="Download all the latest versions of attachments on this page as single
zip file.">Download All</a>
+ </div>
</div>
</div>
</td>
Modified: websites/production/activemq/content/integration-tests.html
==============================================================================
--- websites/production/activemq/content/integration-tests.html (original)
+++ websites/production/activemq/content/integration-tests.html Sat Jun 27
21:23:55 2015
@@ -32,15 +32,6 @@
</style>
<![endif]-->
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css'
rel='stylesheet' type='text/css' />
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script>
-
- <script type="text/javascript">
- SyntaxHighlighter.defaults['toolbar'] = false;
- SyntaxHighlighter.all();
- </script>
<title>
Apache ActiveMQ ™ -- Integration Tests
@@ -94,7 +85,7 @@
<p>The ActiveMQ Resource Adapter allows a J2EE Application Server to provide
transaction management, connection pooling and security to ActiveMQ connection
when used by EJBs. The Resource Adapter is deployed in the client EAR that will
be using the ActiveMQ.</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
cd activemq-ra
maven rar:install-snapshot
]]></script>
@@ -107,7 +98,7 @@ maven rar:install-snapshot
<p>The Integration Test EJB module provides a set of EJBs that the tests are
run against.</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
cd systest/itests/ejb
maven
]]></script>
@@ -120,7 +111,7 @@ maven
<p>The EAR module packages up the Resource Adapter and the Integration Tests
EJBs into a deployable EAR.</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
cd systest/itests/ear
maven -Dgeronimo.home=geronimo-home
]]></script>
@@ -133,7 +124,7 @@ maven -Dgeronimo.home=geronimo-home
<p>In a seperate console, issue the following commands</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
cd geronimo-home
java -jar bin/server.jar org/activemq/ear/itest
]]></script>
@@ -146,7 +137,7 @@ java -jar bin/server.jar org/activemq/ea
<p>The following builds and runs the integration tests:</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
cd systest/itests/client
maven
]]></script>
Modified: websites/production/activemq/content/interceptors.html
==============================================================================
--- websites/production/activemq/content/interceptors.html (original)
+++ websites/production/activemq/content/interceptors.html Sat Jun 27 21:23:55
2015
@@ -32,16 +32,6 @@
</style>
<![endif]-->
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css'
rel='stylesheet' type='text/css' />
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushXml.js'
type='text/javascript'></script>
-
- <script type="text/javascript">
- SyntaxHighlighter.defaults['toolbar'] = false;
- SyntaxHighlighter.all();
- </script>
<title>
Apache ActiveMQ ™ -- Interceptors
@@ -83,7 +73,7 @@
<tr>
<td valign="top" width="100%">
<div class="wiki-content maincontent"><p>ActiveMQ has a sophisticated
<em>interceptor stack</em> so that you can attach whatever functionality you
require into the broker in an easy way without complicating all of the other
broker code. This has really helped us keep the code clean and modular while
offering powerful extension points.</p><p>For an example of the kinds of things
you can do with interceptors see the following pages</p><ul><li><a shape="rect"
href="logging-interceptor.html">Logging Interceptor</a></li><li><a shape="rect"
href="security.html">Security</a></li><li><a shape="rect"
href="visualisation.html">Visualisation</a></li><li><a shape="rect"
href="timestampplugin.html">TimeStamp on the Broker</a></li><li><a shape="rect"
href="statisticsplugin.html">Get Statistics via Messages</a></li><li><a
shape="rect" href="destinations-plugin.html">Destinations
Plugin</a></li></ul><h3 id="Interceptors-Howpluginswork">How plugins
work</h3><p>A plugin is an instance of the interfac
e <a shape="rect" class="external-link"
href="http://activemq.apache.org/maven/apidocs/org/apache/activemq/broker/BrokerPlugin.html">BrokerPlugin</a>
which allows a plugin to add itself into the broker interceptor chain,
typically using the <a shape="rect" class="external-link"
href="http://activemq.apache.org/maven/apidocs/org/apache/activemq/broker/BrokerFilter.html">BrokerFilter</a>
as a base class to allow only certain operations to be customized.</p><p>The
object that implements the BrokerPlugin interface is called out as a plugin in
the message broker's XML configuration file (see example below). Your plugin
can then optionally reference other beans that are defined in the XML
file.</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
-<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:amq="http://activemq.org/config/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
+<script class="brush: xml; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:amq="http://activemq.org/config/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://activemq.org/config/1.0
http://activemq.apache.org/schema/activemq-core.xsd
http://activemq.apache.org/camel/schema/spring
http://activemq.apache.org/camel/schema/spring/camel-spring.xsd">
@@ -117,7 +107,7 @@ http://activemq.apache.org/schema/active
]]></script>
</div></div><p>You can also define plugins from within the <plugin>
element as this example illustrates.</p><div class="code panel pdl"
style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:amq="http://activemq.org/config/1.0"
+<script class="brush: xml; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:amq="http://activemq.org/config/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://activemq.org/config/1.0
http://activemq.apache.org/schema/activemq-core.xsd
http://activemq.apache.org/camel/schema/spring
@@ -143,7 +133,7 @@ http://activemq.apache.org/camel/schema/
]]></script>
</div></div><p>At startup, the main or core broker calls your plugin's
installPlugin() method. This method creates and returns an object that
typically extends <a shape="rect" class="external-link"
href="http://activemq.apache.org/maven/apidocs/org/apache/activemq/broker/BrokerFilter.html">BrokerFilter</a>.</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[import org.apache.activemq.broker.Broker;
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[import org.apache.activemq.broker.Broker;
import org.apache.activemq.broker.BrokerPlugin;
public class MyPlugin implements BrokerPlugin {
@@ -155,7 +145,7 @@ public class MyPlugin implements BrokerP
}
]]></script>
</div></div><p>The BrokerFilter class is a convenience class that implements
the <a shape="rect" class="external-link"
href="http://activemq.apache.org/maven/apidocs/org/apache/activemq/broker/Broker.html">Broker</a>
interface. This interface defines all the main operations (e.g.,
addConnection, addSession, etc.) that your implementation can intercept. The
class that extends BrokerFilter overrides any of the methods that are defined
in the Broker interface so that it can intercept the corresponding core
engine's operations. Here's an example of a class that extends BrokerFilter and
intercepts/overrides the addConnection() and addSession() Broker
methods/operations.</p><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[import org.apache.activemq.broker.Broker;
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[import org.apache.activemq.broker.Broker;
import org.apache.activemq.broker.BrokerFilter;
import org.apache.activemq.broker.ConnectionContext;
import org.apache.activemq.command.ConnectionInfo;
Modified:
websites/production/activemq/content/ioexception-could-not-find-class-for-resource.html
==============================================================================
---
websites/production/activemq/content/ioexception-could-not-find-class-for-resource.html
(original)
+++
websites/production/activemq/content/ioexception-could-not-find-class-for-resource.html
Sat Jun 27 21:23:55 2015
@@ -32,15 +32,6 @@
</style>
<![endif]-->
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css'
rel='stylesheet' type='text/css' />
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script>
-
- <script type="text/javascript">
- SyntaxHighlighter.defaults['toolbar'] = false;
- SyntaxHighlighter.all();
- </script>
<title>
Apache ActiveMQ ™ -- IOException - could not find class for resource
@@ -83,7 +74,7 @@
<td valign="top" width="100%">
<div class="wiki-content maincontent"><p>If you get an exception looking like
this</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
Reason: java.io.exception : could not find class for resource:
META-INF/services/org/apache/activemq/transport/tcp
]]></script>
</div></div>
Modified: websites/production/activemq/content/java-service-wrapper.html
==============================================================================
--- websites/production/activemq/content/java-service-wrapper.html (original)
+++ websites/production/activemq/content/java-service-wrapper.html Sat Jun 27
21:23:55 2015
@@ -74,17 +74,10 @@
<td valign="top" width="100%">
<div class="wiki-content maincontent"><p>This page provides some useful
information on running the ActiveMQ broker as a windows-NT service or a daemon
thread in Linux or Unix systems.</p>
- <div class="aui-message problem shadowed information-macro">
- <p class="title">64bit 4gb memory limit</p>
- <span class="aui-icon icon-problem">Icon</span>
- <div class="message-content">
-
+<div class="confluence-information-macro
confluence-information-macro-warning"><p class="title">64bit 4gb memory
limit</p><span class="aui-icon aui-icon-small aui-iconfont-error
confluence-information-macro-icon"></span><div
class="confluence-information-macro-body">
<p>The ActiveMQ distribution uses an older and free community release of the
service wrapper library. This wrapper has a memory limit of 4gb when running on
64bit platforms. You can manually <a shape="rect" class="external-link"
href="http://wrapper.tanukisoftware.com/doc/english/download.jsp"
rel="nofollow">download a newer release</a> of the wrapper library that does
not have this limit, from the vendors website at. It us not possible for Apache
ActiveMQ to update and distribute a newer release of the service wrapper, as
the vendor changed licensing terms, which does not comply with ASF licensing
terms. Therefore out of the box the service wrapper is stuck on that older
release.</p>
-<p>However you can manually upgrade the library.</p>
- </div>
- </div>
-
+<p>However you can manually upgrade the library.</p></div></div>
<h3 id="JavaServiceWrapper-Windows-NTService">Windows-NT Service</h3>
Modified:
websites/production/activemq/content/javaioioexception-failed-to-create-database-derbydb-see-the-next-exception-for-details.html
==============================================================================
---
websites/production/activemq/content/javaioioexception-failed-to-create-database-derbydb-see-the-next-exception-for-details.html
(original)
+++
websites/production/activemq/content/javaioioexception-failed-to-create-database-derbydb-see-the-next-exception-for-details.html
Sat Jun 27 21:23:55 2015
@@ -32,15 +32,6 @@
</style>
<![endif]-->
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css'
rel='stylesheet' type='text/css' />
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script>
-
- <script type="text/javascript">
- SyntaxHighlighter.defaults['toolbar'] = false;
- SyntaxHighlighter.all();
- </script>
<title>
Apache ActiveMQ ™ -- java.io.IOException Failed to create database
'derbydb', see the next exception for details
@@ -84,7 +75,7 @@
<div class="wiki-content maincontent"><p>If you get an error like this</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
Jun 19, 2006 10:35:27 PM org.apache.activemq.broker.BrokerService getBroker
INFO: ActiveMQ 4.0 JMS Message Broker (localhost) is starting
Jun 19, 2006 10:35:27 PM org.apache.activemq.broker.BrokerService getBroker
@@ -153,7 +144,7 @@ org.apache.activemq.store.jdbc.Transacti
<p>Create a directory for the broker to write its files. e.g. in Java code
call <a shape="rect" class="external-link"
href="http://incubator.apache.org/activemq/maven/activemq-core/apidocs/org/apache/activemq/broker/BrokerService.html#setDataDirectory(java.io.File)">setDataDirectory</a></p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
File dir = new File("foo");
dir.mkdir();
broker.setDataDirectory(dir);
@@ -163,7 +154,7 @@ broker.setDataDirectory(dir);
<p>or in XML use</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
<broker dataDirectory="foo">...
]]></script>
</div></div>
Modified: websites/production/activemq/content/javalangnosuchmethoderror.html
==============================================================================
--- websites/production/activemq/content/javalangnosuchmethoderror.html
(original)
+++ websites/production/activemq/content/javalangnosuchmethoderror.html Sat Jun
27 21:23:55 2015
@@ -32,15 +32,6 @@
</style>
<![endif]-->
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css'
rel='stylesheet' type='text/css' />
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script>
-
- <script type="text/javascript">
- SyntaxHighlighter.defaults['toolbar'] = false;
- SyntaxHighlighter.all();
- </script>
<title>
Apache ActiveMQ ™ -- java.lang.NoSuchMethodError
@@ -84,7 +75,7 @@
<div class="wiki-content maincontent"><p>If you get an error like</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
java.lang.NoSuchMethodError:
javax.jms.Session.createConsumer(Ljavax/jms/Destination;)Ljavax/jms/MessageConsumer;
]]></script>
@@ -93,7 +84,7 @@ javax.jms.Session.createConsumer(Ljavax/
<p>or</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
java.lang.AbstractMethodError:
javax.jms.ConnectionFactory.createConnection()Ljavax/jms/Connection;
]]></script>
@@ -105,15 +96,8 @@ javax.jms.ConnectionFactory.createConnec
<p>Please add the JMS 1.1 jars to your container/classpath and try again. </p>
- <div class="aui-message warning shadowed information-macro">
- <p class="title">Add to the correct ClassPath</p>
- <span class="aui-icon icon-warning">Icon</span>
- <div class="message-content">
-
-<p>If the JMS 1.0.2b classes come from your application server you may need to
add the JMS 1.1 to your boot classpath to ensure that the JMS 1.1 classes take
precedence to the container supplied classes</p>
- </div>
- </div>
-
+<div class="confluence-information-macro confluence-information-macro-note"><p
class="title">Add to the correct ClassPath</p><span class="aui-icon
aui-icon-small aui-iconfont-warning
confluence-information-macro-icon"></span><div
class="confluence-information-macro-body">
+<p>If the JMS 1.0.2b classes come from your application server you may need to
add the JMS 1.1 to your boot classpath to ensure that the JMS 1.1 classes take
precedence to the container supplied classes</p></div></div>
<p>Note that to a user of the JMS API, JMS 1.1 is completely backwards
compatible. The only issue with upgrading to JMS 1.1 is that any JMS provider
which implements only JMS 1.0.2b and does not implement JMS 1.1 will not work;
however if you're using ActiveMQ you should be fine.</p>
Modified:
websites/production/activemq/content/javalangnosuchmethodexception-orgactivemqraactivemqresourceadaptersetuseembeddedbroker.html
==============================================================================
---
websites/production/activemq/content/javalangnosuchmethodexception-orgactivemqraactivemqresourceadaptersetuseembeddedbroker.html
(original)
+++
websites/production/activemq/content/javalangnosuchmethodexception-orgactivemqraactivemqresourceadaptersetuseembeddedbroker.html
Sat Jun 27 21:23:55 2015
@@ -32,15 +32,6 @@
</style>
<![endif]-->
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css'
rel='stylesheet' type='text/css' />
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script>
-
- <script type="text/javascript">
- SyntaxHighlighter.defaults['toolbar'] = false;
- SyntaxHighlighter.all();
- </script>
<title>
Apache ActiveMQ ™ -- java.lang.NoSuchMethodException
org.activemq.ra.ActiveMQResourceAdapter.setUseEmbeddedBroker
@@ -84,7 +75,7 @@
<div class="wiki-content maincontent"><p>If you get an error like this</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
2005-08-14 17:18:45,618 ERROR [org.jboss.resource.deployment.RARDeployment]
Starting failed
jboss.jca:service=RARDeployment,name='activemq-ra-3.0.rar'
org.jboss.deployment.DeploymentException: Error for resource adapter class