You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ai...@apache.org on 2008/04/22 13:59:37 UTC

svn commit: r650447 [3/17] - in /incubator/qpid/branches/forrest-site: ./ classes/ conf/ content/ content/xdocs/ content/xdocs/3rd Party Libraries_attachments/ content/xdocs/Acknowledgment_attachments/ content/xdocs/Developer Pages_attachments/ content...

Added: incubator/qpid/branches/forrest-site/content/xdocs/Cpp Client Java Interop Issues.html
URL: http://svn.apache.org/viewvc/incubator/qpid/branches/forrest-site/content/xdocs/Cpp%20Client%20Java%20Interop%20Issues.html?rev=650447&view=auto
==============================================================================
--- incubator/qpid/branches/forrest-site/content/xdocs/Cpp Client Java Interop Issues.html (added)
+++ incubator/qpid/branches/forrest-site/content/xdocs/Cpp Client Java Interop Issues.html Tue Apr 22 04:58:44 2008
@@ -0,0 +1,71 @@
+<html>
+    <head>
+        <title>Apache Qpid : Cpp Client Java Interop Issues</title>
+	    <link rel="stylesheet" href="styles/site.css" type="text/css" />
+        <META http-equiv="Content-Type" content="text/html; charset=UTF-8">	    
+    </head>
+
+    <body>
+	    <table class="pagecontent" border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#ffffff">
+		    <tr>
+			    <td valign="top" class="pagebody">
+				    <div class="pageheader">
+					    <span class="pagetitle">
+                            Apache Qpid : Cpp Client Java Interop Issues
+                                                    </span>
+				    </div>
+				    <div class="pagesubheading">
+					    This page last changed on Feb 15, 2007 by <font color="#0050B2">mmccorma</font>.
+				    </div>
+
+				    <p>Issues affecting C++ client/Java broker/Java client interop build 6th Feb:</p>
+
+<h2><a name="CppClientJavaInteropIssues-OpenIssues"></a>Open Issues</h2>
+
+<ul>
+	<li><a href="http://issues.apache.org/jira/browse/QPID-243" title="Visit page outside Confluence">http://issues.apache.org/jira/browse/QPID-243</a> Inconsistent use of paths in #includes &#8211; this does not affect interop, will do after 0-9 branch merge</li>
+	<li><a href="http://issues.apache.org/jira/browse/QPID-350" title="Visit page outside Confluence">http://issues.apache.org/jira/browse/QPID-350</a> Broker infinite loop on restart with immediate messages</li>
+</ul>
+
+
+<ul>
+	<li>Non-Apache JIRA - Problem with BDBStore queue recreation at startup - details:
+<div class="preformatted"><div class="preformattedContent">
+<pre>Restarting our application, I sometimes get a "Protocol Error" exception and the following
+message appearing in the broker log. This is even after restarting the broker when there
+are absolutely no connections. 
+RECV: Frame[channel=1; ChannelClose: replyCode=405; replyText=Cannot declare queue, as
+exclusive queue with same name declared on another connection [error code 405]; classId=50;
+methodId=10] 
+
+I deleted the $QPID_WORK/&lt;virtual-host&gt;-store directory and I was able to restart. 
+
+Also, in the application code, the queue is created as shared (single param constructor) so
+not sure why the broker thinks that it is exclusive? 
+</pre>
+</div></div></li>
+</ul>
+
+
+<h2><a name="CppClientJavaInteropIssues-ResolvedIssues"></a>Resolved Issues</h2>
+
+<ul>
+	<li><a href="http://issues.apache.org/jira/browse/QPID-353" title="Visit page outside Confluence">http://issues.apache.org/jira/browse/QPID-353</a> Amend type of destination type from byte to int</li>
+	<li><a href="http://issues.apache.org/jira/browse/QPID-349" title="Visit page outside Confluence">http://issues.apache.org/jira/browse/QPID-349</a> Use the empty string as the default for virtual host name.</li>
+</ul>
+
+
+				    
+                    			    </td>
+		    </tr>
+	    </table>
+	    <table border="0" cellpadding="0" cellspacing="0" width="100%">
+			<tr>
+				<td height="12" background="border/border_bottom.gif"><img src="border/spacer.gif" width="1" height="1" border="0"/></td>
+			</tr>
+		    <tr>
+			    <td align="center"><font color="grey">Document generated by Confluence on Apr 22, 2008 02:47</font></td>
+		    </tr>
+	    </table>
+    </body>
+</html>
\ No newline at end of file

Propchange: incubator/qpid/branches/forrest-site/content/xdocs/Cpp Client Java Interop Issues.html
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/qpid/branches/forrest-site/content/xdocs/CppApiGuide.html
URL: http://svn.apache.org/viewvc/incubator/qpid/branches/forrest-site/content/xdocs/CppApiGuide.html?rev=650447&view=auto
==============================================================================
--- incubator/qpid/branches/forrest-site/content/xdocs/CppApiGuide.html (added)
+++ incubator/qpid/branches/forrest-site/content/xdocs/CppApiGuide.html Tue Apr 22 04:58:44 2008
@@ -0,0 +1,82 @@
+<html>
+    <head>
+        <title>Apache Qpid : CppApiGuide</title>
+	    <link rel="stylesheet" href="styles/site.css" type="text/css" />
+        <META http-equiv="Content-Type" content="text/html; charset=UTF-8">	    
+    </head>
+
+    <body>
+	    <table class="pagecontent" border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#ffffff">
+		    <tr>
+			    <td valign="top" class="pagebody">
+				    <div class="pageheader">
+					    <span class="pagetitle">
+                            Apache Qpid : CppApiGuide
+                                                    </span>
+				    </div>
+				    <div class="pagesubheading">
+					    This page last changed on Sep 26, 2007 by <font color="#0050B2">gsim@redhat.com</font>.
+				    </div>
+
+				    <h1><a name="CppApiGuide-C%5CpublicAPIguidelines."></a>C+&#43; public API guidelines.</h1>
+
+<p>These guidelines are for the public client API to be released in qpid 1.0. The "plugin" API exposed for bdbstore should eventually follow these guidelines but it can be deferred.</p>
+
+<h2><a name="CppApiGuide-Publicheaderfiles"></a>Public header files</h2>
+
+<p>Public headers under: qpid/cpp/src/include&nbsp;</p>
+
+<p>Non-unit client tests&nbsp; should be built with &#45;I include and <em>without</em> &#45;I . so that missing public headers can be quickly identified.</p>
+
+<p>&nbsp;Only src/include headers are installed with package qpidc-devel. Package qpidd-devel should only install src/include headers, but for 1.0 it may still install private headers.</p>
+
+
+<h2><a name="CppApiGuide-PIMPLidiom"></a>PIMPL idiom</h2>
+
+
+<p>Value classes needed by the user (e.g. framing data types, message content) are exposed as normal classes in public headers.</p>
+
+<p>Service classes (e.g. Session, Connection etc) use the pimpl idiom for&nbsp; compatibility isolation. See <a href="http://en.wikipedia.org/wiki/Pimpl" title="Visit page outside Confluence">http://en.wikipedia.org/wiki/Pimpl</a>.</p>
+
+
+<h2><a name="CppApiGuide-Threadsafety"></a>Thread safety</h2>
+
+<p>I believe making the session thread safe will make it simpler to use in various circumstances (some of which may be unforeseen). I don't think it necessarily adds significant overhead (though this is something we can verify).</p>
+
+				    
+                                            <div class="tabletitle">
+                            <a name="comments">Comments:</a>
+                        </div>
+
+                        <table border="0" width="100%">
+                                                        <tr>
+                                <td >
+                                    <a name="comment-66761"></a>
+                                    <font class="smallfont"><p>= Namespaces in Client Applications =</p>
+
+<p>Currently, a client application needs the following namespaces:</p>
+
+<p>using namespace qpid::client;<br/>
+using namespace qpid::framing;</p>
+
+<p>Why should someone writing a client application need to know about the framing namespace? And is 'framing' really the best name to describe this namespace?</p></font>
+                                    <div align="left" class="smallfont" style="color: #666666; width: 98%; margin-bottom: 10px;">
+                                        <img src="icons/comment_16.gif" height="16" width="16" border="0" align="absmiddle"/>
+                                        Posted by jonathan.robie@redhat.com at Sep 20, 2007 06:58
+                                    </div>
+                                </td>
+                            </tr>
+                                                    </table>
+                    			    </td>
+		    </tr>
+	    </table>
+	    <table border="0" cellpadding="0" cellspacing="0" width="100%">
+			<tr>
+				<td height="12" background="border/border_bottom.gif"><img src="border/spacer.gif" width="1" height="1" border="0"/></td>
+			</tr>
+		    <tr>
+			    <td align="center"><font color="grey">Document generated by Confluence on Apr 22, 2008 02:47</font></td>
+		    </tr>
+	    </table>
+    </body>
+</html>
\ No newline at end of file

