Propchange: incubator/activemq/site/jdbc-master-slave.data/MasterRestarted.pdf
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/activemq/site/jdbc-master-slave.data/MasterRestarted.png
URL:
http://svn.apache.org/viewvc/incubator/activemq/site/jdbc-master-slave.data/MasterRestarted.png?rev=429671&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/activemq/site/jdbc-master-slave.data/MasterRestarted.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/activemq/site/jdbc-master-slave.data/MasterRestarted.png.jpeg
URL:
http://svn.apache.org/viewvc/incubator/activemq/site/jdbc-master-slave.data/MasterRestarted.png.jpeg?rev=429671&view=auto
==============================================================================
Binary file - no diff available.
Propchange:
incubator/activemq/site/jdbc-master-slave.data/MasterRestarted.png.jpeg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/activemq/site/jdbc-master-slave.data/Startup.pdf
URL:
http://svn.apache.org/viewvc/incubator/activemq/site/jdbc-master-slave.data/Startup.pdf?rev=429671&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/activemq/site/jdbc-master-slave.data/Startup.pdf
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/activemq/site/jdbc-master-slave.data/Startup.png
URL:
http://svn.apache.org/viewvc/incubator/activemq/site/jdbc-master-slave.data/Startup.png?rev=429671&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/activemq/site/jdbc-master-slave.data/Startup.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/activemq/site/jdbc-master-slave.data/Startup.png.jpeg
URL:
http://svn.apache.org/viewvc/incubator/activemq/site/jdbc-master-slave.data/Startup.png.jpeg?rev=429671&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/activemq/site/jdbc-master-slave.data/Startup.png.jpeg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/activemq/site/jms-and-jdbc-operations-in-one-transaction.html
URL:
http://svn.apache.org/viewvc/incubator/activemq/site/jms-and-jdbc-operations-in-one-transaction.html?rev=429671&view=auto
==============================================================================
--- incubator/activemq/site/jms-and-jdbc-operations-in-one-transaction.html
(added)
+++ incubator/activemq/site/jms-and-jdbc-operations-in-one-transaction.html Tue
Aug 8 07:50:56 2006
@@ -0,0 +1,448 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
+<HTML>
+ <HEAD>
+<!--
+ Pier's plugin always overwrites the stylesheet so lets explicitly use
another one
+ <link type="text/css" rel="stylesheet"
href="autoexport:///ACTIVEMQ/resources/space.css">
+-->
+ <LINK type="text/css" rel="stylesheet" href="resources/site.css">
+ <SCRIPT src="resources/space.js" type="text/javascript"></SCRIPT>
+ <TITLE>
+JMS and JDBC operations in one transaction
+ </TITLE>
+ <META http-equiv="Content-Type" content="text/html;charset=UTF-8"></HEAD>
+ <BODY onload="init()">
+
+ <!-- Banner -->
+ <DIV id="site-banner">
+
+ <TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
+ <TR>
+ <TD align="left" class="topbardiv" nowrap="">
+ <IMG border="0"
src="http://incubator.apache.org/activemq/images/logo.gif">
+ </TD>
+ <TD align="right" nowrap="">
+ <IMG border="0"
src="http://incubator.apache.org/images/apache-incubator-logo.png">
+ </TD>
+ </TR>
+ </TABLE>
+
+ </DIV>
+
+ <!-- Bread crumbs and Quick Links -->
+ <DIV id="site-navbar">
+ <TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
+ <TR>
+ <TD align="left" valign="middle" nowrap="">
+ <DIV id="site-breadcrumbs">
+<A href="home.html" title="ActiveMQ">ActiveMQ</A> > <A href=""
title="JMS and JDBC operations in one transaction">JMS and JDBC operations in
one transaction</A>
+ </DIV>
+ </TD>
+ <TD align="right" valign="middle" nowrap="">
+ <DIV id="site-quicklinks">
+<P><A href="download.html" title="Download">Download</A> | <SPAN
class="nobr"><A
href="http://incubator.apache.org/activemq/maven/activemq-core/apidocs/"
title="Visit page outside Confluence" rel="nofollow">JavaDocs<SUP><IMG
class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif"
height="0" width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN> <A
href="javadocs.html" title="JavaDocs">More...</A> | <A href="source.html"
title="Source">Source</A> | <A href="site.html" title="Site">Wiki</A>
|<SPAN class="nobr"><A href="irc://irc.codehaus.org/activemq" title="Visit
page outside Confluence" rel="nofollow">IRC<SUP><IMG class="rendericon"
src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0"
width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN> | <SPAN
class="nobr"><A href="http://servlet.uwyn.com/drone/log/hausbot/activemq"
title="Visit page outside Confluence" rel="nofollow">IRC Log<SUP><IMG cl
ass="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif"
height="0" width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN>
| <A href="mailing-lists.html" title="Mailing Lists">Mailing Lists</A>
| <A href="discussion-forums.html" title="Discussion Forums">Discussion
Forums</A> | <A href="support.html" title="Support">Support</A></P>
+ </DIV>
+ </TD>
+ </TR>
+ </TABLE>
+ </DIV>
+
+<!-- Integrate google search later.
+ <form name="search" action="http://www.google.com/search"
method="get">
+ <input type="hidden" name="ie" value="UTF- 8" />
+ <input type="hidden" name="oe" value="UTF- 8" />
+ <input type="hidden" name="domains" value="" />
+ <input type="hidden" name="sitesearch" value="" />
+ <input type="text" name="q" maxlength="255" value="" />
+ <input type="submit" name="btnG" value="Google Search" />
+ </form>
+-->
+
+ <DIV id="site-content">
+ <TABLE>
+ <TR>
+ <TD valign="top">
+ <DIV id="site-navigation">
+<H3><A name="Navigation-Overview"></A><A href="overview.html"
title="Overview">Overview</A></H3>
+
+<UL class="alternate" type="square">
+ <LI><A href="home.html" title="Home">Home</A></LI>
+ <LI><A href="news.html" title="News">News</A></LI>
+ <LI><A href="new-features.html" title="New Features">New
Features</A></LI>
+ <LI><A href="faq.html" title="FAQ">FAQ</A></LI>
+ <LI><A href="site.html" title="Site">Site</A></LI>
+ <LI><A href="articles.html" title="Articles">Articles</A></LI>
+ <LI><A href="download.html" title="Download">Download</A></LI>
+</UL>
+
+
+<H3><A name="Navigation-Search"></A>Search</H3>
+
+
+<DIV style="padding: 10px 10px 0px 25px;">
+<FORM action="http://www.google.com/search" method="get" style="font-size:
10px;">
+<INPUT name="ie" type="hidden" value="UTF-8"></INPUT>
+<INPUT name="oe" type="hidden" value="UTF-8"></INPUT>
+ <INPUT maxlength="255" name="q" size="15" type="text"
value=""></INPUT><BR></BR>
+ <INPUT name="btnG" type="submit" value="Search"></INPUT>
+ <INPUT name="domains" type="hidden"
value="incubator.apache.org/activemq"></INPUT>
+ <INPUT name="sitesearch" type="hidden"
value="incubator.apache.org/activemq"></INPUT>
+</FORM>
+</DIV>
+
+
+<H3><A name="Navigation-Community"></A><A href="community.html"
title="Community">Community</A></H3>
+
+<UL class="alternate" type="square">
+ <LI><A href="support.html" title="Support">Support</A></LI>
+ <LI><A href="discussion-forums.html" title="Discussion
Forums">Discussion Forums</A></LI>
+ <LI><A href="mailing-lists.html" title="Mailing Lists">Mailing
Lists</A></LI>
+ <LI><SPAN class="nobr"><A
href="http://gmane.org/find.php?list=activemq" title="Visit page outside
Confluence" rel="nofollow">News Reader<SUP><IMG class="rendericon"
src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0"
width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+ <LI><SPAN class="nobr"><A href="navigation.html" title="Visit page
outside Confluence" rel="nofollow">Wiki<SUP><IMG class="rendericon"
src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0"
width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+ <LI><A href="projects-using-activemq.html" title="Projects Using
ActiveMQ">Projects Using ActiveMQ</A></LI>
+ <LI><A href="users.html" title="Users">Users</A></LI>
+ <LI><A href="contributing.html"
title="Contributing">Contributing</A></LI>
+ <LI><A href="team.html" title="Team">Team</A></LI>
+</UL>
+
+
+<H3><A name="Navigation-Support"></A><A href="support.html"
title="Support">Support</A></H3>
+
+<UL class="alternate" type="square">
+ <LI><SPAN class="nobr"><A
href="http://issues.apache.org/activemq/browse/AMQ" title="Visit page outside
Confluence" rel="nofollow">Issues<SUP><IMG class="rendericon"
src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0"
width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+ <LI><SPAN class="nobr"><A
href="http://issues.apache.org/activemq/browse/AMQ?report=com.atlassian.jira.plugin.system.project:roadmap-panel"
title="Visit page outside Confluence" rel="nofollow">Roadmap<SUP><IMG
class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif"
height="0" width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+ <LI><SPAN class="nobr"><A
href="http://issues.apache.org/activemq/browse/AMQ?report=com.atlassian.jira.plugin.system.project:changelog-panel"
title="Visit page outside Confluence" rel="nofollow">Change log<SUP><IMG
class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif"
height="0" width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+</UL>
+
+
+<H3><A name="Navigation-UsingActiveMQ"></A><A href="using-activemq.html"
title="Using ActiveMQ">Using ActiveMQ</A></H3>
+
+<UL class="alternate" type="square">
+ <LI><A href="getting-started.html" title="Getting Started">Getting
Started</A></LI>
+ <LI><A href="initial-configuration.html" title="Initial
Configuration">Initial Configuration</A></LI>
+ <LI><A href="run-broker.html" title="Run Broker">Running a
Broker</A></LI>
+ <LI><A href="configuring-transports.html" title="Configuring
Transports">Configuring Transports</A></LI>
+ <LI><A href="destination-options.html" title="Destination
Options">Destination Options</A></LI>
+ <LI><A href="examples.html" title="Examples">Examples</A></LI>
+ <LI><A href="how-can-i-monitor-activemq.html" title="How can I monitor
ActiveMQ">Monitoring the Broker</A></LI>
+ <LI><A href="xml-configuration.html" title="Xml Configuration">Xml
Configuration</A></LI>
+ <LI><A href="xml-reference.html" title="Xml Reference">Xml
Reference</A></LI>
+ <LI><A href="web-samples.html" title="Web Samples">Web Samples</A></LI>
+ <LI><A href="hello-world.html" title="Hello World">Hello World</A></LI>
+ <LI><A href="use-cases.html" title="Use Cases">Use Cases</A></LI>
+ <LI><A href="topologies.html" title="Topologies">Topologies</A></LI>
+ <LI><A href="how-do-i-embed-a-broker-inside-a-connection.html"
title="How do I embed a Broker inside a Connection">Embedded Brokers</A></LI>
+ <LI><A href="jmeter-performance-tests.html" title="JMeter Performance
Tests">Performance Testing</A></LI>
+ <LI><A href="performance-tuning.html" title="Performance
Tuning">Performance Tuning</A></LI>
+ <LI><A href="activemq-command-line-tools-reference.html"
title="ActiveMQ Command Line Tools Reference">Command Line Tools</A></LI>
+</UL>
+
+
+<H3><A name="Navigation-Features"></A><A href="features.html"
title="Features">Features</A></H3>
+
+<UL class="alternate" type="square">
+ <LI><A href="cross-language-clients.html" title="Cross Language
Clients">Cross Language Clients</A></LI>
+ <LI><A href="jmx.html" title="JMX">JMX</A></LI>
+ <LI><A href="performance.html" title="Performance">Performance</A></LI>
+ <LI><A href="protocols.html" title="Protocols">Protocols</A></LI>
+ <LI><A href="persistence.html" title="Persistence">Persistence</A></LI>
+ <LI><A href="jdbc-support.html" title="JDBC Support">JDBC
Support</A></LI>
+ <LI><A href="security.html" title="Security">Security</A></LI>
+ <LI><A href="interceptors.html"
title="Interceptors">Interceptors</A></LI>
+ <LI><A href="clustering.html" title="Clustering">Clustering</A></LI>
+ <LI><A href="discovery.html" title="Discovery">Discovery</A></LI>
+ <LI><A href="wildcards.html" title="Wildcards">Wildcard Support</A></LI>
+ <LI><A href="composite-destinations.html" title="Composite
Destinations">Composite Destinations</A></LI>
+ <LI><A href="jms-streams.html" title="JMS Streams">JMS Streams</A></LI>
+ <LI><A href="advisory-message.html" title="Advisory Message">Advisory
Message</A></LI>
+ <LI><A href="resource-adapter.html" title="Resource Adapter">JCA 1.5
Resource Adapter</A></LI>
+</UL>
+
+
+<H3><A name="Navigation-Featuresin4.x"></A>Features in 4.x</H3>
+
+<UL class="alternate" type="square">
+ <LI><A href="message-groups.html" title="Message Groups">Message
Groups</A></LI>
+ <LI><A href="masterslave.html" title="MasterSlave">MasterSlave</A></LI>
+ <LI><A href="networks-of-brokers.html" title="Networks of
Brokers">Networks of Brokers</A></LI>
+ <LI><A href="exclusive-consumer.html" title="Exclusive
Consumer">Exclusive Consumer</A></LI>
+ <LI><A href="total-ordering.html" title="Total Ordering">Total
Ordering</A></LI>
+ <LI><A href="consumer-priority.html" title="Consumer Priority">Consumer
Priority</A></LI>
+ <LI><A href="retroactive-consumer.html" title="Retroactive
Consumer">Retroactive Consumer</A></LI>
+ <LI><A href="jms-to-jms-bridge.html" title="JMS to JMS Bridge">JMS to
JMS Bridge</A></LI>
+ <LI><A href="visualisation.html"
title="Visualisation">Visualisation</A></LI>
+ <LI><A href="kaha-persistence.html" title="Kaha Persistence">Kaha
Persistence</A></LI>
+ <LI><A href="async-sends.html" title="Async Sends">Async Sends</A></LI>
+ <LI><A href="jmsxuserid.html" title="JMSXUserID">JMSXUserID</A></LI>
+ <LI><A href="new-features.html" title="New Features">More New
Features</A></LI>
+</UL>
+
+
+<H3><A name="Navigation-Connectivity"></A><A href="connectivity.html"
title="Connectivity">Connectivity</A></H3>
+
+<UL class="alternate" type="square">
+ <LI><A href="ajax.html" title="Ajax">Ajax</A></LI>
+ <LI><A href="axis-support.html" title="Axis Support">Axis
Support</A></LI>
+ <LI><A href="c-integration.html" title="C Integration">C
Integration</A></LI>
+ <LI><A href="activemq-cpp-client.html" title="ActiveMQ CPP
Client">C++ Integration</A></LI>
+ <LI><A href="nms.html" title="NMS">C# and .Net Integration</A></LI>
+ <LI><A href="cms.html" title="CMS">CMS</A></LI>
+ <LI><A href="geronimo.html" title="Geronimo">Geronimo</A></LI>
+ <LI><A href="j2ee.html" title="J2EE">J2EE</A></LI>
+ <LI><A href="jboss-integration.html" title="JBoss Integration">JBoss
Integration</A></LI>
+ <LI><SPAN class="nobr"><A
href="http://docs.codehaus.org/display/JETTY/Integrating%20with%20ActiveMQ"
title="Visit page outside Confluence" rel="nofollow">Jetty<SUP><IMG
class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif"
height="0" width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+ <LI><A href="jndi-support.html" title="JNDI Support">JNDI
Support</A></LI>
+ <LI><A href="nms.html" title="NMS is the .Net Messaging
API">NMS</A></LI>
+ <LI><A href="openwire.html" title="OpenWire">OpenWire</A></LI>
+ <LI><A href="rest.html" title="REST">REST</A></LI>
+ <LI><A href="rss-and-atom.html" title="RSS and Atom">RSS and
Atom</A></LI>
+ <LI><A href="spring-support.html" title="Spring Support">Spring
Support</A></LI>
+ <LI><A href="stomp.html" title="Stomp">Stomp</A></LI>
+ <LI><A href="sun-jndi.html" title="Sun JNDI">Sun JNDI</A></LI>
+ <LI><A href="tomcat.html" title="Tomcat">Tomcat</A></LI>
+ <LI><A href="unix-service.html" title="Unix Service">Unix
Service</A></LI>
+ <LI><A href="wsif.html" title="WSIF">WSIF</A></LI>
+</UL>
+
+
+<H3><A name="Navigation-Tools"></A><A href="tools.html"
title="Tools">Tools</A></H3>
+
+<UL class="alternate" type="square">
+ <LI><A href="web-console.html" title="Web Console">Web Console</A></LI>
+ <LI><A href="jca-container.html" title="JCA Container">JCA
Container</A></LI>
+ <LI><A href="hermes-jms.html" title="Hermes Jms">Hermes Jms</A></LI>
+ <LI><SPAN class="nobr"><A href="http://jakarta.apache.org/jmeter"
title="Visit page outside Confluence" rel="nofollow">JMeter<SUP><IMG
class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif"
height="0" width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+</UL>
+
+
+<H3><A name="Navigation-RelatedProjects"></A>Related Projects</H3>
+
+<UL class="alternate" type="square">
+ <LI><SPAN class="nobr"><A
href="http://incubator.apache.org/servicemix/" title="Distributed Enterprise
Service Bus based on JBI" rel="nofollow">Apache ServiceMix<SUP><IMG
class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif"
height="0" width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+ <LI><SPAN class="nobr"><A href="http://lingo.codehaus.org/" title="POJO
Remoting using JMS" rel="nofollow">Lingo<SUP><IMG class="rendericon"
src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0"
width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+ <LI><SPAN class="nobr"><A href="http://jencks.org/" title="Message
Driven POJOs and pooling for JMS and JDBC" rel="nofollow">Jencks<SUP><IMG
class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif"
height="0" width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+ <LI><SPAN class="nobr"><A href="http://stomp.codehaus.org/"
title="Simple cross language protocol for messaging"
rel="nofollow">Stomp<SUP><IMG class="rendericon"
src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0"
width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+ <LI><SPAN class="nobr"><A href="http://activecluster.codehaus.org/"
title="Visit page outside Confluence" rel="nofollow">ActiveCluster<SUP><IMG
class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif"
height="0" width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+ <LI><SPAN class="nobr"><A href="http://activespace.codehaus.org/"
title="Visit page outside Confluence" rel="nofollow">ActiveSpace<SUP><IMG
class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif"
height="0" width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+ <LI><SPAN class="nobr"><A href="http://www.springframework.org/"
title="Visit page outside Confluence" rel="nofollow">Spring<SUP><IMG
class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif"
height="0" width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+ <LI><SPAN class="nobr"><A href="http://geronimo.apache.org/"
title="Visit page outside Confluence" rel="nofollow">Geronimo<SUP><IMG
class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif"
height="0" width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+</UL>
+
+
+<H3><A name="Navigation-Developers"></A><A href="developers.html"
title="Developers">Developers</A></H3>
+
+<UL class="alternate" type="square">
+ <LI><A href="source.html" title="Source">Source</A></LI>
+ <LI><A href="building.html" title="Building">Building</A></LI>
+ <LI><A href="developer-guide.html" title="Developer Guide">Developer
Guide</A></LI>
+ <LI><A href="becoming-a-committer.html" title="Becoming a
committer">Becoming a committer</A></LI>
+ <LI><A href="code-overview.html" title="Code Overview">Code
Overview</A></LI>
+ <LI><A href="wire-protocol.html" title="Wire Protocol">Wire
Protocol</A></LI>
+ <LI><A href="release-guide.html" title="Release Guide">Release
Guide</A></LI>
+</UL>
+
+
+<H3><A name="Navigation-Tests"></A>Tests</H3>
+
+<UL class="alternate" type="square">
+ <LI><A href="activemq-performance-module-users-manual.html"
title="ActiveMQ Performance Module Users Manual">Maven2 Performance
Plugin</A></LI>
+ <LI><A href="integration-tests.html" title="Integration
Tests">Integration Tests</A></LI>
+ <LI><A href="benchmark-tests.html" title="Benchmark Tests">Benchmark
Tests</A></LI>
+ <LI><A href="jmeter-performance-tests.html" title="JMeter Performance
Tests">JMeter Performance Tests</A></LI>
+</UL>
+
+
+<H3><A name="Navigation-ProjectReports"></A>Project Reports</H3>
+<UL class="alternate" type="square">
+ <LI><A href="junit-reports.html" title="JUnit Reports">JUnit
Reports</A></LI>
+ <LI><SPAN class="nobr"><A
href="http://activemq.codehaus.org/maven/clover/" title="Visit page outside
Confluence" rel="nofollow">Clover Report<SUP><IMG class="rendericon"
src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0"
width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+ <LI><A href="source-xref.html" title="Source XRef">Source XRef</A></LI>
+ <LI><A href="test-source-xref.html" title="Test Source XRef">Test
Source XRef</A></LI>
+ <LI><SPAN class="nobr"><A href="http://ci.gbuild.org/continuum/"
title="Visit page outside Confluence" rel="nofollow">GBuild<SUP><IMG
class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif"
height="0" width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+ <LI><A href="xml-reference.html" title="Xml Reference">Xml
Reference</A></LI>
+</UL>
+
+
+<H3><A name="Navigation-Toolsweuse"></A>Tools we use</H3>
+
+<P><SPAN class="nobr"><A href="http://www.yourkit.com/" title="Visit page
outside Confluence" rel="nofollow"><IMG
src="http://incubator.apache.org/activemq/images/yourkit.jpg" align="absmiddle"
border="0"><SUP><IMG class="rendericon"
src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0"
width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN><BR>
+[]</P>
+ </DIV>
+ </TD>
+ <TD valign="top">
+ <DIV id="site-page">
+
+<!--
+ <div class="pagetitle">JMS and JDBC operations in one
transaction</div>
+-->
+ <DIV class="wiki-content"><H3><A
name="JMSandJDBCoperationsinonetransaction-JMSandJDBCoperationsinonetransactionwithSpring%2FJencks%2FActiveMQ"></A>JMS
and JDBC operations in one transaction with Spring/Jencks/ActiveMQ</H3>
+
+<P>Spring beans:</P>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag"><beans></SPAN>
+
+ <SPAN class="code-tag"><SPAN class="code-comment"><!-- ActiveMQ Broker
--></SPAN></SPAN>
+ <SPAN class="code-tag"><bean id=<SPAN
class="code-quote">"broker"</SPAN> class=<SPAN
class="code-quote">"org.apache.activemq.broker.BrokerService"</SPAN>
init-method=<SPAN class="code-quote">"start"</SPAN>
destroy-method=<SPAN class="code-quote">"stop"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"persistent"</SPAN> value=<SPAN
class="code-quote">"false"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"transportConnectorURIs"</SPAN>></SPAN>
+ <SPAN class="code-tag"><list></SPAN>
+ <SPAN
class="code-tag"><value></SPAN>tcp://localhost:5000<SPAN
class="code-tag"></value></SPAN>
+ <SPAN class="code-tag"></list></SPAN>
+ <SPAN class="code-tag"></property></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+
+ <SPAN class="code-tag"><SPAN class="code-comment"><!-- Geronimo
Transaction Manager --></SPAN></SPAN>
+ <SPAN class="code-tag"><bean id=<SPAN
class="code-quote">"transactionContextManager"</SPAN> class=<SPAN
class="code-quote">"org.jencks.factory.TransactionContextManagerFactoryBean"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><bean id=<SPAN
class="code-quote">"geronimo"</SPAN> class=<SPAN
class="code-quote">"org.jencks.factory.GeronimoTransactionManagerFactoryBean"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><bean id=<SPAN
class="code-quote">"geronimoTransactionManager"</SPAN> class=<SPAN
class="code-quote">"org.springframework.transaction.jta.JtaTransactionManager"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"userTransaction"</SPAN> ref=<SPAN
class="code-quote">"geronimo"</SPAN> /></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+
+ <SPAN class="code-tag"><SPAN class="code-comment"><!-- Jencks
Connection Manager --></SPAN></SPAN>
+ <SPAN class="code-tag"><bean id=<SPAN
class="code-quote">"connectionManager"</SPAN> class=<SPAN
class="code-quote">"org.jencks.factory.ConnectionManagerFactoryBean"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"transactionSupport"</SPAN>></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.jencks.factory.XATransactionFactoryBean"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"useTransactionCaching"</SPAN> value=<SPAN
class="code-quote">"true"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"useThreadCaching"</SPAN> value=<SPAN
class="code-quote">"false"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"></property></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"poolingSupport"</SPAN>></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.jencks.factory.SinglePoolFactoryBean"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"maxSize"</SPAN> value=<SPAN
class="code-quote">"2"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"minSize"</SPAN> value=<SPAN
class="code-quote">"1"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"blockingTimeoutMilliseconds"</SPAN> value=<SPAN
class="code-quote">"60"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"idleTimeoutMinutes"</SPAN> value=<SPAN
class="code-quote">"60"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"matchOne"</SPAN> value=<SPAN
class="code-quote">"true"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"matchAll"</SPAN> value=<SPAN
class="code-quote">"true"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"selectOneAssumeMatch"</SPAN> value=<SPAN
class="code-quote">"true"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"></property></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+
+ <SPAN class="code-tag"><SPAN class="code-comment"><!-- ActiveMQ
Connection --></SPAN></SPAN>
+ <SPAN class="code-tag"><bean id=<SPAN
class="code-quote">"jmsResourceAdapter"</SPAN> class=<SPAN
class="code-quote">"org.apache.activemq.ra.ActiveMQResourceAdapter"</SPAN>
depends-on=<SPAN class="code-quote">"broker"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"serverUrl"</SPAN>></SPAN>
+ <SPAN
class="code-tag"><value></SPAN>tcp://localhost:5000<SPAN
class="code-tag"></value></SPAN>
+ <SPAN class="code-tag"></property></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"><bean id=<SPAN
class="code-quote">"jmsManagedConnectionFactory"</SPAN> class=<SPAN
class="code-quote">"org.apache.activemq.ra.ActiveMQManagedConnectionFactory"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"resourceAdapter"</SPAN> ref=<SPAN
class="code-quote">"jmsResourceAdapter"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"><bean id=<SPAN
class="code-quote">"jmsConnectionFactory"</SPAN> class=<SPAN
class="code-quote">"org.springframework.jca.support.LocalConnectionFactoryBean"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"managedConnectionFactory"</SPAN> ref=<SPAN
class="code-quote">"jmsManagedConnectionFactory"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"connectionManager"</SPAN> ref=<SPAN
class="code-quote">"connectionManager"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+
+ <SPAN class="code-tag"><SPAN class="code-comment"><!-- Tranql JDBC
Connection --></SPAN></SPAN>
+ <!--
+ <SPAN class="code-tag"><bean id=<SPAN
class="code-quote">"tranqlManagedConnectionFactory"</SPAN>
class=<SPAN
class="code-quote">"org.jencks.tranql.XAPoolDataSourceMCF"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"driverName"</SPAN> value=<SPAN
class="code-quote">"org.postgresql.Driver"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"url"</SPAN> value=<SPAN
class="code-quote">"jdbc:postgresql://ats-manager/activemq"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"user"</SPAN> value=<SPAN
class="code-quote">"activemq"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"><bean id=<SPAN
class="code-quote">"tranqlDataSource"</SPAN> class=<SPAN
class="code-quote">"org.springframework.jca.support.LocalConnectionFactoryBean"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"managedConnectionFactory"</SPAN> ref=<SPAN
class="code-quote">"tranqlManagedConnectionFactory"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"connectionManager"</SPAN> ref=<SPAN
class="code-quote">"connectionManager"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ -->
+
+ <SPAN class="code-tag"><SPAN class="code-comment"><!-- Enhydra JDBC
Connection --></SPAN></SPAN>
+ <SPAN class="code-tag"><bean id=<SPAN
class="code-quote">"enhydraDataSource"</SPAN> class=<SPAN
class="code-quote">"org.enhydra.jdbc.pool.StandardXAPoolDataSource"</SPAN>
destroy-method=<SPAN class="code-quote">"shutdown"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"dataSource"</SPAN>></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.enhydra.jdbc.standard.StandardXADataSource"</SPAN>
destroy-method=<SPAN class="code-quote">"shutdown"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"transactionManager"</SPAN> ref=<SPAN
class="code-quote">"geronimo"</SPAN> /></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"driverName"</SPAN> value=<SPAN
class="code-quote">"org.postgresql.Driver"</SPAN> /></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"url"</SPAN> value=<SPAN
class="code-quote">"jdbc:postgresql://ats-manager/activemq"</SPAN>
/></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"></property></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"user"</SPAN> value=<SPAN
class="code-quote">"activemq"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+
+ <SPAN class="code-tag"><bean id=<SPAN
class="code-quote">"jencksJCAContainer"</SPAN> class=<SPAN
class="code-quote">"org.jencks.JCAContainer"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"bootstrapContext"</SPAN>></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.jencks.factory.BootstrapContextFactoryBean"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"threadPoolSize"</SPAN> value=<SPAN
class="code-quote">"25"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"></property></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"resourceAdapter"</SPAN> ref=<SPAN
class="code-quote">"jmsResourceAdapter"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+
+ <SPAN class="code-tag"><bean id=<SPAN
class="code-quote">"inboundConnector"</SPAN> class=<SPAN
class="code-quote">"org.jencks.JCAConnector"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"jcaContainer"</SPAN> ref=<SPAN
class="code-quote">"jencksJCAContainer"</SPAN> /></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"activationSpec"</SPAN>></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.activemq.ra.ActiveMQActivationSpec"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"destination"</SPAN> value=<SPAN
class="code-quote">"messages.input"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"destinationType"</SPAN> value=<SPAN
class="code-quote">"javax.jms.Queue"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"></property></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"transactionManager"</SPAN> ref=<SPAN
class="code-quote">"geronimo"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"ref"</SPAN> value=<SPAN
class="code-quote">"echoBean"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+
+ <SPAN class="code-tag"><bean id=<SPAN
class="code-quote">"echoBean"</SPAN> class=<SPAN
class="code-quote">"transactions.EchoBean"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"jdbcTemplate"</SPAN>></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.springframework.jdbc.core.JdbcTemplate"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"dataSource"</SPAN> ref=<SPAN
class="code-quote">"enhydraDataSource"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"></property></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"jmsTemplate"</SPAN>></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.springframework.jms.core.JmsTemplate"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"connectionFactory"</SPAN> ref=<SPAN
class="code-quote">"jmsConnectionFactory"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"></property></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+
+<SPAN class="code-tag"></beans></SPAN></PRE>
+</DIV></DIV>
+<P>Java code:</P>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml">public class EchoBean implements MessageListener {
+
+ private Log log = LogFactory.getLog(getClass());
+
+ private JdbcTemplate jdbcTemplate;
+ private JmsTemplate jmsTemplate;
+
+ public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
+ this.jdbcTemplate = jdbcTemplate;
+ }
+
+ public void setJmsTemplate(JmsTemplate jmsTemplate) {
+ this.jmsTemplate = jmsTemplate;
+ }
+
+ public void onMessage(Message message) {
+ log.debug(message);
+ if (message instanceof TextMessage) {
+ try {
+ String messageText = ((TextMessage)message).getText();
+ log.debug(<SPAN class="code-quote">"execute JMS
operation"</SPAN>);
+ jmsTemplate.convertAndSend(<SPAN
class="code-quote">"messages.ouptut"</SPAN>, messageText);
+ log.debug(<SPAN class="code-quote">"execute JDBC
operation"</SPAN>);
+ jdbcTemplate.execute(<SPAN class="code-quote">"insert
into t1 values('"</SPAN>+messageText+<SPAN
class="code-quote">"')"</SPAN>);
+ } catch (JMSException e) {
+ e.printStackTrace();
+ }
+ }
+ }
+
+}</PRE>
+</DIV></DIV></DIV>
+
+ </DIV>
+ </TD>
+ </TR>
+ </TABLE>
+ </DIV>
+ </DIV>
+ <DIV id="site-footer">
+ Added by <A
href="http://goopen.org/confluence/users/viewuserprofile.action?username=enp">Eugene
Prokopiev</A>,
+ last edited by <A
href="http://goopen.org/confluence/users/viewuserprofile.action?username=enp">Eugene
Prokopiev</A> on Aug 04, 2006
+
+ (<A
href="http://goopen.org/confluence/pages/editpage.action?pageId=9535">edit
page</A>)
+ </DIV>
+
+ </BODY>
+
+</HTML>
\ No newline at end of file
Modified: incubator/activemq/site/jms-to-jms-bridge.html
URL:
http://svn.apache.org/viewvc/incubator/activemq/site/jms-to-jms-bridge.html?rev=429671&r1=429670&r2=429671&view=diff
==============================================================================
--- incubator/activemq/site/jms-to-jms-bridge.html (original)
+++ incubator/activemq/site/jms-to-jms-bridge.html Tue Aug 8 07:50:56 2006
@@ -442,7 +442,12 @@
<TD class="confluenceTd"> an array of OutboundTopicBridge instances - used for
defining destinations that will be published to the foreign JMS provider </TD>
</TR>
</TBODY></TABLE>
-<P><B>InboundTopicBridge</B></P>
+<TABLE class="sectionMacroWithBorder" border="0" cellpadding="5"
cellspacing="0" width="100%"><TBODY><TR>
+<TD class="confluenceTd" valign="top" width="50%">
+
+<H4><A name="JMStoJMSBridge-TopicBridges"></A>Topic Bridges</H4>
+
+<P> <B>InboundTopicBridge</B></P>
<TABLE class="confluenceTable"><TBODY>
<TR>
<TH class="confluenceTh"> property name </TH>
@@ -450,9 +455,14 @@
<TH class="confluenceTh"> description </TH>
</TR>
<TR>
-<TD class="confluenceTd"> consumerTopic </TD>
+<TD class="confluenceTd"> localTopicName </TD>
+<TD class="confluenceTd"> null </TD>
+<TD class="confluenceTd"> the name of the local ActiveMQ Queue </TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> inboundTopicName </TD>
<TD class="confluenceTd"> null </TD>
-<TD class="confluenceTd"> the topic to subscribe to </TD>
+<TD class="confluenceTd"> the foreign topic name to subscribe to </TD>
</TR>
<TR>
<TD class="confluenceTd"> selector </TD>
@@ -465,7 +475,7 @@
<TD class="confluenceTd"> if set will create a durable consumer </TD>
</TR>
</TBODY></TABLE>
-<P><B>OutboundTopicBridge</B></P>
+<P> <B>OutboundTopicBridge</B></P>
<TABLE class="confluenceTable"><TBODY>
<TR>
<TH class="confluenceTh"> property name </TH>
@@ -473,12 +483,21 @@
<TH class="confluenceTh"> description </TH>
</TR>
<TR>
-<TD class="confluenceTd"> producerTopic </TD>
+<TD class="confluenceTd"> localTopicName </TD>
<TD class="confluenceTd"> null </TD>
-<TD class="confluenceTd"> the topic to publish to </TD>
+<TD class="confluenceTd"> the name of the local ActiveMQ Queue </TD>
</TR>
-</TBODY></TABLE>
-<P><B>InboundQueueBridge</B></P>
+<TR>
+<TD class="confluenceTd"> outboundTopicName </TD>
+<TD class="confluenceTd"> null </TD>
+<TD class="confluenceTd"> the foreign topic name to publish to </TD>
+</TR>
+</TBODY></TABLE></TD>
+<TD class="confluenceTd" valign="top" width="50%">
+
+<H4><A name="JMStoJMSBridge-QueueBridges"></A>Queue Bridges</H4>
+
+<P> <B>InboundQueueBridge</B></P>
<TABLE class="confluenceTable"><TBODY>
<TR>
<TH class="confluenceTh"> property name </TH>
@@ -486,9 +505,14 @@
<TH class="confluenceTh"> description </TH>
</TR>
<TR>
-<TD class="confluenceTd"> consumerQueue </TD>
+<TD class="confluenceTd"> localQueueName </TD>
<TD class="confluenceTd"> null </TD>
-<TD class="confluenceTd"> the queue to receive from </TD>
+<TD class="confluenceTd"> the name of the local ActiveMQ Queue </TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> inboundQueueName </TD>
+<TD class="confluenceTd"> null </TD>
+<TD class="confluenceTd"> the foreign queue name to receive from </TD>
</TR>
<TR>
<TD class="confluenceTd"> selector </TD>
@@ -496,7 +520,8 @@
<TD class="confluenceTd"> selector to use - if any </TD>
</TR>
</TBODY></TABLE>
-<P><B>OutboundQueueBridge</B></P>
+<P><BR clear="all">
+<B>OutboundQueueBridge</B></P>
<TABLE class="confluenceTable"><TBODY>
<TR>
<TH class="confluenceTh"> property name </TH>
@@ -504,11 +529,16 @@
<TH class="confluenceTh"> description </TH>
</TR>
<TR>
-<TD class="confluenceTd"> producerQueue </TD>
+<TD class="confluenceTd"> localQueueName </TD>
<TD class="confluenceTd"> null </TD>
-<TD class="confluenceTd"> the queue to send to </TD>
+<TD class="confluenceTd"> the name of the local ActiveMQ Queue </TD>
</TR>
-</TBODY></TABLE>
+<TR>
+<TD class="confluenceTd"> outboundQueueName </TD>
+<TD class="confluenceTd"> null </TD>
+<TD class="confluenceTd"> the foreign queue name to send to </TD>
+</TR>
+</TBODY></TABLE></TD></TR></TBODY></TABLE>
<H3><A name="JMStoJMSBridge-ExampleXBeanConfiguration"></A>Example XBean
Configuration</H3>
@@ -584,32 +614,31 @@
<SPAN class="code-tag"></beans></SPAN></PRE>
</DIV></DIV>
-<H3><A
name="JMStoJMSBridge-ExampleXBeanConfigurationtoBridgeActiveMQtoProviderWithNoURLSetter"></A>Example
XBean Configuration to Bridge ActiveMQ to Provider With No URL Setter </H3>
-
-<P>Some JMS providers, WebLogic for instance, do not expose a setter for
connection properties like host and port (setBrokerUrl) on their
ConnectionFactory object. In this case you need to set
outboundQueueConnectionFactoryName and jndiOutboundTemplate in your
activemq.xml config file. </P>
+<H3><A
name="JMStoJMSBridge-ExampleXBeanConfigurationtoBridgeActiveMQtoProviderWithNoURLSetter"></A>Example
XBean Configuration to Bridge ActiveMQ to Provider With No URL Setter</H3>
+<P>Some JMS providers, WebLogic for instance, do not expose a setter for
connection properties like host and port (setBrokerUrl) on their
ConnectionFactory object. In this case you need to set
outboundQueueConnectionFactoryName and jndiOutboundTemplate in your
activemq.xml config file.</P>
<DIV class="code"><DIV class="codeContent">
<PRE class="code-xml"><SPAN class="code-tag"><SPAN
class="code-comment"><!-- START SNIPPET: example --></SPAN></SPAN>
<SPAN class="code-tag"><beans></SPAN>
<SPAN class="code-tag"><SPAN class="code-comment"><!-- Allows us to use
system properties as variables in this configuration file --></SPAN></SPAN>
<SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"</SPAN>/></SPAN>
-
+
<SPAN class="code-tag"><broker useJmx=<SPAN
class="code-quote">"true"</SPAN> xmlns=<SPAN
class="code-quote">"http://activemq.org/config/1.0"</SPAN>></SPAN>
-
+
<SPAN class="code-tag"><persistenceAdapter></SPAN>
<SPAN class="code-tag"><journaledJDBC journalLogFiles=<SPAN
class="code-quote">"5"</SPAN> dataDirectory=<SPAN
class="code-quote">"${activemq.home}/activemq-data"</SPAN>/></SPAN>
<SPAN class="code-tag"></persistenceAdapter></SPAN>
-
+
<SPAN class="code-tag"><transportConnectors></SPAN>
<SPAN class="code-tag"><transportConnector name=<SPAN
class="code-quote">"default"</SPAN> uri=<SPAN
class="code-quote">"tcp://localhost:61616"</SPAN> discoveryUri=<SPAN
class="code-quote">"multicast://default"</SPAN>/></SPAN>
<SPAN class="code-tag"><transportConnector name=<SPAN
class="code-quote">"stomp"</SPAN> uri=<SPAN
class="code-quote">"stomp://localhost:61613"</SPAN>/></SPAN>
<SPAN class="code-tag"></transportConnectors></SPAN>
-
+
<SPAN class="code-tag"><networkConnectors></SPAN>
<SPAN class="code-tag"><networkConnector name=<SPAN
class="code-quote">"default"</SPAN> uri=<SPAN
class="code-quote">"multicast://default"</SPAN>/></SPAN>
<SPAN class="code-tag"></networkConnectors></SPAN>
-
+
<SPAN class="code-tag"><jmsBridgeConnectors></SPAN>
<jmsQueueConnector name=<SPAN
class="code-quote">"JreportRequestBridge-Inbound"</SPAN>
jndiOutboundTemplate=<SPAN
class="code-quote">"#remoteJndi"</SPAN>
@@ -637,12 +666,102 @@
class=<SPAN
class="code-quote">"org.apache.activemq.ActiveMQConnectionFactory"</SPAN>>
<SPAN class="code-tag"><property name=<SPAN
class="code-quote">"brokerURL"</SPAN> value=<SPAN
class="code-quote">"tcp://localhost:61616"</SPAN> /></SPAN>
<SPAN class="code-tag"></bean></SPAN>
-
+
<SPAN class="code-tag"><bean id=<SPAN
class="code-quote">"localQueue"</SPAN> class=<SPAN
class="code-quote">"org.apache.activemq.command.ActiveMQQueue"</SPAN>></SPAN>
<SPAN class="code-tag"><constructor-arg value=<SPAN
class="code-quote">"dynamic/jms.queue.jreport.request"</SPAN>/></SPAN>
<SPAN class="code-tag"></bean></SPAN>
<SPAN class="code-tag"></beans></SPAN>
<SPAN class="code-tag"><SPAN class="code-comment"><!-- END SNIPPET: xbean
--></SPAN></SPAN></PRE>
+</DIV></DIV>
+
+<H3><A
name="JMStoJMSBridge-ExamplepureSpringConfigurationforsendingmessagestoexternalActiveMQdestinationthroughbridge"></A>Example
pure Spring Configuration for sending messages to external ActiveMQ
destination through bridge</H3>
+
+<P>Spring beans:</P>
+
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag"><?xml version=<SPAN
class="code-quote">"1.0"</SPAN> encoding=<SPAN
class="code-quote">"UTF-8"</SPAN>?></SPAN>
+<SPAN class="code-tag"><!DOCTYPE beans PUBLIC <SPAN
class="code-quote">"-//SPRING//DTD BEAN//EN"</SPAN> <SPAN
class="code-quote">"http://www.springframework.org/dtd/spring-beans.dtd"</SPAN>></SPAN>
+
+<SPAN class="code-tag"><beans></SPAN>
+
+ <SPAN class="code-tag"><bean id=<SPAN
class="code-quote">"mainBroker"</SPAN> class=<SPAN
class="code-quote">"org.apache.activemq.broker.BrokerService"</SPAN>
init-method=<SPAN class="code-quote">"start"</SPAN>
destroy-method=<SPAN class="code-quote">"stop"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"brokerName"</SPAN> value = <SPAN
class="code-quote">"mainBroker"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"persistent"</SPAN> value=<SPAN
class="code-quote">"false"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"transportConnectorURIs"</SPAN>></SPAN>
+ <SPAN class="code-tag"><list></SPAN>
+ <SPAN
class="code-tag"><value></SPAN>tcp://localhost:7000<SPAN
class="code-tag"></value></SPAN>
+ <SPAN class="code-tag"></list></SPAN>
+ <SPAN class="code-tag"></property></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+
+ <SPAN class="code-tag"><bean id=<SPAN
class="code-quote">"bridgedBroker"</SPAN> class=<SPAN
class="code-quote">"org.apache.activemq.broker.BrokerService"</SPAN>
init-method=<SPAN class="code-quote">"start"</SPAN>
destroy-method=<SPAN class="code-quote">"stop"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"brokerName"</SPAN> value = <SPAN
class="code-quote">"bridgedBroker"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"persistent"</SPAN> value=<SPAN
class="code-quote">"false"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"transportConnectorURIs"</SPAN>></SPAN>
+ <SPAN class="code-tag"><list></SPAN>
+ <SPAN
class="code-tag"><value></SPAN>tcp://localhost:7001<SPAN
class="code-tag"></value></SPAN>
+ <SPAN class="code-tag"></list></SPAN>
+ <SPAN class="code-tag"></property></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"jmsBridgeConnectors"</SPAN>></SPAN>
+ <SPAN class="code-tag"><list></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.activemq.network.jms.JmsQueueConnector"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property
name=<SPAN
class="code-quote">"outboundQueueConnectionFactory"</SPAN>></SPAN>
+ <SPAN class="code-tag"><bean
class=<SPAN
class="code-quote">"org.apache.activemq.ActiveMQConnectionFactory"</SPAN>></SPAN>
+ <SPAN
class="code-tag"><property name=<SPAN
class="code-quote">"brokerURL"</SPAN> value=<SPAN
class="code-quote">"tcp://localhost:7000"</SPAN> /></SPAN>
+ <SPAN
class="code-tag"></bean></SPAN>
+ <SPAN
class="code-tag"></property></SPAN>
+ <SPAN class="code-tag"><property
name=<SPAN class="code-quote">"outboundQueueBridges"</SPAN>></SPAN>
+ <SPAN
class="code-tag"><list></SPAN>
+ <SPAN
class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.activemq.network.jms.OutboundQueueBridge"</SPAN>></SPAN>
+ <SPAN
class="code-tag"><constructor-arg value=<SPAN
class="code-quote">"messages.input"</SPAN>/></SPAN>
+ <SPAN
class="code-tag"></bean></SPAN>
+ <SPAN
class="code-tag"></list></SPAN>
+ <SPAN
class="code-tag"></property></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"></list></SPAN>
+ <SPAN class="code-tag"></property></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+
+<SPAN class="code-tag"></beans></SPAN></PRE>
+</DIV></DIV>
+<P>Java code:</P>
+
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml">public class BridgeTest {
+
+ public BridgeTest() throws Exception {
+
+ Log log = LogFactory.getLog(getClass());
+
+ new ClassPathXmlApplicationContext(<SPAN
class="code-quote">"bridge/context-bridge.xml"</SPAN>);
+
+ ActiveMQConnection connection =
ActiveMQConnection.makeConnection(<SPAN
class="code-quote">"tcp://localhost:7001"</SPAN>);
+ connection.start();
+ Session session = connection.createSession(false,
Session.AUTO_ACKNOWLEDGE);
+ Destination destination = session.createQueue(<SPAN
class="code-quote">"messages.input"</SPAN>);
+ MessageProducer producer = session.createProducer(destination);
+ producer.send(session.createTextMessage(<SPAN
class="code-quote">"Test Message"</SPAN>));
+ log.debug(<SPAN class="code-quote">"send message"</SPAN>);
+ session.close();
+ connection.close();
+
+ connection = ActiveMQConnection.makeConnection(<SPAN
class="code-quote">"tcp://localhost:7000"</SPAN>);
+ connection.start();
+ session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
+ destination = session.createQueue(<SPAN
class="code-quote">"messages.input"</SPAN>);
+ MessageConsumer consumer = session.createConsumer(destination);
+ log.debug(<SPAN class="code-quote">"receive
message"</SPAN>);
+ Message message = consumer.receive(5000);
+ log.debug(<SPAN class="code-quote">"Received: "</SPAN> +
message);
+ session.close();
+ connection.close();
+ }
+
+ public static void main(String[] args) throws Exception {
+ new BridgeTest();
+ }
+
+}</PRE>
</DIV></DIV></DIV>
</DIV>
@@ -653,8 +772,8 @@
</DIV>
<DIV id="site-footer">
Added by <A
href="http://goopen.org/confluence/users/viewuserprofile.action?username=rajdavies">Rob
Davies</A>,
- last edited by <A
href="http://goopen.org/confluence/users/viewuserprofile.action?username=tpurcell">Tom
Purcell</A> on Jul 21, 2006
- (<A
href="http://goopen.org/confluence/pages/diffpages.action?pageId=40&originalId=9147">view
change</A>)
+ last edited by <A
href="http://goopen.org/confluence/users/viewuserprofile.action?username=enp">Eugene
Prokopiev</A> on Aug 03, 2006
+ (<A
href="http://goopen.org/confluence/pages/diffpages.action?pageId=40&originalId=9509">view
change</A>)
(<A
href="http://goopen.org/confluence/pages/editpage.action?pageId=40">edit
page</A>)
</DIV>
Added: incubator/activemq/site/navigation.data/yourkit.jpg
URL:
http://svn.apache.org/viewvc/incubator/activemq/site/navigation.data/yourkit.jpg?rev=429671&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/activemq/site/navigation.data/yourkit.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/activemq/site/navigation.data/yourkit.jpg.jpeg
URL:
http://svn.apache.org/viewvc/incubator/activemq/site/navigation.data/yourkit.jpg.jpeg?rev=429671&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/activemq/site/navigation.data/yourkit.jpg.jpeg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Modified: incubator/activemq/site/new-features-in-41.html
URL:
http://svn.apache.org/viewvc/incubator/activemq/site/new-features-in-41.html?rev=429671&r1=429670&r2=429671&view=diff
==============================================================================
--- incubator/activemq/site/new-features-in-41.html (original)
+++ incubator/activemq/site/new-features-in-41.html Tue Aug 8 07:50:56 2006
@@ -296,10 +296,10 @@
<a href="javascript:hideChildren()">Hide Children</a></span>
</div>
<div class="greybox" id="children" style="display: none;">
- <a
href="http://goopen.org/confluence/display/ACTIVEMQ/Configure+Startup+Destinations"
title="Configure Startup Destinations">Configure Startup Destinations</a>
+ <a
href="http://goopen.org/confluence/display/ACTIVEMQ/Virtual+Destinations"
title="Virtual Destinations">Virtual Destinations</a>
<span class="smalltext">(ActiveMQ)</span>
<br>
- <a
href="http://goopen.org/confluence/display/ACTIVEMQ/Virtual+Destinations"
title="Virtual Destinations">Virtual Destinations</a>
+ <a
href="http://goopen.org/confluence/display/ACTIVEMQ/Configure+Startup+Destinations"
title="Configure Startup Destinations">Configure Startup Destinations</a>
<span class="smalltext">(ActiveMQ)</span>
<br>
<a
href="http://goopen.org/confluence/display/ACTIVEMQ/Structured+Message+Properties+and+MapMessages"
title="Structured Message Properties and MapMessages">Structured Message
Properties and MapMessages</a>