Author: jstrachan
Date: Tue Jun 27 02:44:37 2006
New Revision: 417389
URL: http://svn.apache.org/viewvc?rev=417389&view=rev
Log:
Latest export from confluence
Modified:
incubator/activemq/site/c-integration.html
incubator/activemq/site/cms.html
incubator/activemq/site/connectivity.html
Modified: incubator/activemq/site/c-integration.html
URL:
http://svn.apache.org/viewvc/incubator/activemq/site/c-integration.html?rev=417389&r1=417388&r2=417389&view=diff
==============================================================================
--- incubator/activemq/site/c-integration.html (original)
+++ incubator/activemq/site/c-integration.html Tue Jun 27 02:44:37 2006
@@ -69,7 +69,7 @@
<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="changes-in-40.html" title="Changes in 4.0">New in
4.0</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>
@@ -159,7 +159,7 @@
<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="changes-in-40.html" title="Changes in 4.0">Other new
features</A></LI>
+ <LI><A href="new-features.html" title="New Features">More New
Features</A></LI>
</UL>
Modified: incubator/activemq/site/cms.html
URL:
http://svn.apache.org/viewvc/incubator/activemq/site/cms.html?rev=417389&r1=417388&r2=417389&view=diff
==============================================================================
--- incubator/activemq/site/cms.html (original)
+++ incubator/activemq/site/cms.html Tue Jun 27 02:44:37 2006
@@ -69,7 +69,7 @@
<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="changes-in-40.html" title="Changes in 4.0">New in
4.0</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>
@@ -159,7 +159,7 @@
<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="changes-in-40.html" title="Changes in 4.0">Other new
features</A></LI>
+ <LI><A href="new-features.html" title="New Features">More New
Features</A></LI>
</UL>
@@ -245,16 +245,53 @@
<!--
<div class="pagetitle">CMS</div>
-->
- <DIV class="wiki-content">
-<P>CMS is a C++ API to JMS/MOM implemented currently using <A
href="stomp.html" title="Stomp">Stomp</A> but we hope to have an implementation
using <A href="openwire.html" title="OpenWire">OpenWire</A> soon.</P>
+ <DIV class="wiki-content"><P>CMS is a C++ API to JMS/MOM
implemented currently using <A href="stomp.html" title="Stomp">Stomp</A> but we
hope to have an implementation using <A href="openwire.html"
title="OpenWire">OpenWire</A> soon.</P>
<P>To get a better feel for CMS please download the <SPAN class="nobr"><A
href="http://svn.apache.org/repos/asf/incubator/activemq/trunk/cms/docs/cms_overview.pdf"
title="Visit page outside Confluence" rel="nofollow">reference guide<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>.</P>
+<P>The source code for the CMS is <SPAN class="nobr"><A
href="http://svn.apache.org/repos/asf/incubator/activemq/trunk/cms/"
title="Visit page outside Confluence" rel="nofollow">here<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></P>
+
<H3><A name="CMS-Example"></A>Example</H3>
<P>The following example shows CMS in action</P>
-</DIV>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-java">cms::TopicConnectionFactory* connectionFactory = <SPAN
class="code-keyword">new</SPAN> activemq::ActiveMQConnectionFactory( <SPAN
class="code-quote">"127.0.0.1:61613"</SPAN> );
+cms::TopicConnection* connection =
connectionFactory->createTopicConnection();
+connection->setExceptionListener( <SPAN class="code-keyword">this</SPAN> );
+connection->start();
+cms::TopicSession* session = connection->createTopicSession( <SPAN
class="code-keyword">false</SPAN> );
+cms::Topic* topic = session->createTopic(<SPAN
class="code-quote">"mytopic"</SPAN>);
+cms::TopicSubscriber* subscriber = session->createSubscriber( topic );
+subscriber->setMessageListener( <SPAN class="code-keyword">this</SPAN> );
+cms::TopicPublisher* publisher = session->createPublisher( topic );
+
+<SPAN class="code-comment">// Send some text messages.
+</SPAN><SPAN class="code-keyword">const</SPAN> <SPAN
class="code-object">char</SPAN>* text = <SPAN class="code-quote">"<SPAN
class="code-keyword">this</SPAN> is a test!"</SPAN>;
+cms::TextMessage* textMsg = session->createTextMessage( text );
+<SPAN class="code-keyword">for</SPAN>( <SPAN class="code-object">int</SPAN>
ix=0; ix<messagesPerType; ++ix ){
+ publisher->publish( textMsg );
+ doSleep();
+}
+
+<SPAN class="code-comment">// Send some bytes messages.
+</SPAN><SPAN class="code-object">char</SPAN> buf[10];
+memset( buf, 0, 10 );
+buf[0] = 0;
+buf[1] = 1;
+buf[2] = 2;
+buf[3] = 3;
+buf[4] = 0;
+buf[5] = 4;
+buf[6] = 5;
+buf[7] = 6;
+cms::BytesMessage* bytesMsg = session->createBytesMessage();
+bytesMsg->setData( buf, 10 );
+<SPAN class="code-keyword">for</SPAN>( <SPAN class="code-object">int</SPAN>
ix=0; ix<messagesPerType; ++ix ){
+ publisher->publish( bytesMsg );
+ doSleep();
+}</PRE>
+</DIV></DIV></DIV>
</DIV>
</TD>
@@ -264,8 +301,9 @@
</DIV>
<DIV id="site-footer">
Added by <A
href="http://goopen.org/confluence/users/viewuserprofile.action?username=jstrachan">James
Strachan</A>,
- last edited by <A
href="http://goopen.org/confluence/users/viewuserprofile.action?username=jstrachan">James
Strachan</A> on Mar 01, 2006
-
+ last edited by <A
href="http://goopen.org/confluence/users/viewuserprofile.action?username=jstrachan">James
Strachan</A> on Jun 27, 2006
+ (<A
href="http://goopen.org/confluence/pages/diffpages.action?pageId=264&originalId=8883">view
change</A>)
+
(<A
href="http://goopen.org/confluence/pages/editpage.action?pageId=264">edit
page</A>)
</DIV>
Modified: incubator/activemq/site/connectivity.html
URL:
http://svn.apache.org/viewvc/incubator/activemq/site/connectivity.html?rev=417389&r1=417388&r2=417389&view=diff
==============================================================================
--- incubator/activemq/site/connectivity.html (original)
+++ incubator/activemq/site/connectivity.html Tue Jun 27 02:44:37 2006
@@ -256,7 +256,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/JNDI+Support" title="JNDI
Support">JNDI Support</a>
+ <a
href="http://goopen.org/confluence/display/ACTIVEMQ/Stomp"
title="Stomp">Stomp</a>
+ <span class="smalltext">(ActiveMQ)</span>
+ <br>
+ <a
href="http://goopen.org/confluence/display/ACTIVEMQ/JNDI+Support" title="JNDI
Support">JNDI Support</a>
<span class="smalltext">(ActiveMQ)</span>
<br>
<a
href="http://goopen.org/confluence/display/ACTIVEMQ/Tomcat"
title="Tomcat">Tomcat</a>
@@ -284,9 +287,6 @@
<span class="smalltext">(ActiveMQ)</span>
<br>
<a
href="http://goopen.org/confluence/display/ACTIVEMQ/RSS+and+Atom" title="RSS
and Atom">RSS and Atom</a>
- <span class="smalltext">(ActiveMQ)</span>
- <br>
- <a
href="http://goopen.org/confluence/display/ACTIVEMQ/Stomp"
title="Stomp">Stomp</a>
<span class="smalltext">(ActiveMQ)</span>
<br>
<a
href="http://goopen.org/confluence/display/ACTIVEMQ/WSIF" title="WSIF">WSIF</a>