Propchange: incubator/qpid/branches/forrest-site/content/xdocs/CppApiGuide.html
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/qpid/branches/forrest-site/content/xdocs/CppEventChannelIo.html
URL: http://svn.apache.org/viewvc/incubator/qpid/branches/forrest-site/content/xdocs/CppEventChannelIo.html?rev=650447&view=auto
==============================================================================
--- incubator/qpid/branches/forrest-site/content/xdocs/CppEventChannelIo.html (added)
+++ incubator/qpid/branches/forrest-site/content/xdocs/CppEventChannelIo.html Tue Apr 22 04:58:44 2008
@@ -0,0 +1,167 @@
+<html>
+    <head>
+        <title>Apache Qpid : CppEventChannelIo</title>
+	    <link rel="stylesheet" href="styles/site.css" type="text/css" />
+        <META http-equiv="Content-Type" content="text/html; charset=UTF-8">	    
+    </head>
+
+    <body>
+	    <table class="pagecontent" border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#ffffff">
+		    <tr>
+			    <td valign="top" class="pagebody">
+				    <div class="pageheader">
+					    <span class="pagetitle">
+                            Apache Qpid : CppEventChannelIo
+                                                    </span>
+				    </div>
+				    <div class="pagesubheading">
+					    This page last changed on Nov 06, 2006 by <font color="#0050B2">aconway</font>.
+				    </div>
+
+				    <h1><a name="CppEventChannelIo-EventchannelIOabstraction."></a>Event channel IO abstraction.</h1>
+
+<p>Goals: provide an IO abstraction layer that can be efficiently implemented using differente techniques:</p>
+
+<ul>
+	<li>select/poll/epoll</li>
+	<li>aio_</li>
+	<li>ec_ new linux event channel.</li>
+	<li>shared mem, IPC etc.</li>
+</ul>
+
+
+<p>The event channel is the central IO absctraction.</p>
+
+<p>Async requests are posted to the channel as Events. When the request is complete it is returned from getEvent() with the data filled in.</p>
+
+<p>We provide synchronous APIs to wrap post(event), wait for getEvent(). On posix these APIs are actually implemented using user-level context swithching so we get a simple programing model with minimal blocking and kernel context switching.</p>
+
+<p>Note: this means that code before and after an apparently synchronous call ''may execute in different threads''. Don't use thread-local<br/>
+storage. The term "task" will denote the user-level execution context and we'll provide "task-locak storage" that is carried with the user<br/>
+context if we need it. </p>
+
+<p>We can provide some simple in-process synchronization via the event channel to allow use level tasks to block on application events.</p>
+
+<h2><a name="CppEventChannelIo-Coreconcepts%3A"></a>Core concepts:</h2>
+
+<p><tt>EventChannel</tt>:</p>
+
+<ul>
+	<li>Manages thread pool.</li>
+</ul>
+
+
+<ul>
+	<li>Worker threads loop getting and processing events.</li>
+</ul>
+
+
+<ul>
+	<li>Async requests: post request event, it will be processed when complete.</li>
+</ul>
+
+
+<ul>
+	<li>Notification: Threads can block on a notification event to be woken when some other thread posts that event.</li>
+</ul>
+
+
+<p><tt>Task</tt>:</p>
+
+<ul>
+	<li>like lightweight thread</li>
+</ul>
+
+
+<ul>
+	<li>ucontext APIs for user-level context switch.</li>
+</ul>
+
+
+<p>Linux ec_ + ucontext implementation:</p>
+
+<ul>
+	<li>EventChannel is thin facade over native ec_ APIs.</li>
+</ul>
+
+
+<ul>
+	<li>Tasks are scheduled onto threads.</li>
+</ul>
+
+
+<ul>
+	<li>ideally our threads ''never block'' (but they can be preempted)</li>
+</ul>
+
+
+<ul>
+	<li>when a thread hits a blocking point it suspends the current task and swaps to a ready task.</li>
+</ul>
+
+
+<ul>
+	<li>when the suspended task is unblocked (e.g. async IO completes) it becomes ready and will be picked up by another thread.</li>
+</ul>
+
+
+<p>Linux epoll + ucontext:</p>
+
+<ul>
+	<li>Prove ucontext ideas.</li>
+</ul>
+
+
+<ul>
+	<li>Use traditional polling inside EventChannel.</li>
+</ul>
+
+
+<p>APR portable impl: only need client support - simple blocking socket calls.</p>
+
+<p>Computing thread pool size:</p>
+
+<ul>
+	<li>Initial size based on availabe CPU paralleism</li>
+</ul>
+
+
+<ul>
+	<li>On linux /proc/cpuinfo? Any portable options.</li>
+</ul>
+
+
+<ul>
+	<li>Thread pool grows automatically to avoid deadlock.</li>
+</ul>
+
+
+<p><tt>ThreadPool</tt>: Size should stay close to actuall hardware paralellism + some delta due to pre-empted threads and thread-blocking<br/>
+synchronization calls required in the event channel implementation itself.</p>
+
+<p>Questions:</p>
+
+<ul>
+	<li>Does the thread pool need to shrink to reclaim resources?</li>
+</ul>
+
+
+<ul>
+	<li>Is there a risk of unbounded growth? How to avoid without deadlock?</li>
+</ul>
+
+
+				    
+                    			    </td>
+		    </tr>
+	    </table>
+	    <table border="0" cellpadding="0" cellspacing="0" width="100%">
+			<tr>
+				<td height="12" background="border/border_bottom.gif"><img src="border/spacer.gif" width="1" height="1" border="0"/></td>
+			</tr>
+		    <tr>
+			    <td align="center"><font color="grey">Document generated by Confluence on Apr 22, 2008 02:47</font></td>
+		    </tr>
+	    </table>
+    </body>
+</html>
\ No newline at end of file

Propchange: incubator/qpid/branches/forrest-site/content/xdocs/CppEventChannelIo.html
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/qpid/branches/forrest-site/content/xdocs/CppHandlerChains.html
URL: http://svn.apache.org/viewvc/incubator/qpid/branches/forrest-site/content/xdocs/CppHandlerChains.html?rev=650447&view=auto
==============================================================================
--- incubator/qpid/branches/forrest-site/content/xdocs/CppHandlerChains.html (added)
+++ incubator/qpid/branches/forrest-site/content/xdocs/CppHandlerChains.html Tue Apr 22 04:58:44 2008
@@ -0,0 +1,76 @@
+<html>
+    <head>
+        <title>Apache Qpid : CppHandlerChains</title>
+	    <link rel="stylesheet" href="styles/site.css" type="text/css" />
+        <META http-equiv="Content-Type" content="text/html; charset=UTF-8">	    
+    </head>
+
+    <body>
+	    <table class="pagecontent" border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#ffffff">
+		    <tr>
+			    <td valign="top" class="pagebody">
+				    <div class="pageheader">
+					    <span class="pagetitle">
+                            Apache Qpid : CppHandlerChains
+                                                    </span>
+				    </div>
+				    <div class="pagesubheading">
+					    This page last changed on Sep 20, 2007 by <font color="#0050B2">aconway</font>.
+				    </div>
+
+				    <p>The C++ broker uses handler chains to break complex processing into individual pieces.</p>
+
+<ul>
+	<li>Each session has its own set of FrameHandler chains.</li>
+	<li>Frames from the network are delivered to the first handler in the chain.</li>
+	<li>Handlers do something with a frame, then pass it to the next handler.</li>
+	<li>Handlers may "filter" frames by not passing some frames to the next handler.</li>
+</ul>
+
+
+<h1><a name="CppHandlerChains-Currentstatus%282002%2F9%2F20%29"></a>Current status (2002/9/20)</h1>
+
+<p>Each chain starts with a SessionHandler. It handles L2 (session open, close etc.) and passes other frames to the next handler.</p>
+
+<p>L3/L4 frames are handled by the SemanticHandler.</p>
+
+<p>For clustering, a ClusterHandler is inserted at the start of the chain. It replicates frames to a backup broker so the backup can handle failover. It then passes frames on to the normal session handlers.</p>
+
+<h1><a name="CppHandlerChains-Approachformultiframesegments"></a>Approach for multi-frame segments</h1>
+
+<ul>
+	<li>The frame handler chain continues to handle individual frames.</li>
+	<li>Each handler uses a FrameSet to accumulate its frames.</li>
+	<li>Frame no longer contains a Body, moved to FrameSet
+<div class="code"><div class="codeContent">
+<pre class="code-java">class FrameSet { <span class="code-comment">// sketch
+</span> void add(<span class="code-keyword">const</span> Frame&amp; frame); <span class="code-comment">// True <span class="code-keyword">if</span> 
+</span> <span class="code-keyword">const</span> AMQMethodBody* getMethod(); <span class="code-comment">// 0 means not complete.
+</span> <span class="code-keyword">const</span> AMQHeaderBody* getHeader();
+ <span class="code-keyword">const</span> AMQContentBody* getContent(); 
+};</pre>
+</div></div>
+<p>Note: All the visitor/dispatch classes using AMQFrame need to be reworked. Dispatch will always be based on an AMQMethodBody, not a frame. </p></li>
+</ul>
+
+
+<p>Rationale: </p>
+
+<p>''Frame rather than Segment/FrameSet handlers'': Allows most flexibility to compose or not compose frames into segments &amp; FrameSets. For example a cluster handler needs to replicate frame-by-frame, so we don't want to compose the full segment up front. Since the FrameSet class provides the composition logic, this is specified only once and easy to use in frame handlers.</p>
+
+<p>''No Segment class'': A segment by itself is not very useful. A non-content method is just a FrameSet containing a single method segment. For content bearing methods are a frameset with headers &amp; content. There's little value for a stand alone segment class.</p>
+
+				    
+                    			    </td>
+		    </tr>
+	    </table>
+	    <table border="0" cellpadding="0" cellspacing="0" width="100%">
+			<tr>
+				<td height="12" background="border/border_bottom.gif"><img src="border/spacer.gif" width="1" height="1" border="0"/></td>
+			</tr>
+		    <tr>
+			    <td align="center"><font color="grey">Document generated by Confluence on Apr 22, 2008 02:47</font></td>
+		    </tr>
+	    </table>
+    </body>
+</html>
\ No newline at end of file

