<h1>Java EE Resource Adapter Configuration Example</h1>
<p>This example demonstrates how to configure several properties on the HornetQ Resource Adapter. We setup two
WildFly. The enterprise application is being deployed in one application server while the MDBs and JMS
Connections are pointing to a remote server</p>
<p>This example is composed of two message-driven beans (MDB), MDBQueueA and MDBQueueB, and a stateless session
bean StatelessSender, and a main class MDBRemoteClientExample.<p>
<p>MDBRemoteClientExample will invoke the StatelessSender bean on the second server which will in turn send a
message to 2 queues on the first server which will then be consumed by each MDB.</p>
<p>MDBQueueA consumes the message locally.</p>
<p>MDBQueueB is on the second server who's JCA Adapter is configured to consume remotely from the first server</p>
<h2>WildFly configuration</h2>
<p>The example leverages the Arquillian framework to run multiple WildFly instances and deploy the MDBs and SLSB.</p>
<h2>Example step-by-step</h2>
<p><i>download WildFly 8.0.0.Final from <ahref="http://wildfly.org/downloads/">here</a> and install.</i></p>
<p><i>set the JBOSS_HOME property to point to the WildFly install directory</i></p>
<p><i>type <code>mvn verify</code> from the example directory to run</i></p>
<ol>
<li>First we need to get an initial context so we can look-up the EJB. This initial context will get it's properties from the jboss-ejb-client.properties.</li>