You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@tomee.apache.org by bu...@apache.org on 2013/05/17 09:15:06 UTC
svn commit: r862226 - in /websites/staging/tomee/trunk: cgi-bin/ content/
content/jms-resources-and-mdb-container.html
Author: buildbot
Date: Fri May 17 07:15:06 2013
New Revision: 862226
Log:
Staging update by buildbot for tomee
Modified:
websites/staging/tomee/trunk/cgi-bin/ (props changed)
websites/staging/tomee/trunk/content/ (props changed)
websites/staging/tomee/trunk/content/jms-resources-and-mdb-container.html
Propchange: websites/staging/tomee/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri May 17 07:15:06 2013
@@ -1 +1 @@
-1482826
+1483671
Propchange: websites/staging/tomee/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri May 17 07:15:06 2013
@@ -1 +1 @@
-1482826
+1483671
Modified: websites/staging/tomee/trunk/content/jms-resources-and-mdb-container.html
==============================================================================
--- websites/staging/tomee/trunk/content/jms-resources-and-mdb-container.html (original)
+++ websites/staging/tomee/trunk/content/jms-resources-and-mdb-container.html Fri May 17 07:15:06 2013
@@ -127,7 +127,7 @@
<h1>External ActiveMQ Broker</h1>
-<pre><code><openejb>
+<pre><code><tomee>
<Resource id="MyJmsResourceAdapter" type="ActiveMQResourceAdapter">
# Do not start the embedded ActiveMQ broker
BrokerXmlConfig =
@@ -144,7 +144,7 @@
<Resource id="FooQueue" type="javax.jms.Queue"/>
<Resource id="BarTopic" type="javax.jms.Topic"/>
-</openejb>
+</tomee>
</code></pre>
<p>The <code>ServerUrl</code> would be changed to point to the host and port of the
@@ -153,7 +153,7 @@ work, such as 'failover:'.</p>
<h1>Internal ActiveMQ Broker</h1>
-<pre><code><openejb>
+<pre><code><tomee>
<Resource id="MyJmsResourceAdapter" type="ActiveMQResourceAdapter">
BrokerXmlConfig = broker:(tcp://someHostName:61616)
ServerUrl = tcp://someHostName:61616
@@ -169,11 +169,32 @@ work, such as 'failover:'.</p>
<Resource id="FooQueue" type="javax.jms.Queue"/>
<Resource id="BarTopic" type="javax.jms.Topic"/>
-</openejb>
+</tomee>
</code></pre>
<p>The <code>BrokerXmlConfig</code> tells ActiveMQ to start on the tcp host/port <code>someHostName</code> and <code>61616</code></p>
+<h2>Internal ActiveMQ Broker with JDBC Persistence</h2>
+
+<p>Adding the <code>DataSource</code> property to your <code>ActiveMQResourceAdapter</code> config will automatically setup JDBC Persistence using the
+<code>org.apache.activemq.store.jdbc.JDBCPersistenceAdapter</code></p>
+
+<pre><code><tomee>
+ <Resource id="MyJmsResourceAdapter" type="ActiveMQResourceAdapter">
+ BrokerXmlConfig = broker:(tcp://someHostName:61616)
+ ServerUrl = tcp://someHostName:61616
+ DataSource = MyDataSource
+ </Resource>
+
+ <Resource id="MyDataSource" type="javax.sql.DataSource">
+ JdbcDriver = org.hsqldb.jdbcDriver.
+ JdbcUrl = jdbc:hsqldb:file:data/hsqldb/hsqldb.
+ UserName = sa
+ Password = foo
+ </Resource>
+</tomee>
+</code></pre>
+
<h1>Internal ActiveMQ Broker with activemq.xml</h1>
<p>The <code>activemq.xml</code> file format has a significant number of extra dependencies, such as Spring, and is therefore not included in the distribution by default.</p>
@@ -194,7 +215,7 @@ work, such as 'failover:'.</p>
<p>Then use the <code>xbean:file:</code> url prefix in the <code>BrokerXmlConfig</code> as shown belog.</p>
-<pre><code><openejb>
+<pre><code><tomee>
<Resource id="MyJmsResourceAdapter" type="ActiveMQResourceAdapter">
BrokerXmlConfig = xbean:file:conf/activemq.xml
ServerUrl = tcp://someHostName:61616
@@ -210,7 +231,7 @@ work, such as 'failover:'.</p>
<Resource id="FooQueue" type="javax.jms.Queue"/>
<Resource id="BarTopic" type="javax.jms.Topic"/>
-</openejb>
+</tomee>
</code></pre>
<p>Finally, restart the server.</p>