Propchange: incubator/qpid/branches/forrest-site/content/xdocs/CppHandlerChains.html
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/qpid/branches/forrest-site/content/xdocs/CppStyleGuide.html
URL: http://svn.apache.org/viewvc/incubator/qpid/branches/forrest-site/content/xdocs/CppStyleGuide.html?rev=650447&view=auto
==============================================================================
--- incubator/qpid/branches/forrest-site/content/xdocs/CppStyleGuide.html (added)
+++ incubator/qpid/branches/forrest-site/content/xdocs/CppStyleGuide.html Tue Apr 22 04:58:44 2008
@@ -0,0 +1,86 @@
+<html>
+    <head>
+        <title>Apache Qpid : CppStyleGuide</title>
+	    <link rel="stylesheet" href="styles/site.css" type="text/css" />
+        <META http-equiv="Content-Type" content="text/html; charset=UTF-8">	    
+    </head>
+
+    <body>
+	    <table class="pagecontent" border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#ffffff">
+		    <tr>
+			    <td valign="top" class="pagebody">
+				    <div class="pageheader">
+					    <span class="pagetitle">
+                            Apache Qpid : CppStyleGuide
+                                                    </span>
+				    </div>
+				    <div class="pagesubheading">
+					    This page last changed on Apr 24, 2007 by <font color="#0050B2">aconway</font>.
+				    </div>
+
+				    <h1><a name="CppStyleGuide-QpidCstyleguide"></a>Qpid C++ style guide</h1>
+
+<p>Qpid C++ follows this guide: <a href="http://geosoft.no/development/cppstyle.html" title="Visit page outside Confluence">http://geosoft.no/development/cppstyle.html</a></p>
+
+<p>With the following amendments:</p>
+
+<ul>
+	<li>Rule 34: Qpid source files have .h and .cpp extensions.</li>
+	<li>Rule 71: Qpid uses 4 space indent, not 2. <b>No tabs</b>.</li>
+	<li>Rule 75, 81: Qpid allows (but does not require) else/catch to be on same line as preceeding }</li>
+	<li>Rule 11: Qpid does <em>not</em> add an underscore to member variable names.</li>
+</ul>
+
+
+<p>And the following additional rules:</p>
+
+<ul>
+	<li>Rule q1: Unlike other blocks, the contents of namespace blocks are <em>not</em> indented to prevent excessive line splitting, and multiple namespaces may be opened or closed on a single line. For example:
+<div class="code"><div class="codeContent">
+<pre class="code-java">namespace qpid { namespace common {
+
+class SomeClass {
+  void foo();
+};
+
+}} <span class="code-comment">// namespace qpid::common</span></pre>
+</div></div></li>
+</ul>
+
+
+
+
+<h2><a name="CppStyleGuide-Debateandchanges"></a>Debate and changes</h2>
+
+<p>The discussion on qpid-dev did raise debate about some points of the style guide. The exceptions and new rules above reflect:</p>
+<ul>
+	<li>Points that were agreed on the list.</li>
+	<li>De-facto style of the codebase as it stands today.</li>
+</ul>
+
+
+<p>Anyone who feels strongly about further modifications to the style guide should:</p>
+<ol>
+	<li>Raise the issue on qpid-dev.</li>
+	<li>Get consensus among the active qpid C++ developers for the change.</li>
+	<li>Reformat the entire qpid codebase to conform to the change.</li>
+</ol>
+
+
+<p>If you are not willing to do step 3 then don't bother raising the issue.</p>
+
+
+				    
+                    			    </td>
+		    </tr>
+	    </table>
+	    <table border="0" cellpadding="0" cellspacing="0" width="100%">
+			<tr>
+				<td height="12" background="border/border_bottom.gif"><img src="border/spacer.gif" width="1" height="1" border="0"/></td>
+			</tr>
+		    <tr>
+			    <td align="center"><font color="grey">Document generated by Confluence on Apr 22, 2008 02:47</font></td>
+		    </tr>
+	    </table>
+    </body>
+</html>
\ No newline at end of file

Propchange: incubator/qpid/branches/forrest-site/content/xdocs/CppStyleGuide.html
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/qpid/branches/forrest-site/content/xdocs/CppTips.html
URL: http://svn.apache.org/viewvc/incubator/qpid/branches/forrest-site/content/xdocs/CppTips.html?rev=650447&view=auto
==============================================================================
--- incubator/qpid/branches/forrest-site/content/xdocs/CppTips.html (added)
+++ incubator/qpid/branches/forrest-site/content/xdocs/CppTips.html Tue Apr 22 04:58:44 2008
@@ -0,0 +1,55 @@
+<html>
+    <head>
+        <title>Apache Qpid : CppTips</title>
+	    <link rel="stylesheet" href="styles/site.css" type="text/css" />
+        <META http-equiv="Content-Type" content="text/html; charset=UTF-8">	    
+    </head>
+
+    <body>
+	    <table class="pagecontent" border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#ffffff">
+		    <tr>
+			    <td valign="top" class="pagebody">
+				    <div class="pageheader">
+					    <span class="pagetitle">
+                            Apache Qpid : CppTips
+                                                    </span>
+				    </div>
+				    <div class="pagesubheading">
+					    This page last changed on Mar 28, 2007 by <font color="#0050B2">aconway</font>.
+				    </div>
+
+				    <p>Some advice on makefiles and build system</p>
+<ul>
+	<li>SingleMakefile</li>
+</ul>
+
+
+<p>This is a collection of coding guidelines, some specific to Qpid, some just good practice in C++.  </p>
+<ul>
+	<li><a href="PrivateLocking.html" title="PrivateLocking">PrivateLocking</a></li>
+	<li><a href="ScopedLocking.html" title="ScopedLocking">ScopedLocking</a></li>
+	<li><a href="SharedPtr.html" title="SharedPtr">SharedPtr</a></li>
+	<li><a href="BewareStdStringLiterals.html" title="BewareStdStringLiterals">BewareStdStringLiterals</a></li>
+	<li><a href="NeverUseStaticLocalVariables.html" title="NeverUseStaticLocalVariables">NeverUseStaticLocalVariables</a></li>
+	<li><a href="BewareOfStringPromotion.html" title="BewareOfStringPromotion">BewareOfStringPromotion</a></li>
+	<li><a href="ReturnStdStringByValue.html" title="ReturnStdStringByValue">ReturnStdStringByValue</a></li>
+	<li><a href="NoUsingNamespaceInHeaders.html" title="NoUsingNamespaceInHeaders">NoUsingNamespaceInHeaders</a></li>
+	<li><a href="ValgrindBadSuppressions.html" title="ValgrindBadSuppressions">ValgrindBadSuppressions</a></li>
+</ul>
+
+
+
+				    
+                    			    </td>
+		    </tr>
+	    </table>
+	    <table border="0" cellpadding="0" cellspacing="0" width="100%">
+			<tr>
+				<td height="12" background="border/border_bottom.gif"><img src="border/spacer.gif" width="1" height="1" border="0"/></td>
+			</tr>
+		    <tr>
+			    <td align="center"><font color="grey">Document generated by Confluence on Apr 22, 2008 02:47</font></td>
+		    </tr>
+	    </table>
+    </body>
+</html>
\ No newline at end of file

Propchange: incubator/qpid/branches/forrest-site/content/xdocs/CppTips.html
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/qpid/branches/forrest-site/content/xdocs/Developer Pages.html
URL: http://svn.apache.org/viewvc/incubator/qpid/branches/forrest-site/content/xdocs/Developer%20Pages.html?rev=650447&view=auto
==============================================================================
--- incubator/qpid/branches/forrest-site/content/xdocs/Developer Pages.html (added)
+++ incubator/qpid/branches/forrest-site/content/xdocs/Developer Pages.html Tue Apr 22 04:58:44 2008
@@ -0,0 +1,82 @@
+<html>
+    <head>
+        <title>Apache Qpid : Developer Pages</title>
+	    <link rel="stylesheet" href="styles/site.css" type="text/css" />
+        <META http-equiv="Content-Type" content="text/html; charset=UTF-8">	    
+    </head>
+
+    <body>
+	    <table class="pagecontent" border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#ffffff">
+		    <tr>
+			    <td valign="top" class="pagebody">
+				    <div class="pageheader">
+					    <span class="pagetitle">
+                            Apache Qpid : Developer Pages
+                                                    </span>
+				    </div>
+				    <div class="pagesubheading">
+					    This page last changed on Apr 18, 2008 by <font color="#0050B2">godfrer</font>.
+				    </div>
+
+				    <h2><a name="DeveloperPages-DeveloperPages"></a>Developer Pages</h2>
+
+<h3><a name="DeveloperPages-Implementations%2CStyleguidesandTools"></a>Implementations, Style guides and Tools</h3>
+
+<p>Follow the links below to view documentation about the Java &amp; C++ brokers, client implementations and other useful project information. Our project documentation is currently being expanded so check back for updates !</p>
+
+<ul>
+	<li><a href="Qpid .Net Documentation.html" title="Qpid .Net Documentation">Qpid .Net Documentation</a></li>
+	<li><a href="Qpid Java Documentation.html" title="Qpid Java Documentation">Qpid Java Documentation</a></li>
+	<li><a href="Qpid 'C++' Documentation.html" title="Qpid 'C++' Documentation">Qpid 'C&#43;&#43;' Documentation</a></li>
+	<li><a href="PythonBrokerTest.html" title="PythonBrokerTest">Qpid Python Test Framework</a></li>
+	<li><a href="Qpid Release Page.html" title="Qpid Release Page">Qpid Release Page</a></li>
+	<li><a href="source repository.html" title="Source Repository">Subversion repository</a></li>
+</ul>
+
+
+<h3><a name="DeveloperPages-Designnotes"></a>Design notes </h3>
+<ul>
+	<li><a href="Management Design notes.html" title="Management Design notes">Management Design notes</a> - The layered AMQP management protocol for mgmt tools (currently in C++ broker)</li>
+	<li><a href="http://cwiki.apache.org/confluence/display/qpid/Multiple+AMQP+Version+Support" title="Visit page outside Confluence">AMQPVersion</a> -  Multiple AMQP version support design notes</li>
+	<li><a href="ClusteringHA.html" title="ClusteringHA">ClusteringHA</a> - Federation, HA, and Clustering design notes</li>
+	<li><a href="AMQP0-9-DesignNotes.html" title="AMQP0-9-DesignNotes">AMQP0&#45;9&#45;DesignNotes</a> - Design notes for AMQP 0-9 implementation</li>
+	<li><a href="Queue Replay.html" title="Queue Replay">Queue Replay</a> - Adding replay to queues.</li>
+	<li><a href="Interop Testing Specification.html" title="Interop Testing Specification">Interop Testing Specification</a> - Common test cases to ensure all clients and brokers interop.</li>
+	<li><a href="The AMQP Distributed Transaction Classes.html" title="The AMQP Distributed Transaction Classes">The AMQP Distributed Transaction Classes</a> - The+AMQP+Distributed+Transaction+Classes</li>
+</ul>
+
+
+<h3><a name="DeveloperPages-WeeklyDeveloperMeetingMinutes"></a>Weekly Developer Meeting Minutes</h3>
+
+<ul>
+	<li><a href="Qpid Java Meeting Minutes 28-03-2008.html" title="Qpid Java Meeting Minutes 28-03-2008">Qpid Java Meeting Minutes 2008-03-28</a></li>
+	<li><a href="Qpid Java Meeting Minutes 04-04-2008.html" title="Qpid Java Meeting Minutes 04-04-2008">Qpid Java Meeting Minutes 2008-04-04</a></li>
+	<li><a href="Qpid Java Meeting Minutes 11-04-2008.html" title="Qpid Java Meeting Minutes 11-04-2008">Qpid Java Meeting Minutes 2008-04-11</a></li>
+	<li><a href="Qpid Java Meeting Minutes 2008-04-18.html" title="Qpid Java Meeting Minutes 2008-04-18">Qpid Java Meeting Minutes 2008&#45;04&#45;18</a></li>
+</ul>
+
+
+				    					    <br/>
+                        <div class="tabletitle">
+                            <a name="attachments">Attachments:</a>
+                        </div>
+
+                        <div class="greybox" align="left">
+                                                            <img src="icons/bullet_blue.gif" height="8" width="8" alt=""/>
+                                <a href="Developer Pages_attachments/merege_test_output.txt">merege_test_output.txt</a> (application/octet-stream)
+                                <br/>
+                                                    </div>
+				    
+                    			    </td>
+		    </tr>
+	    </table>
+	    <table border="0" cellpadding="0" cellspacing="0" width="100%">
+			<tr>
+				<td height="12" background="border/border_bottom.gif"><img src="border/spacer.gif" width="1" height="1" border="0"/></td>
+			</tr>
+		    <tr>
+			    <td align="center"><font color="grey">Document generated by Confluence on Apr 22, 2008 02:47</font></td>
+		    </tr>
+	    </table>
+    </body>
+</html>
\ No newline at end of file

Propchange: incubator/qpid/branches/forrest-site/content/xdocs/Developer Pages.html
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/qpid/branches/forrest-site/content/xdocs/Developer Pages_attachments/merege_test_output.txt
URL: http://svn.apache.org/viewvc/incubator/qpid/branches/forrest-site/content/xdocs/Developer%20Pages_attachments/merege_test_output.txt?rev=650447&view=auto
==============================================================================
--- incubator/qpid/branches/forrest-site/content/xdocs/Developer Pages_attachments/merege_test_output.txt (added)
+++ incubator/qpid/branches/forrest-site/content/xdocs/Developer Pages_attachments/merege_test_output.txt Tue Apr 22 04:58:44 2008
@@ -0,0 +1,470 @@
+[INFO] Scanning for projects...
+[INFO] Reactor build order: 
+[INFO]   Qpid
+[INFO]   Qpid Common Utilities
+[INFO]   Qpid Broker
+[INFO]   junit-toolkit
+[INFO]   Qpid Client
+[INFO]   Qpid Plugins
+[INFO]   junit-toolkit-maven-plugin
+[INFO]   Qpid System Tests
+[INFO]   Qpid Performance Tests
+[INFO]   Qpid Integration Tests
+[INFO]   Qpid Management
+[INFO]   Qpid Example
+[INFO]   Qpid Client for Java 1.4
+[INFO] ----------------------------------------------------------------------------
+[INFO] Building Qpid
+[INFO]    task-segment: [test]
+[INFO] ----------------------------------------------------------------------------
+[INFO] No goals needed for project - skipping
+[INFO] ----------------------------------------------------------------------------
+[INFO] Building Qpid Common Utilities
+[INFO]    task-segment: [test]
+[INFO] ----------------------------------------------------------------------------
+[INFO] [antrun:run {execution: protocol-version}]
+[INFO] Executing tasks
+     [echo] "C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\common\target/generated-sources/gentools"
+
+compile_generator:
+
+compile:
+
+generate:
+     [java] XML files: [C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\specs/amqp.0-8.xml, C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\specs/amqp.0-9.xml]
+     [java]   "C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\specs/amqp.0-8.xml": Found version 8-0.
+     [java]   "C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\specs/amqp.0-9.xml": Found version 0-9.
+     [java] Looking for template files in directory: C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\common\templates\model
+     [java] Looking for version specific template files in directory: C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\common\templates\model\version
+     [java] model template file(s):
+     [java]   C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\common\templates\model\ClientMethodDispatcherInterface.vm
+     [java] model template file(s):
+     [java]   C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\common\templates\model\MethodDispatcherInterface.vm
+     [java] model template file(s):
+     [java]   C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\common\templates\model\MethodRegistryClass.vm
+     [java] model template file(s):
+     [java]   C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\common\templates\model\ProtocolVersionListClass.vm
+     [java] model template file(s):
+     [java]   C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\common\templates\model\ServerMethodDispatcherInterface.vm
+     [java] model template file(s):
+     [java]   C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\common\templates\model\version\AmqpConstantsClass.vm
+     [java] model template file(s):
+     [java]   C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\common\templates\model\version\ClientMethodDispatcherInterface.vm
+     [java] model template file(s):
+     [java]   C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\common\templates\model\version\MethodDispatcherInterface.vm
+     [java] model template file(s):
+     [java]   C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\common\templates\model\version\MethodRegistryClass.vm
+     [java] model template file(s):
+     [java]   C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\common\templates\model\version\ServerMethodDispatcherInterface.vm
+     [java] Looking for template files in directory: C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\common\templates\class
+     [java] Looking for version specific template files in directory: C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\common\templates\class\version
+     [java] Looking for template files in directory: C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\common\templates\method
+     [java] Looking for version specific template files in directory: C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\common\templates\method\version
+     [java] method template file(s):
+     [java]   C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\common\templates\method\MethodBodyInterface.vm
+     [java] method template file(s):
+     [java]   C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\common\templates\method\version\MethodBodyClass.vm
+     [java] Looking for template files in directory: C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\common\templates\field
+     [java] Looking for version specific template files in directory: C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\common\templates\field\version
+     [java] Generation directory: C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\common\target\generated-sources\gentools\org\apache\qpid\framing
+     [java] Files generated: 0
+     [java] Done.
+[INFO] Executed tasks
+[INFO] Registering compile source root C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\common\target\generated-sources\gentools
+[INFO] [jython:jython {execution: jython}]
+[INFO] [resources:resources]
+[INFO] Using default encoding to copy filtered resources.
+[INFO] [compiler:compile]
+Compiling 325 source files to C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\common\target\classes
+[INFO] [antrun:run {execution: version_properties}]
+[INFO] Executing tasks
+[propertyfile] Updating property file: C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\common\target\classes\qpidversion.properties
+[INFO] Executed tasks
+[INFO] [resources:testResources]
+[INFO] Using default encoding to copy filtered resources.
+[INFO] [compiler:testCompile]
+[INFO] Nothing to compile - all classes are up to date
+[INFO] [surefire:test]
+[INFO] Surefire report directory: C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\common\target\surefire-reports
+
+-------------------------------------------------------
+ T E S T S
+-------------------------------------------------------
+Running org.apache.qpid.pool.PoolingFilterTest
+log4j:WARN No appenders could be found for logger (org.apache.qpid.pool.PoolingFilter).
+log4j:WARN Please initialize the log4j system properly.
+Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.125 sec
+Running org.apache.qpid.framing.BasicContentHeaderPropertiesTest
+Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.156 sec
+Running org.apache.qpid.util.CommandLineParserTest
+Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec
+Running org.apache.qpid.framing.AMQShortStringTest
+Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
+Running org.apache.qpid.util.SerialTest
+Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec
+Running org.apache.qpid.session.TestSession
+Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
+Running org.apache.qpidity.transport.ConnectionTest
+Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.594 sec
+Running org.apache.qpid.framing.PropertyFieldTableTest
+Tests run: 23, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.093 sec
+
+Results :
+Tests run: 71, Failures: 0, Errors: 0, Skipped: 0
+
+[INFO] ----------------------------------------------------------------------------
+[INFO] Building Qpid Broker
+[INFO]    task-segment: [test]
+[INFO] ----------------------------------------------------------------------------
+[WARNING] While downloading javacc:javacc:3.2
+  This artifact has been relocated to net.java.dev.javacc:javacc:3.2.
+
+
+[INFO] [javacc:javacc {execution: default}]
+[INFO] Nothing to process - all grammars are up to date
+[INFO] [resources:resources]
+[INFO] Using default encoding to copy filtered resources.
+[INFO] [compiler:compile]
+[INFO] Nothing to compile - all classes are up to date
+[INFO] [antrun:run {execution: version_properties}]
+[INFO] Executing tasks
+[propertyfile] Updating property file: C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\broker\target\classes\qpidversion.properties
+[INFO] Executed tasks
+[INFO] [resources:testResources]
+[INFO] Using default encoding to copy filtered resources.
+[INFO] [compiler:testCompile]
+[INFO] Nothing to compile - all classes are up to date
+[INFO] [surefire:test]
+[INFO] Surefire report directory: C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\broker\target\surefire-reports
+main 2008-04-17 15:48:19,460 WARN [security.auth.sasl.UsernamePasswordInitialiser] we need a server that will correctly convert the incomming plain text for comparison to file.
+main 2008-04-17 15:48:20,320 WARN [server.security.access.ACLManager] No ACL Plugin specified. Using default ACL Plugin 'AllowAll' for VirtualHost:'test'
+
+-------------------------------------------------------
+ T E S T S
+-------------------------------------------------------
+Running org.apache.qpid.server.util.LoggingProxyTest
+Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec
+Running org.apache.qpid.server.SelectorParserTest
+Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.063 sec
+Running org.apache.qpid.server.configuration.TestPropertyUtils
+Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
+Running org.apache.qpid.server.exchange.ExchangeMBeanTest
+Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.125 sec
+Running org.apache.qpid.server.queue.AMQQueueAlertTest
+Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.312 sec
+Running org.apache.qpid.server.exchange.HeadersBindingTest
+Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
+Running org.apache.qpid.server.queue.AMQQueueMBeanTest
+Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.079 sec
+Running org.apache.qpid.server.protocol.TestIoSession
+Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
+Running org.apache.qpid.server.store.TestableMemoryMessageStore
+Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
+Running org.apache.qpid.server.exchange.DestWildExchangeTest
+Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec
+Running org.apache.qpid.server.protocol.TestMinaProtocolSession
+Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
+
+Results :
+Tests run: 53, Failures: 0, Errors: 0, Skipped: 0
+
+[INFO] [antrun:run {execution: python_test}]
+[INFO] Executing tasks
+
+run-tests:
+     [echo] Starting Broker with command
+     [java] main 2008-04-17 15:48:22,789 DEBUG [apache.qpid.common.QpidProperties] Dumping QpidProperties
+     [java] main 2008-04-17 15:48:22,789 DEBUG [apache.qpid.common.QpidProperties] Property: qpid.version Value: 1.0-incubating-M3-SNAPSHOT
+     [java] main 2008-04-17 15:48:22,789 DEBUG [apache.qpid.common.QpidProperties] Property: qpid.svnversion Value: 649054:649132
+     [java] main 2008-04-17 15:48:22,789 DEBUG [apache.qpid.common.QpidProperties] Property: qpid.name Value: Qpid Broker
+     [java] main 2008-04-17 15:48:22,789 DEBUG [apache.qpid.common.QpidProperties] End of property dump
+     [java] Qpid Broker - 1.0-incubating-M3-SNAPSHOT build: 649054:649132 (AMQP version(s) [major.minor]: 8-0, 0-9)
+     [java] Using configuration file C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\broker\etc\config.xml
+     [java] Configuring logger using configuration file C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\broker\etc\log4j.xml
+     [java] 2008-04-17 15:48:23,789 WARN  [main] management.AMQUserManagementMBean (AMQUserManagementMBean.java:387) - Access rights contains user 'admin' but there is no authentication data for that user
+     [java] 2008-04-17 15:48:23,789 WARN  [main] management.AMQUserManagementMBean (AMQUserManagementMBean.java:387) - Access rights contains user 'user' but there is no authentication data for that user
+     [java] 2008-04-17 15:48:24,570 WARN  [main] management.JMXManagedObjectRegistry (JMXManagedObjectRegistry.java:153) - JMX: Started JMXConnector server on port '2111' with security disabled
+     [java] 2008-04-17 15:48:24,679 WARN  [main] access.ACLManager (ACLManager.java:52) - No ACL Plugin specified. Using default ACL Plugin 'AllowAll' for VirtualHost:'localhost'
+     [java] 2008-04-17 15:48:24,711 WARN  [main] access.ACLManager (ACLManager.java:52) - No ACL Plugin specified. Using default ACL Plugin 'AllowAll' for VirtualHost:'development'
+     [java] 2008-04-17 15:48:24,726 WARN  [main] access.ACLManager (ACLManager.java:52) - No ACL Plugin specified. Using default ACL Plugin 'AllowAll' for VirtualHost:'test'
+     [java] 2008-04-17 15:48:24,726 INFO  [main] server.Main (Main.java:267) - Starting Qpid Broker 1.0-incubating-M3-SNAPSHOT build: 649054:649132
+     [java] 2008-04-17 15:48:24,929 WARN  [main] transport.ConnectorConfiguration (ConnectorConfiguration.java:110) - Using Mina IO Processing
+     [java] 2008-04-17 15:48:25,039 INFO  [main] server.Main (Main.java:420) - Qpid.AMQP listening on non-SSL address 0.0.0.0/0.0.0.0:2110
+     [java] 2008-04-17 15:48:25,039 INFO  [main] server.Main (Main.java:441) - Qpid Broker Ready :1.0-incubating-M3-SNAPSHOT build: 649054:649132
+     [java] Started Proccess: python run-tests -v -I java_failing.txt -b localhost:2110 -s ../specs/amqp.0-9.no-wip.xml
+     [java] [ERR]Traceback (most recent call last):
+     [java] [ERR]  File "run-tests", line 32, in <module>
+     [java] [ERR]    if not testrunner.run(): sys.exit(1)
+     [java] [ERR]  File "/cygdrive/c/work/qpid/thegreatmerge/thegreatmerge-working/qpid/python/qpid/testlib.py", line 176, in run
+     [java] [ERR]    self._parseargs(args)
+     [java] [ERR]  File "/cygdrive/c/work/qpid/thegreatmerge/thegreatmerge-working/qpid/python/qpid/testlib.py", line 129, in _parseargs
+     [java] [ERR]    if opt in ("-I", "--ignore-file"): self.ignoreFile(value)
+     [java] [ERR]  File "/cygdrive/c/work/qpid/thegreatmerge/thegreatmerge-working/qpid/python/qpid/testlib.py", line 96, in ignoreFile
+     [java] [ERR]    f = file(filename)
+     [java] [ERR]IOError: [Errno 2] No such file or directory: 'java_failing.txt'
+     [java] Waiting for process to exit: python run-tests -v -I java_failing.txt -b localhost:2110 -s ../specs/amqp.0-9.no-wip.xml
+     [java] Done Proccess: python run-tests -v -I java_failing.txt -b localhost:2110 -s ../specs/amqp.0-9.no-wip.xml
+[INFO] Executed tasks
+[INFO] ----------------------------------------------------------------------------
+[INFO] Building junit-toolkit
+[INFO]    task-segment: [test]
+[INFO] ----------------------------------------------------------------------------
+[INFO] [resources:resources]
+[INFO] Using default encoding to copy filtered resources.
+[INFO] [compiler:compile]
+[INFO] Nothing to compile - all classes are up to date
+[INFO] [resources:testResources]
+[INFO] Using default encoding to copy filtered resources.
+[INFO] [compiler:testCompile]
+[INFO] No sources to compile
+[INFO] [surefire:test]
+[INFO] Surefire report directory: C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\junit-toolkit\target\surefire-reports
+
+-------------------------------------------------------
+ T E S T S
+-------------------------------------------------------
+There are no tests to run.
+
+Results :
+Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
+
+[INFO] ----------------------------------------------------------------------------
+[INFO] Building Qpid Client
+[INFO]    task-segment: [test]
+[INFO] ----------------------------------------------------------------------------
+[INFO] Ignoring available plugin update: 2.4 as it requires Maven version 2.0.8
+[INFO] Ignoring available plugin update: 2.4-SNAPSHOT as it requires Maven version 2.0.8
+[INFO] [javacc:javacc {execution: default}]
+[INFO] Nothing to process - all grammars are up to date
+[INFO] [resources:resources]
+[INFO] Using default encoding to copy filtered resources.
+[INFO] [compiler:compile]
+[INFO] Nothing to compile - all classes are up to date
+[INFO] [antrun:run {execution: version_properties}]
+[INFO] Executing tasks
+[propertyfile] Updating property file: C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\client\target\classes\qpidversion.properties
+[INFO] Executed tasks
+[INFO] [resources:testResources]
+[INFO] Using default encoding to copy filtered resources.
+[INFO] [compiler:testCompile]
+[INFO] Nothing to compile - all classes are up to date
+[INFO] [surefire:test]
+[INFO] Surefire report directory: C:\work\qpid\thegreatmerge\thegreatmerge-working\qpid\java\client\target\surefire-reports
+
+-------------------------------------------------------
+ T E S T S
+-------------------------------------------------------
+Running org.apache.qpid.test.unit.topic.TopicSessionTest
+log4j:WARN No appenders could be found for logger (org.apache.qpid.testutil.QpidTestCase).
+log4j:WARN Please initialize the log4j system properly.
+Tests run: 8, Failures: 0, Errors: 8, Skipped: 0, Time elapsed: 1.828 sec <<< FAILURE!
+Running org.apache.qpid.test.unit.client.connectionurl.ConnectionURLTest
+Tests run: 24, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.063 sec
+Running org.apache.qpid.client.AMQQueueDeferredOrderingTest
+Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.015 sec <<< FAILURE!
+Running org.apache.qpid.test.unit.basic.MultipleConnectionTest
+Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.015 sec <<< FAILURE!
+Running org.apache.qpid.test.unit.client.message.MapMessageTest
+Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec
+Running org.apache.qpid.test.unit.transacted.TransactedTest
+java.lang.NullPointerException
+	at org.apache.qpid.client.handler.ClientMethodDispatcherImpl.newMethodDispatcher(ClientMethodDispatcherImpl.java:86)
+	at org.apache.qpid.client.protocol.AMQProtocolSession.setStateManager(AMQProtocolSession.java:171)
+	at org.apache.qpid.client.protocol.AMQProtocolHandler.setStateManager(AMQProtocolHandler.java:750)
+	at org.apache.qpid.client.AMQConnection.<init>(AMQConnection.java:451)
+	at org.apache.qpid.client.AMQConnection.<init>(AMQConnection.java:281)
+	at org.apache.qpid.testutil.QpidTestCase.getConnection(QpidTestCase.java:339)
+	at org.apache.qpid.test.unit.transacted.TransactedTest.setUp(TransactedTest.java:65)
+	at junit.framework.TestCase.runBare(TestCase.java:125)
+	at org.apache.qpid.testutil.QpidTestCase.runBare(QpidTestCase.java:131)
+	at junit.framework.TestResult$1.protect(TestResult.java:106)
+	at junit.framework.TestResult.runProtected(TestResult.java:124)
+	at junit.framework.TestResult.run(TestResult.java:109)
+	at junit.framework.TestCase.run(TestCase.java:118)
+	at org.apache.qpid.testutil.QpidTestCase.run(QpidTestCase.java:157)
+	at junit.framework.TestSuite.runTest(TestSuite.java:208)
+	at junit.framework.TestSuite.run(TestSuite.java:203)
+	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
+	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
+	at java.lang.reflect.Method.invoke(Method.java:597)
+	at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
+	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135)
+	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122)
+	at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
+	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
+	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
+	at java.lang.reflect.Method.invoke(Method.java:597)
+	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
+	at org.apache.maven.surefire.booter.SurefireBooter.run(SurefireBooter.java:139)
+	at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:376)
+	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
+	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
+	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
+	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
+	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
+	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
+	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
+	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
+	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
+	at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
+	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
+	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
+	at java.lang.reflect.Method.invoke(Method.java:597)
+	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
+	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
+	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
+	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
+java.lang.NullPointerException
+	at org.apache.qpid.client.handler.ClientMethodDispatcherImpl.newMethodDispatcher(ClientMethodDispatcherImpl.java:86)
+	at org.apache.qpid.client.protocol.AMQProtocolSession.setStateManager(AMQProtocolSession.java:171)
+	at org.apache.qpid.client.protocol.AMQProtocolHandler.setStateManager(AMQProtocolHandler.java:750)
+	at org.apache.qpid.client.AMQConnection.<init>(AMQConnection.java:451)
+	at org.apache.qpid.client.AMQConnection.<init>(AMQConnection.java:281)
+	at org.apache.qpid.testutil.QpidTestCase.getConnection(QpidTestCase.java:339)
+	at org.apache.qpid.test.unit.transacted.TransactedTest.setUp(TransactedTest.java:65)
+	at junit.framework.TestCase.runBare(TestCase.java:125)
+	at org.apache.qpid.testutil.QpidTestCase.runBare(QpidTestCase.java:131)
+	at junit.framework.TestResult$1.protect(TestResult.java:106)
+	at junit.framework.TestResult.runProtected(TestResult.java:124)
+	at junit.framework.TestResult.run(TestResult.java:109)
+	at junit.framework.TestCase.run(TestCase.java:118)
+	at org.apache.qpid.testutil.QpidTestCase.run(QpidTestCase.java:157)
+	at junit.framework.TestSuite.runTest(TestSuite.java:208)
+	at junit.framework.TestSuite.run(TestSuite.java:203)
+	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
+	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
+	at java.lang.reflect.Method.invoke(Method.java:597)
+	at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
+	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135)
+	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122)
+	at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
+	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
+	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
+	at java.lang.reflect.Method.invoke(Method.java:597)
+	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
+	at org.apache.maven.surefire.booter.SurefireBooter.run(SurefireBooter.java:139)
+	at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:376)
+	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
+	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
+	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
+	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
+	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
+	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
+	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
+	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
+	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
+	at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
+	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
+	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
+	at java.lang.reflect.Method.invoke(Method.java:597)
+	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
+	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
+	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
+	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
+java.lang.NullPointerException
+	at org.apache.qpid.client.handler.ClientMethodDispatcherImpl.newMethodDispatcher(ClientMethodDispatcherImpl.java:86)
+	at org.apache.qpid.client.protocol.AMQProtocolSession.setStateManager(AMQProtocolSession.java:171)
+	at org.apache.qpid.client.protocol.AMQProtocolHandler.setStateManager(AMQProtocolHandler.java:750)
+	at org.apache.qpid.client.AMQConnection.<init>(AMQConnection.java:451)
+	at org.apache.qpid.client.AMQConnection.<init>(AMQConnection.java:281)
+	at org.apache.qpid.testutil.QpidTestCase.getConnection(QpidTestCase.java:339)
+	at org.apache.qpid.test.unit.transacted.TransactedTest.setUp(TransactedTest.java:65)
+	at junit.framework.TestCase.runBare(TestCase.java:125)
+	at org.apache.qpid.testutil.QpidTestCase.runBare(QpidTestCase.java:131)
+	at junit.framework.TestResult$1.protect(TestResult.java:106)
+	at junit.framework.TestResult.runProtected(TestResult.java:124)
+	at junit.framework.TestResult.run(TestResult.java:109)
+	at junit.framework.TestCase.run(TestCase.java:118)
+	at org.apache.qpid.testutil.QpidTestCase.run(QpidTestCase.java:157)
+	at junit.framework.TestSuite.runTest(TestSuite.java:208)
+	at junit.framework.TestSuite.run(TestSuite.java:203)
+	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
+	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
+	at java.lang.reflect.Method.invoke(Method.java:597)
+	at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
+	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135)
+	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122)
+	at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
+	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
+	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
+	at java.lang.reflect.Method.invoke(Method.java:597)
+	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
+	at org.apache.maven.surefire.booter.SurefireBooter.run(SurefireBooter.java:139)
+	at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:376)
+	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
+	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
+	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
+	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
+	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
+	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
+	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
+	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
+	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
+	at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
+	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
+	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
+	at java.lang.reflect.Method.invoke(Method.java:597)
+	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
+	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
+	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
+	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
+Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.031 sec <<< FAILURE!
+Running org.apache.qpid.test.unit.client.channelclose.CloseWithBlockingReceiveTest
+Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILURE!
+Running org.apache.qpid.test.unit.basic.PubSubTwoConnectionTest
+Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.016 sec <<< FAILURE!
+Running org.apache.qpid.test.unit.basic.SelectorTest
+Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.016 sec <<< FAILURE!
+Running org.apache.qpid.test.unit.topic.DurableSubscriptionTest
+Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.015 sec <<< FAILURE!
+Running org.apache.qpid.test.unit.client.message.BytesMessageTest
+Tests run: 31, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec
+Running org.apache.qpid.test.unit.client.message.TextMessageTest
+Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec
+Running org.apache.qpid.test.unit.xa.TopicTest
+Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
+Running org.apache.qpid.test.unit.client.message.StreamMessageTest
+Tests run: 33, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec
+Running org.apache.qpid.test.unit.client.connection.ConnectionCloseTest
+Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILURE!
+Running org.apache.qpid.test.unit.close.TopicPublisherCloseTest
+Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILURE!
+Running org.apache.qpid.test.unit.client.AMQConnectionTest
+Tests run: 9, Failures: 0, Errors: 9, Skipped: 0, Time elapsed: 0.032 sec <<< FAILURE!
+Running org.apache.qpid.test.unit.client.temporaryqueue.TemporaryQueueTest
+Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILURE!
+Running org.apache.qpid.test.unit.message.JMSDestinationTest
+Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILURE!
+Running org.apache.qpid.test.unit.client.connection.ExceptionListenerTest
+Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.015 sec <<< FAILURE!
+Running org.apache.qpid.client.message.TestMessageHelper
+Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
+Running org.apache.qpid.test.unit.basic.MapMessageTest
+Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec <<< FAILURE!
+Running org.apache.qpid.test.unit.client.connection.ConnectionTest
+Tests run: 8, Failures: 0, Errors: 8, Skipped: 0, Time elapsed: 0.563 sec <<< FAILURE!
+Running org.apache.qpid.test.unit.message.MessageConverterTest
+Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.032 sec
+Running org.apache.qpid.test.unit.basic.SessionStartTest
+[INFO] ------------------------------------------------------------------------
+[ERROR] BUILD ERROR
+[INFO] ------------------------------------------------------------------------
+[INFO] org.apache.qpid.test.unit.basic.SessionStartTest; nested exception is java.lang.reflect.UndeclaredThrowableException: null; nested exception is org.apache.maven.surefire.testset.TestSetFailedException: org.apache.qpid.test.unit.basic.SessionStartTest; nested exception is java.lang.reflect.UndeclaredThrowableException: null
+
+org.apache.qpid.testutil.VMBrokerSetup.getName()
+[INFO] ------------------------------------------------------------------------
+[INFO] For more information, run Maven with the -e switch
+[INFO] ------------------------------------------------------------------------
+[INFO] Total time: 45 seconds
+[INFO] Finished at: Thu Apr 17 15:48:37 BST 2008
+[INFO] Final Memory: 12M/26M
+[INFO] ------------------------------------------------------------------------

Propchange: incubator/qpid/branches/forrest-site/content/xdocs/Developer Pages_attachments/merege_test_output.txt
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/qpid/branches/forrest-site/content/xdocs/Distributed Testing.html
URL: http://svn.apache.org/viewvc/incubator/qpid/branches/forrest-site/content/xdocs/Distributed%20Testing.html?rev=650447&view=auto
==============================================================================
--- incubator/qpid/branches/forrest-site/content/xdocs/Distributed Testing.html (added)
+++ incubator/qpid/branches/forrest-site/content/xdocs/Distributed Testing.html Tue Apr 22 04:58:44 2008
@@ -0,0 +1,379 @@
+<html>
+    <head>
+        <title>Apache Qpid : Distributed Testing</title>
+	    <link rel="stylesheet" href="styles/site.css" type="text/css" />
+        <META http-equiv="Content-Type" content="text/html; charset=UTF-8">	    
+    </head>
+
+    <body>
+	    <table class="pagecontent" border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#ffffff">
+		    <tr>
+			    <td valign="top" class="pagebody">
+				    <div class="pageheader">
+					    <span class="pagetitle">
+                            Apache Qpid : Distributed Testing
+                                                    </span>
+				    </div>
+				    <div class="pagesubheading">
+					    This page last changed on Aug 15, 2007 by <font color="#0050B2">rupertlssmith</font>.
+				    </div>
+
+				    <h1><a name="DistributedTesting-TestingProposal."></a>Testing Proposal.</h1>
+
+<h2><a name="DistributedTesting-UseCases."></a>Use Cases.</h2>
+
+<p>The following usage scenarios are covered by this test framework design proposal:</p>
+
+<h3><a name="DistributedTesting-PerformanceTesting."></a>Performance Testing.</h3>
+
+<ul>
+	<li>Distributed testing.</li>
+</ul>
+
+
+<p> Want to be able to distribute performance tests accross many machines in parallel, in order to more accurately simulate real usage scenarios and to be able to fully stress test the broker under load.<br/>
+ Want to be able to run performance tests, with the test parameters configurable, so that any reasonable toplogy can be simulated and performance estimated.</p>
+
+<p> For example:</p>
+
+<ol>
+	<li>P2P test. On 10 machines, simulating load of 1000 clients. Each machine will run 100 test circuits on 100 connections. Both ends of the test circuit will reside on the same machine, with each client consuming its own messages. Results over all machines to be collated to arrive at total throughput figures.</li>
+	<li>Pub/Sub test. On 10 machines, simulating load of 1000 subscribers, 1 publisher. One machine acts as the sending half of the test circuit. The 1000 subscriber nodes, the receiving end of the circuit, are distributed as evenly as possible accross the other 9 machines. The publisher sends messages and collates throughput or latency measurements on the test circuit.</li>
+</ol>
+
+
+<h3><a name="DistributedTesting-SystemTesting."></a>System Testing.</h3>
+
+<ul>
+	<li>Thorough testing.</li>
+	<li>Functional testing at the product surface; behavioural tests to carry forward as the system evolves.</li>
+</ul>
+
+
+<p> Configurable framework, capable of exercising every imaginable combination of options, both in-vm broker and standalone, accross one client/test circuit up to many clients/test circuits in parallel.<br/>
+ Want to be able to exercise as many different combinations of test configuration parameters in possible in order to generate to the most comprehensive testing of the broker and protocol as possible. Exhaustive testing of every combination will discover bugs.<br/>
+ Want to test the system behaviour at its surface. That is, through the JMS API or through a more direct AMQ API where necessary. The test framework will ideally, abstract out the exact details of the API used, in order to allow forward evolution of the AMQ API. <br/>
+ Want to be able to set up each producer or consumer in a test circuit identically by default. More specific tests to be able to produce variations on this theme to test specific scenarios. For example test circuits the send both persistent and transient messages etc.</p>
+
+<h2><a name="DistributedTesting-Buildtestsoutofastandardizedconstructionblock."></a>Build tests out of a standardized construction block.</h2>
+
+<ul>
+	<li>Diagram: The test circuit.</li>
+</ul>
+
+
+<p>Publisher/Receiver pair.<br/>
+Each end of which is a Producer/Consumer unit.<br/>
+ M producers, N consumers, talking over Z destinations.</p>
+
+<p> The standard consruction block for a test, is a test circuit. This consists of a publisher, and a receiver. The publisher and receiver may reside on the same machine, or may be distributed. Will use a standard set of properties to define the desired circuit topology.</p>
+
+<p> Tests are always to be controlled from the publishing side only. The receiving end of the circuit is to be exposed to the test code through an interface, that abstracts as much as possible the receiving end of the test. The interface exposes a set of 'assertions' that may be applied to the receiving end of the test circuit.</p>
+
+<p> In the case where the receiving end of the circuit resides on the same JVM, the assertions will call the receivers code locally. Where the receiving end is distributed accross one or more machines, the assertions will be applied to a test report gethered from all of the receivers. Test code will be written to the assertions making as few assumptions as possible about the exact test topology.</p>
+
+<p> A test circuit defines a test topology, M producers, N consumers, Z outgoing routes between them.<br/>
+ The publishing end of each test circuit always resides on a single JVM, even if M &gt; 1. If publishers are to be distributed accross many machines, the test framework itself provides the scaling by running the same test circuit many times in parallel. This means that it is possible to have an arbitrary number of message publishers accross one or many machines, determined by the test setup.<br/>
+ The receiving half of the circuit may be local, in which case all messages come back to the same machine, or distributed in which case they may be received by many machines.<br/>
+ There are therefore two ways in which tests may be distributed accross multiple nodes in a network; many test circuits may be distributed and run in parallel and/or the receiving ends of those circuits may be distributed or local.<br/>
+ Each node in the network can play up to 2 roles in any given test; publisher or receiver. It is possible to play both roles at once, but would like to have a 'single_role' flag, that can be set to ensure that test nodes taking one role, will not participate in the other for the duration of a test. For example, in the pub/sub test want one publisher and the remaining nodes to distribute the receiver role amongst themselves.</p>
+
+<h2><a name="DistributedTesting-Probingfortheavailabletesttopology."></a>Probing for the available test topology.</h2>
+
+<ul>
+	<li>Diagram: The available topology.</li>
+</ul>
+
+
+<p> When the test distribution framework starts up, it should broadcast an 'enlist' request on a known topic. All available nodes in the network to reply in order to make it known that they are available to carry out tests. For the requested test case, C test circuits are to be run in parallel. Each test defines its desired M by N topology for each circuit. The entire network may be available to run both roles, or the test case may have specified a limit on the number of publishing nodes and set the 'single_role' flag. If the number of publishing nodes exhausts the available network and the single role flag is on, then there are no nodes available to run the receiver roles, the test will fail with an error at this point. Suppose there are P nodes available to run the publisher roles, and R nodes available to run the receiver roles. The C test circuits will be divided up as evenly as possible amongst the P nodes. The C * N receivers will be divided up as evenly as possible am
 ongst the R nodes.</p>
+
+<p> A more concrete example. There are 10 test machines available. Want to run a pub/sub test with 2 publishers, publishing to 50 topics, with 250 subscribers, measuring total throughput. The distribution framework probes to find the ten machines. The test parameters specify a concurrency level of 2 circuits, limited to 2 nodes, with the single role flag set, which leaves 8 nodes to play the receiver role. The test parameters specify each circuit as having 25 topics, unique to the circuit, and 125 receivers. The total of 250 receivers are distributed amongst the 8 available nodes, 31 each, except for two of them which get 32. The test specifies a duration of 10 minutes, sending messages 500 bytes in size using test batches of 10000 messages, as fast as possible. The distribution framework sends a start signal to each of the publishers. The publishers run for 10000 messages. The publishers request a report from each receiver on their cicruit. The receivers send back to the pu
 blishers a report on the number of messages received in the batch. The publishers assert that the correct number for the batch were indeed received, and log a time sample for the batch. This continues for 10 minutes. At the end of the 10 minutes, the publishers collate all of their timings, failures, errors into a log message. The distribution framework requests the test report from each publishing nodes, and these logs are combined together to produce a single log for the entire run. Some stats, such as total time taken, total messages through the system, total throughput are calculated and added as a summary to the log, along with a record of the requested and actual topology used to run the test.</p>
+
+<ul>
+	<li>Diagram: The requested test applied onto the available topology.</li>
+</ul>
+
+
+<h2><a name="DistributedTesting-TestProcedures."></a>Test Procedures.</h2>
+
+<p>A variety of different tests can be written against a standard test circuit, many of these will follow a common pattern. One of the aims of using a common test circuit configured by a number of test parameters, is to be able to automate the generation of all possible test cases that can be produced from the circuit combined with the common testing pattern, and an outline of a procedure for doing this is described here. The typical test sequence is described below:</p>
+
+<h3><a name="DistributedTesting-Atypicaltestsequence."></a>A typical test sequence.</h3>
+
+<ol>
+	<li>Initialize the test circuit from the default parameters, plus specific settings for the test.</li>
+	<li>Create the test circuit. The requested test parameters are applied to the available topology to produce a live circuit.</li>
+	<li>Send messages.</li>
+	<li>Request a status report.</li>
+	<li>Assert conditions on the publishing end of the circuit.</li>
+	<li>Assert conditions on the receiving end of the circuit.</li>
+	<li>Pass or fail the test.</li>
+</ol>
+
+
+<h3><a name="DistributedTesting-Thethoroughtestprocedure."></a>The thorough test procedure.</h3>
+
+<p>The thorough test procedure uses the typical test sequence described above, but generates all of combinations of test parameters and corresponding assertions against the results.</p>
+
+<p>The all_combinations function produces all combinations of test parameters described in Appendix A.</p>
+
+<p>all_combinations : List&lt;Properties&gt;</p>
+
+<p>The expected_results function, produces a list of assertions, given a set of test parameters. For example, mandatory &amp;&amp; no_route -&gt; assertions.add(producer.assertMessageReturned), assertions.add(receiver.assertMessageNotReceived).</p>
+
+<p>expected_results: Properties -&gt; List&lt;Assertions&gt;</p>
+
+<p>For parameters : all_combinations<br/>
+ test_circuit = new TestCircuit(parameters).<br/>
+ test_circuit.start.</p>
+
+<p> Send mesages.<br/>
+ Request status.</p>
+
+<p> For assertion : exected_results(parameters)<br/>
+  Assert(assertion).</p>
+
+<h2><a name="DistributedTesting-AppendixATestParameters."></a>Appendix A - Test Parameters.</h2>
+
+<table class='confluenceTable'><tbody>
+<tr>
+<th class='confluenceTh'>&nbsp;</th>
+<td class='confluenceTd'> Possible Values </td>
+<td class='confluenceTd'> Default Value </td>
+</tr>
+<tr>
+<th class='confluenceTh'> Connection properties. </th>
+<td class='confluenceTd'>&nbsp;</td>
+<td class='confluenceTd'>&nbsp;</td>
+</tr>
+<tr>
+<td class='confluenceTd'> broker                 </td>
+<td class='confluenceTd'> tcp, vm         </td>
+<td class='confluenceTd'> tcp://localhost </td>
+</tr>
+<tr>
+<td class='confluenceTd'> vhost                  </td>
+<td class='confluenceTd'>&nbsp;</td>
+<td class='confluenceTd'> &lt;empty&gt;         </td>
+</tr>
+<tr>
+<td class='confluenceTd'> username               </td>
+<td class='confluenceTd'>&nbsp;</td>
+<td class='confluenceTd'> guest           </td>
+</tr>
+<tr>
+<td class='confluenceTd'> password               </td>
+<td class='confluenceTd'>&nbsp;</td>
+<td class='confluenceTd'> guest           </td>
+</tr>
+<tr>
+<th class='confluenceTh'> Topology properties.   </th>
+<td class='confluenceTd'>&nbsp;</td>
+<td class='confluenceTd'>&nbsp;</td>
+</tr>
+<tr>
+<td class='confluenceTd'> max_publishing_node    </td>
+<td class='confluenceTd'>&nbsp;</td>
+<td class='confluenceTd'> 1               </td>
+</tr>
+<tr>
+<td class='confluenceTd'> single_role            </td>
+<td class='confluenceTd'> true, false     </td>
+<td class='confluenceTd'> true            </td>
+</tr>
+<tr>
+<th class='confluenceTh'> Circuit properties.    </th>
+<td class='confluenceTd'> Total: 2^2 = 4 combinations. </td>
+<td class='confluenceTd'>&nbsp;</td>
+</tr>
+<tr>
+<td class='confluenceTd'> num_publishers         </td>
+<td class='confluenceTd'>&nbsp;</td>
+<td class='confluenceTd'> 1               </td>
+</tr>
+<tr>
+<td class='confluenceTd'> num_consumers          </td>
+<td class='confluenceTd'>&nbsp;</td>
+<td class='confluenceTd'> 1               </td>
+</tr>
+<tr>
+<td class='confluenceTd'> num_destinations       </td>
+<td class='confluenceTd'>&nbsp;</td>
+<td class='confluenceTd'> 1               </td>
+</tr>
+<tr>
+<td class='confluenceTd'> base_out_route_name    </td>
+<td class='confluenceTd'>&nbsp;</td>
+<td class='confluenceTd'> ping            </td>
+</tr>
+<tr>
+<td class='confluenceTd'> base_in_route_name     </td>
+<td class='confluenceTd'>&nbsp;</td>
+<td class='confluenceTd'> pong            </td>
+</tr>
+<tr>
+<td class='confluenceTd'> bind_out_route         </td>
+<td class='confluenceTd'> true, false     </td>
+<td class='confluenceTd'> true            </td>
+</tr>
+<tr>
+<td class='confluenceTd'> bind_in_route          </td>
+<td class='confluenceTd'> true, false     </td>
+<td class='confluenceTd'> false           </td>
+</tr>
+<tr>
+<td class='confluenceTd'> consumer_out_active    </td>
+<td class='confluenceTd'> true, false     </td>
+<td class='confluenceTd'> true            </td>
+</tr>
+<tr>
+<td class='confluenceTd'> consumer_in_active     </td>
+<td class='confluenceTd'> true, false     </td>
+<td class='confluenceTd'> false           </td>
+</tr>
+<tr>
+<th class='confluenceTh'> JMS flags and options. </th>
+<td class='confluenceTd'> Total: 2 * 2 * 2 * 6 = 48 combinations. </td>
+<td class='confluenceTd'>&nbsp;</td>
+</tr>
+<tr>
+<td class='confluenceTd'> transactional          </td>
+<td class='confluenceTd'> true, false     </td>
+<td class='confluenceTd'> false           </td>
+</tr>
+<tr>
+<td class='confluenceTd'> persistent             </td>
+<td class='confluenceTd'> true, false     </td>
+<td class='confluenceTd'> false           </td>
+</tr>
+<tr>
+<td class='confluenceTd'> no_local               </td>
+<td class='confluenceTd'> true, false     </td>
+<td class='confluenceTd'> false           </td>
+</tr>
+<tr>
+<td class='confluenceTd'> ack_mode               </td>
+<td class='confluenceTd'> tx, auto, client, dups_ok, no_ack, pre_ack </td>
+<td class='confluenceTd'> auto </td>
+</tr>
+<tr>
+<th class='confluenceTh'> AMQP/Qpid flags and options. </th>
+<td class='confluenceTd'> Total: 2^4 = 16 combinations. </td>
+<td class='confluenceTd'>&nbsp;</td>
+</tr>
+<tr>
+<td class='confluenceTd'> exclusive              </td>
+<td class='confluenceTd'> true, false     </td>
+<td class='confluenceTd'> false           </td>
+</tr>
+<tr>
+<td class='confluenceTd'> immediate              </td>
+<td class='confluenceTd'> true, false     </td>
+<td class='confluenceTd'> false           </td>
+</tr>
+<tr>
+<td class='confluenceTd'> mandatory              </td>
+<td class='confluenceTd'> true, false     </td>
+<td class='confluenceTd'> false           </td>
+</tr>
+<tr>
+<td class='confluenceTd'> durable                </td>
+<td class='confluenceTd'> true, false     </td>
+<td class='confluenceTd'> false           </td>
+</tr>
+<tr>
+<td class='confluenceTd'> prefetch_size          </td>
+<td class='confluenceTd'>&nbsp;</td>
+<td class='confluenceTd'>&nbsp;</td>
+</tr>
+<tr>
+<td class='confluenceTd'> header_fields          </td>
+<td class='confluenceTd'>&nbsp;</td>
+<td class='confluenceTd'>&nbsp;</td>
+</tr>
+<tr>
+<th class='confluenceTh'> Standard test parameters. </th>
+<td class='confluenceTd'> Total: 3 combinations. </td>
+<td class='confluenceTd'>&nbsp;</td>
+</tr>
+<tr>
+<td class='confluenceTd'> message_size           </td>
+<td class='confluenceTd'> no_body, one_body, multi_body </td>
+<td class='confluenceTd'> one_body </td>
+</tr>
+<tr>
+<td class='confluenceTd'> num_messages           </td>
+<td class='confluenceTd'>&nbsp;</td>
+<td class='confluenceTd'> 100             </td>
+</tr>
+<tr>
+<td class='confluenceTd'> outgoing_rate          </td>
+<td class='confluenceTd'>&nbsp;</td>
+<td class='confluenceTd'>&nbsp;</td>
+</tr>
+<tr>
+<td class='confluenceTd'> inbound_rate           </td>
+<td class='confluenceTd'>&nbsp;</td>
+<td class='confluenceTd'>&nbsp;</td>
+</tr>
+<tr>
+<td class='confluenceTd'> timeout                </td>
+<td class='confluenceTd'>&nbsp;</td>
+<td class='confluenceTd'> 30 seconds      </td>
+</tr>
+<tr>
+<td class='confluenceTd'> tx_batch_size          </td>
+<td class='confluenceTd'>&nbsp;</td>
+<td class='confluenceTd'> 100             </td>
+</tr>
+<tr>
+<td class='confluenceTd'> max_pending_data       </td>
+<td class='confluenceTd'>&nbsp;</td>
+<td class='confluenceTd'>&nbsp;</td>
+</tr>
+</tbody></table>
+
+<p>Total combinations over all test parameters: 4 * 48 * 16 * 3 = 9216 combinations.</p>
+
+<p>Defaults give an in-VM broker, 1:1 P2P topology, no tx, auto ack, no flags, publisher -&gt; receiver route configured, no return route.</p>
+
+<h2><a name="DistributedTesting-AppendixBClockSynchronizationAlgorithm."></a>Appendix B - Clock Synchronization Algorithm.</h2>
+
+<p>On connection/initialization of the framework, synch clocks between all nodes in the available toplogy. For in vm tests, the clock delta and error will automatically be zero. For throughput measurements, the overall test times will be long enough that the error does not need to be particularly small. For latency measurements, want to get accurate clock synchronization. This should not be too hard to achieve over a quiet local network.</p>
+
+<p>After determining the list of clients available to conduct tests against, the Coordinator synchronizes the clocks of each in turn. The synchronization is done against one client at a time, at a fairly low messaging rate over the Qpid broker. If needed, a more accurate mechanism, using something like NTP over UDP could be used. Ensure the clock synchronization is captured by an interface, to allow better solutions to be added at a later date. Here is a simple algorithm to get started with:</p>
+
+<ol>
+	<li>Coordinator tells client to synchronize its clock with the coordinators time.</li>
+	<li>Client stamps current local time on a "time request" message and sends to Coordinator.</li>
+	<li>Upon receipt by Coordinator, Coordinator stamps Coordinator-time and returns.</li>
+	<li>Upon receipt by Client, Client subtracts current time from sent time and divides by two to compute latency. It subtracts current time from Coordinator time to determine Client-Coordinator time delta and adds in the half-latency to get the correct clock delta.</li>
+	<li>The first result should immediately be used to update the clock since it will get the local clock into at least the right ballpark.</li>
+	<li>The Client repeats steps 1 through 3, 25 or more times, pausing a few tens of milliseconds each time.</li>
+	<li>The results of the packet receipts are accumulated and sorted in lowest-latency to highest-latency order. The median latency is determined by picking the mid-point sample from this ordered list.</li>
+	<li>All samples above approximately 1 standard-deviation from the median are discarded and the remaining samples are averaged using an arithmetic mean.</li>
+</ol>
+
+
+<p>The above algorithm includes broker latency, two network hops each way, plus possible effects of buffering/resends on the TCP protocol. A fairly easy improvement on it might be:</p>
+
+<ol>
+	<li>Coordinator tells client to synchronize its clock with the coordinators time, provides a port/address to synchronize against.</li>
+	<li>Clients sends UDP packets to the Coordinators address and performs the same procedure as outlined above.</li>
+</ol>
+
+
+				    
+                    			    </td>
+		    </tr>
+	    </table>
+	    <table border="0" cellpadding="0" cellspacing="0" width="100%">
+			<tr>
+				<td height="12" background="border/border_bottom.gif"><img src="border/spacer.gif" width="1" height="1" border="0"/></td>
+			</tr>
+		    <tr>
+			    <td align="center"><font color="grey">Document generated by Confluence on Apr 22, 2008 02:47</font></td>
+		    </tr>
+	    </table>
+    </body>
+</html>
\ No newline at end of file

Propchange: incubator/qpid/branches/forrest-site/content/xdocs/Distributed Testing.html
------------------------------------------------------------------------------
    svn:executable = *