Added: 
qpid/site/input/releases/qpid-java-6.0.0/jms-client-0-8/book/JMS-Client-0-8-System-Properties.html.in
URL: 
http://svn.apache.org/viewvc/qpid/site/input/releases/qpid-java-6.0.0/jms-client-0-8/book/JMS-Client-0-8-System-Properties.html.in?rev=1718924&view=auto
==============================================================================
--- 
qpid/site/input/releases/qpid-java-6.0.0/jms-client-0-8/book/JMS-Client-0-8-System-Properties.html.in
 (added)
+++ 
qpid/site/input/releases/qpid-java-6.0.0/jms-client-0-8/book/JMS-Client-0-8-System-Properties.html.in
 Wed Dec  9 17:41:59 2015
@@ -0,0 +1,100 @@
+<div class="docbook"><div class="navheader"><table summary="Navigation header" 
width="100%"><tr><th align="center" colspan="3">Chapter&#160;9.&#160;System 
Properties</th></tr><tr><td align="left" width="20%"><a accesskey="p" 
href="JMS-Client-0-8-Binding-URL.html">Prev</a>&#160;</td><th align="center" 
width="60%">&#160;</th><td align="right" width="20%">&#160;<a accesskey="n" 
href="JMS-Client-0-8-Logging.html">Next</a></td></tr></table><hr /></div><div 
class="chapter"><div class="titlepage"><div><div><h1 class="title"><a 
id="JMS-Client-0-8-System-Properties"></a>Chapter&#160;9.&#160;System 
Properties</h1></div></div></div><p>The following system properties affect the 
behaviour of the Qpid JMS client. System
+               properties are global in nature so affect all Qpid interactions 
made from within the same
+               JVM. For many options, there are equivalent <a class="link" 
href="JMS-Client-0-8-Connection-URL.html" 
title="Chapter&#160;7.&#160;Connection URLs">Connection URL</a> options 
allowing the option to be controlled at the level of the
+               Connection.</p><div class="table"><a 
id="idm140185670480432"></a><p 
class="title"><strong>Table&#160;9.1.&#160;System Properties Affecting 
Connection Behaviour</strong></p><div class="table-contents"><table border="1" 
summary="System Properties Affecting Connection Behaviour" 
width="100%"><colgroup><col /><col /><col /><col 
/></colgroup><thead><tr><th>Property Name</th><th>Type</th><th>Default 
Value</th><th>Description</th></tr></thead><tbody><tr><td>qpid.amqp.version</td><td>string</td><td>0-10</td><td><p>Sets
 the AMQP version to be used - currently supports one of
+                                                       
{0-8,0-9,0-91,0-10}.</p><p>The client will begin negotiation at
+                                                       the specified version 
and only negotiate downwards if the Broker does
+                                                       not support the 
specified version.</p></td></tr><tr><td><a 
id="JMS-Client-0-8-System-Properties-Heartbeat"></a>qpid.heartbeat</td><td>int</td><td><p>Defaults
 to the heartbeat value suggested by the Broker, if
+                                                       
any.</p></td><td>Frequency of heartbeat messages (in seconds). A value of 0 
disables
+                                               heartbeating. <p>Two 
consecutive missed heartbeats will result in the
+                                                       connection timing 
out.</p><p>This can also be set per connection
+                                                       using the <a 
class="link" 
href="JMS-Client-0-8-Connection-URL.html#JMS-Client-0-8-Connection-URL-BrokerOptions-Heartbeat">Connection
 URL</a> options.</p><p>For compatibility with
+                                                       old client 
configuration, the synonym
+                                                               <code 
class="varname">amqj.heartbeat.delay</code> is 
supported.</p></td></tr><tr><td>ignore_setclientID</td><td>boolean</td><td>false</td><td>If
 a client ID is specified in the connection URL it's used or else an ID
+                                               is generated. If an ID is 
specified after it's been set Qpid will throw an
+                                               exception. <p>Setting this 
property to 'true' will disable that check and
+                                                       allow you to set a 
client ID of your choice later 
on.</p></td></tr><tr><td>qpid.connection_ssl_verify_hostname</td><td>boolean</td><td>true</td><td>This
 property is used to turn on/off broker host name verification on SSL 
negotiation
+                        if SSL transport is used. It is set to 'true' by 
default.
+                        <p>Setting this property to 'false' will disable that 
check and
+                            allow you to ignore host name 
errors.</p></td></tr><tr><td><a 
id="JMS-Client-0-8-System-Properties-ConnectionCompressMessages"></a>qpid.connection_compress_messages</td><td>Boolean</td><td>false</td><td><p>Controls
 whether the client will compress messages before they they are 
sent.</p></td></tr><tr><td><a 
id="JMS-Client-0-8-System-Properties-MessageCompressionThresholdSize"></a>qpid.message_compression_threshold_size</td><td>Integer</td><td>102400</td><td><p>The
 payload size beyond which the client will start to compress message 
payloads.</p></td></tr></tbody></table></div></div><br class="table-break" 
/><div class="table"><a id="idm140185669468608"></a><p 
class="title"><strong>Table&#160;9.2.&#160;Config Options For Session 
Behaviour</strong></p><div class="table-contents"><table border="1" 
summary="Config Options For Session Behaviour" width="100%"><colgroup><col 
/><col /><col /><col /></colgroup><thead><tr><th>Property 
Name</th><th>Type</th><th>Defaul
 t Value</th><th>Description</th></tr></thead><tbody><tr><td><a 
id="JMS-Client-0-8-System-Properties-DestSyntax"></a>qpid.dest_syntax</td><td>String</td><td>ADDR</td><td><p>Addressing
 syntax: ADDR (Address format) or BURL (Binding URL)</p></td></tr><tr><td><a 
id="JMS-Client-0-8-System-Properties-Maxprefetch"></a>max_prefetch</td><td>int</td><td>500</td><td><p>Maximum
 number of pre-fetched messages per Session. This can also
+                                                       be defaulted for 
sessions created on a particular connection using the
+                                                               <a class="link" 
href="JMS-Client-0-8-Connection-URL.html#JMS-Client-0-8-Connection-URL-ConnectionOptions-Maxprefetch">Connection
 URL</a> 
options.</p></td></tr><tr><td>qpid.use_legacy_map_message</td><td>boolean</td><td>false</td><td><p>If
 set will use the old map message encoding. By default the Map
+                                                       messages are encoded 
using the 0-10 map encoding.</p><p>This can
+                                                       also be set per 
connection using the <a class="link" 
href="JMS-Client-0-8-Connection-URL.html#JMS-Client-0-8-Connection-URL-ConnectionOptions-UseLegacyMap">Connection
 URL</a> 
options.</p></td></tr><tr><td>qpid.jms.daemon.dispatcher</td><td>boolean</td><td>false</td><td><p>Controls
 whether the Session dispatcher thread is a daemon thread
+                                                       or not. If this system 
property is set to true then the Session
+                                                       dispatcher threads will 
be created as daemon threads. This setting is
+                                                       introduced in version 
0.16.</p></td></tr></tbody></table></div></div><br class="table-break" /><div 
class="table"><a id="idm140185670601520"></a><p 
class="title"><strong>Table&#160;9.3.&#160;Config Options For Consumer 
Behaviour</strong></p><div class="table-contents"><table border="1" 
summary="Config Options For Consumer Behaviour" width="100%"><colgroup><col 
/><col /><col /><col /></colgroup><thead><tr><th>Property 
Name</th><th>Type</th><th>Default 
Value</th><th>Description</th></tr></thead><tbody><tr><td><a 
id="JMS-Client-0-8-System-Properties-DeclareExchanges"></a>qpid.declare_exchanges</td><td>Boolean</td><td>true</td><td><p>If
 true, creating a consumer will also declare the exchange on the
+                                                       Broker (specified 
within the Binding URL associated with the
+                                                       Destination), creating 
it if is does not already exist.
+                                               </p></td></tr><tr><td><a 
id="JMS-Client-0-8-System-Properties-DeclareQueues"></a>qpid.declare_queues</td><td>Boolean</td><td>true</td><td><p>If
 true, creating a consumer will also declare the queue on the
+                                                       Broker (specified 
within the Binding URL associated with the
+                                                       Destination), creating 
it if is does not already
+                                               exist.</p></td></tr><tr><td><a 
id="JMS-Client-0-8-System-Properties-BindQueues"></a>qpid.bind_queues</td><td>Boolean</td><td>true</td><td><p>If
 true, creating a consumer will also bind the queue to the
+                                                       to the exchange using 
the routing key as a binding key. The
+                                                       exchange name, queue 
name and routing key are taken from 
+                                                       the Binding URL 
associated with the Destination.</p></td></tr><tr><td><a 
id="JMS-Client-0-8-System-Properties-RejectBehaviour"></a>qpid.reject.behaviour</td><td>String</td><td>NORMAL</td><td><p>Used
 with the maximum delivery count feature. See <a class="xref" 
href="JMS-Client-0-8-Client-Understanding-MessageConsumer.html#JMS-Client-0-8-Client-Understanding-MessageConsumer-MaximumDeliveryCount"
 title="5.6.3.&#160;Maximum Delivery Count">Section&#160;5.6.3, &#8220;Maximum 
Delivery Count&#8221;</a> for 
details.</p></td></tr></tbody></table></div></div><br class="table-break" 
/><div class="table"><a id="idm140185671030768"></a><p 
class="title"><strong>Table&#160;9.4.&#160;Config Options For Producer 
Behaviour</strong></p><div class="table-contents"><table border="1" 
summary="Config Options For Producer Behaviour" width="100%"><colgroup><col 
/><col /><col /><col /></colgroup><thead><tr><th>Property 
Name</th><th>Type</th><th>Default 
Value</th><th>Description</th></tr></thead><tbody
 ><tr><td><a 
 >id="JMS-Client-0-8-System-Properties-DefaultMandatory"></a>qpid.default_mandatory</td><td>Boolean</td><td>True</td><td><p>If
 > true, messages sent to Queue destinations for which cannot be
+                                                       routed to at least one 
queue on the Broker, will be returned to the
+                                                       application. See <a 
class="xref" 
href="JMS-Client-0-8-Client-Understanding-MessageProducer.html#JMS-Client-0-8-Client-Understanding-MessageProducer-MandatoryMessage"
 title="5.5.1.&#160;Mandatory Messages">Section&#160;5.5.1, &#8220;Mandatory 
Messages&#8221;</a> for more details.</p></td></tr><tr><td><a 
id="JMS-Client-0-8-System-Properties-DefaultMandatoryTopic"></a>qpid.default_mandatory_topic</td><td>Boolean</td><td>False</td><td><p>If
 true, messages sent to Topic destinations for which cannot be
+                                                       routed to at least one 
queue on the Broker, will be returned to the
+                                                       application. See <a 
class="xref" 
href="JMS-Client-0-8-Client-Understanding-MessageProducer.html#JMS-Client-0-8-Client-Understanding-MessageProducer-MandatoryMessage"
 title="5.5.1.&#160;Mandatory Messages">Section&#160;5.5.1, &#8220;Mandatory 
Messages&#8221;</a> for more details..</p></td></tr><tr><td><a 
id="JMS-Client-0-8-System-Properties-DefaultImmediate"></a>qpid.default_immediate</td><td>Boolean</td><td>False</td><td><p>If
 true, the message will be returned to the application unless the
+                                                       Broker is able to route 
the message to at least one queue with a
+                                                       consumer attached. See 
<a class="xref" 
href="JMS-Client-0-8-Client-Understanding-MessageProducer.html#JMS-Client-0-8-Client-Understanding-MessageProducer-ImmediateMessage"
 title="5.5.3.&#160;Immediate Messages">Section&#160;5.5.3, &#8220;Immediate 
Messages&#8221;</a> for more details.</p></td></tr><tr><td><a 
id="JMS-Client-0-8-System-Properties-FlowControlWaitFailure"></a>qpid.flow_control_wait_failure</td><td>Long</td><td>60000</td><td><p>Used
 with <a class="xref" 
href="JMS-Client-0-8-Client-Understanding-MessageProducer.html#JMS-Client-0-8-Client-Understanding-MessageProducer-FlowControl"
 title="5.5.4.&#160;Flow Control">Section&#160;5.5.4, &#8220;Flow 
Control&#8221;</a>. The amount of time (in milliseconds) to wait before timing
+                                                       
out.</p></td></tr><tr><td><a 
id="JMS-Client-0-8-System-Properties-FlowControlWaitNotifyPeriod"></a>qpid.flow_control_wait_notify_period</td><td>Long</td><td>5000</td><td><p>Used
 with <a class="xref" 
href="JMS-Client-0-8-Client-Understanding-MessageProducer.html#JMS-Client-0-8-Client-Understanding-MessageProducer-FlowControl"
 title="5.5.4.&#160;Flow Control">Section&#160;5.5.4, &#8220;Flow 
Control&#8221;</a>. The frequency at which the log message informing that the 
producer
+                                                       is flow controlled 
.</p></td></tr><tr><td><a 
id="JMS-Client-0-8-System-Properties-SyncPublish"></a>sync_publish</td><td>string</td><td>""
 (disabled)</td><td>
+                                         <p>If 'all' is set then messages will 
be sent synchronously.</p>
+                      <p>This can also be set per connection using the 
+                        <a class="link" 
href="JMS-Client-0-8-Connection-URL.html#JMS-Client-0-8-Connection-URL-ConnectionOptions-SyncPublish">
+                          Connection URL
+                        </a> 
+                        options.
+                      </p>
+                    </td></tr></tbody></table></div></div><br 
class="table-break" /><div class="table"><a id="idm140185668944592"></a><p 
class="title"><strong>Table&#160;9.5.&#160;Config Options For 
Threading</strong></p><div class="table-contents"><table border="1" 
summary="Config Options For Threading" width="100%"><colgroup><col /><col 
/><col /><col /></colgroup><thead><tr><th>Property 
Name</th><th>Type</th><th>Default 
Value</th><th>Description</th></tr></thead><tbody><tr><td>qpid.thread_factory</td><td>string</td><td>org.apache.qpid.thread.DefaultThreadFactory</td><td><p>Specifies
 the thread factory to use.</p><p>If using a real
+                                                       time JVM, you need to 
set the above property to
+                                                               <code 
class="varname">org.apache.qpid.thread.RealtimeThreadFactory</code>.</p></td></tr><tr><td>qpid.rt_thread_priority</td><td>int</td><td>20</td><td><p>Specifies
 the priority (1-99) for Real time threads created by the
+                                                       real time thread 
factory.</p></td></tr></tbody></table></div></div><br class="table-break" 
/><div class="table"><a id="idm140185668934080"></a><p 
class="title"><strong>Table&#160;9.6.&#160;Config Options For 
I/O</strong></p><div class="table-contents"><table border="1" summary="Config 
Options For I/O" width="100%"><colgroup><col /><col /><col /><col 
/></colgroup><thead><tr><th>Property Name</th><th>Type</th><th>Default 
Value</th><th>Description</th></tr></thead><tbody><tr><td><a 
id="JMS-Client-0-8-System-Properties-SyncOpTimeout"></a>qpid.sync_op_timeout</td><td>long</td><td>60000</td><td><p>The
 length of time (in milliseconds) to wait for a synchronous
+                                                       operation to 
complete.</p><p>For compatibility with older clients,
+                                                       the synonym <code 
class="varname">amqj.default_syncwrite_timeout</code> is
+                                                       
supported.</p></td></tr><tr><td>qpid.tcp_nodelay</td><td>boolean</td><td>true</td><td>
+                                               <p>Sets the TCP_NODELAY 
property of the underlying socket. The default
+                                                       was changed to true as 
of Qpid 0.14.</p>
+                                               <p>This can also be set per 
connection using the Connection URL broker
+                                                               option<a 
class="link" 
href="JMS-Client-0-8-Connection-URL.html#JMS-Client-0-8-Connection-URL-BrokerOptions-TcpNoDelay"><code
 class="literal">tcp_nodelay</code>.</a> options.</p>
+                                               <p>For compatibility with older 
clients, the synonym
+                                                               <code 
class="varname">amqj.tcp_nodelay</code> is supported.</p>
+                                       
</td></tr><tr><td>qpid.send_buffer_size</td><td>integer</td><td>65535</td><td>
+                                               <p>Sets the SO_SNDBUF property 
of the underlying socket. Added in Qpid
+                                                       0.16.</p>
+                                               <p>For compatibility with older 
clients, the synonym
+                                                               <code 
class="varname">amqj.sendBufferSize</code> is supported.</p>
+                                       
</td></tr><tr><td>qpid.receive_buffer_size</td><td>integer</td><td>65535</td><td>
+                                               <p>Sets the SO_RCVBUF property 
of the underlying socket. Added in Qpid
+                                                       0.16.</p>
+                                               <p>For compatibility with older 
clients, the synonym
+                                                               <code 
class="varname">amqj.receiveBufferSize</code> is supported.</p>
+                                       
</td></tr><tr><td>qpid.failover_method_timeout</td><td>long</td><td>60000</td><td>
+                                               <p>During failover, this is the 
timeout for each attempt to try to
+                                                       re-establish the 
connection. If a reconnection attempt exceeds the
+                                                       timeout, the entire 
failover process is aborted.</p>
+                                               <p>It is only applicable for 
AMQP 0-8/0-9/0-9-1 clients.</p>
+                                       
</td></tr></tbody></table></div></div><br class="table-break" /><div 
class="table"><a id="idm140185669288432"></a><p 
class="title"><strong>Table&#160;9.7.&#160;Config Options For Security - Using 
SSL for securing connections or using EXTERNAL as
+                       the SASL mechanism.</strong></p><div 
class="table-contents"><table border="1" summary="Config Options For Security - 
Using SSL for securing connections or using EXTERNAL as&#10;                    
   the SASL mechanism." width="100%"><colgroup><col /><col /><col /><col 
/></colgroup><thead><tr><th>Property Name</th><th>Type</th><th>Default 
Value</th><th>Description</th></tr></thead><tbody><tr><td>qpid.ssl_timeout</td><td>long</td><td>60000</td><td><p>Timeout
 value used by the Java SSL engine when waiting on
+                                                       
operations.</p></td></tr><tr><td>qpid.ssl.KeyManagerFactory.algorithm</td><td>string</td><td>-</td><td>
+                                               <p>The key manager factory 
algorithm name. If not set, defaults to the
+                                                       value returned from the 
Java runtime call
+                                                               <code 
class="literal">KeyManagerFactory.getDefaultAlgorithm()</code></p>
+                                               <p>For compatibility with older 
clients, the synonym
+                                                               <code 
class="varname">qpid.ssl.keyStoreCertType</code> is supported.</p>
+                                       
</td></tr><tr><td>qpid.ssl.TrustManagerFactory.algorithm</td><td>string</td><td>-</td><td>
+                                               <p>The trust manager factory 
algorithm name. If not set, defaults to the
+                                                       value returned from the 
Java runtime call
+                                                               <code 
class="literal">TrustManagerFactory.getDefaultAlgorithm()</code></p>
+                                               <p>For compatibility with older 
clients, the synonym
+                                                               <code 
class="varname">qpid.ssl.trustStoreCertType</code> is supported.</p>
+                                       
</td></tr></tbody></table></div></div><br class="table-break" /><div 
class="table"><a id="idm140185669272480"></a><p 
class="title"><strong>Table&#160;9.8.&#160;Config Options For Security - 
Standard JVM properties needed when Using SSL for
+                       securing connections or using EXTERNAL as the SASL 
mechanism.<a class="footnote" href="#ftn.idm140185669271504" 
id="idm140185669271504"><sup class="footnote">[a]</sup></a></strong></p><div 
class="table-contents"><table border="1" summary="Config Options For Security - 
Standard JVM properties needed when Using SSL for&#10;                     
securing connections or using EXTERNAL as the SASL mechanism.Qpid allows you to 
have per connection key and trust stores if required. If&#10;                   
                specified per connection, the JVM arguments are ignored." 
width="100%"><colgroup><col /><col /><col /><col 
/></colgroup><thead><tr><th>Property Name</th><th>Type</th><th>Default 
Value</th><th>Description</th></tr></thead><tbody><tr><td>javax.net.ssl.keyStore</td><td>string</td><td>jvm
 default</td><td><p>Specifies the key store path.</p><p>This can also be set per
+                                                       connection using the <a 
class="link" href="JMS-Client-0-8-Connection-URL.html" 
title="Chapter&#160;7.&#160;Connection URLs">Connection URL</a> 
options.</p></td></tr><tr><td>javax.net.ssl.keyStorePassword</td><td>string</td><td>jvm
 default</td><td><p>Specifies the key store password.</p><p>This can also be set
+                                                       per connection using 
the <a class="link" href="JMS-Client-0-8-Connection-URL.html" 
title="Chapter&#160;7.&#160;Connection URLs">Connection URL</a> 
options.</p></td></tr><tr><td>javax.net.ssl.trustStore</td><td>string</td><td>jvm
 default</td><td><p>Specifies the trust store path.</p><p>This can also be set
+                                                       per connection using 
the <a class="link" href="JMS-Client-0-8-Connection-URL.html" 
title="Chapter&#160;7.&#160;Connection URLs">Connection URL</a> 
options.</p></td></tr><tr><td>javax.net.ssl.trustStorePassword</td><td>string</td><td>jvm
 default</td><td><p>Specifies the trust store password.</p><p>This can also be
+                                                       set per connection 
using the <a class="link" href="JMS-Client-0-8-Connection-URL.html" 
title="Chapter&#160;7.&#160;Connection URLs">Connection URL</a>
+                                                       
options.</p></td></tr></tbody><tbody class="footnotes"><tr><td colspan="4"><div 
class="footnote" id="ftn.idm140185669271504"><p><a class="para" 
href="#idm140185669271504"><sup class="para">[a] </sup></a>Qpid allows you to 
have per connection key and trust stores if required. If
+                                       specified per connection, the JVM 
arguments are ignored.</p></div></td></tr></tbody></table></div></div><br 
class="table-break" /></div><div class="navfooter"><hr /><table 
summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a 
accesskey="p" href="JMS-Client-0-8-Binding-URL.html">Prev</a>&#160;</td><td 
align="center" width="20%">&#160;</td><td align="right" width="40%">&#160;<a 
accesskey="n" href="JMS-Client-0-8-Logging.html">Next</a></td></tr><tr><td 
align="left" valign="top" width="40%">Chapter&#160;8.&#160;Binding 
URL&#160;</td><td align="center" width="20%"><a accesskey="h" 
href="index.html">Home</a></td><td align="right" valign="top" 
width="40%">&#160;Chapter&#160;10.&#160;Logging</td></tr></table></div></div>
\ No newline at end of file

Added: 
qpid/site/input/releases/qpid-java-6.0.0/jms-client-0-8/book/css/style.css
URL: 
http://svn.apache.org/viewvc/qpid/site/input/releases/qpid-java-6.0.0/jms-client-0-8/book/css/style.css?rev=1718924&view=auto
==============================================================================
--- qpid/site/input/releases/qpid-java-6.0.0/jms-client-0-8/book/css/style.css 
(added)
+++ qpid/site/input/releases/qpid-java-6.0.0/jms-client-0-8/book/css/style.css 
Wed Dec  9 17:41:59 2015
@@ -0,0 +1,279 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+ul {
+    list-style-type:square;
+}
+
+th { 
+    font-weight: bold;
+}
+
+.navfooter td { 
+    font-size:10pt;
+}
+
+.navheader td { 
+    font-size:10pt;
+}
+
+body {
+    margin:0;
+    background:#FFFFFF;
+    font-family:"Verdana", sans-serif;
+    font-size:10pt;
+}
+
+.container {
+    width:950px;
+    margin:0 auto;
+}
+
+body a {
+    color:#000000;
+}
+
+
+div.book {
+    margin-left:10pt;
+    margin-right:10pt;
+}
+
+div.preface {
+    margin-left:10pt;
+    margin-right:10pt;
+}
+
+div.chapter {
+    margin-left:10pt;
+    margin-right:10pt;
+}
+
+div.section {
+    margin-left:10pt;
+    margin-right:10pt;
+}
+
+div.titlepage {
+    margin-left:-10pt;
+    margin-right:-10pt;
+}
+
+.calloutlist td {
+    font-size:10pt;
+}
+
+.table-contents table {
+    border-spacing: 0px;
+}
+
+.table-contents td {
+    font-size:10pt;
+    padding-left:6px;
+    padding-right:6px;
+}
+
+div.breadcrumbs {
+    font-size:9pt;
+    margin-right:10pt;
+    padding-bottom:16px;
+}
+
+.chapter h2.title {
+    font-size:20pt;
+    color:#0c3b82;
+}
+
+.chapter .section h2.title {
+    font-size:18pt;
+    color:#0c3b82;
+}
+
+.section h2.title {
+    font-size:16pt;
+    color:#0c3b82;
+}
+
+.section h3.title {
+    font-size:14pt;
+    color:#0c3b82;
+}
+
+.section h4.title {
+    font-size:12pt;
+    color:#0c3b82;
+}
+
+.section h5.title {
+    font-size:12pt;
+    color:#0c3b82;
+}
+
+.section h6.title {
+    font-size:12pt;
+    color:#0c3b82;
+}
+
+.toc a {
+    font-size:9pt;
+}
+
+.header {
+    height:100px;
+    width:950px;
+    background:url(http://qpid.apache.org/images/header.png)
+}
+
+.logo {
+    text-align:center;
+    font-weight:600;
+    padding:0 0 0 0;
+    font-size:14px;
+    font-family:"Verdana", cursive;
+}
+
+.logo a {
+    color:#000000;
+    text-decoration:none;
+}
+
+.main_text_area {
+    margin-left:200px;
+}
+
+.main_text_area_top {
+    height:14px;
+    font-size:1px;
+}
+
+.main_text_area_bottom {
+    display:none;
+/*  height:14px;
+    margin-bottom:4px;*/
+}
+
+.main_text_area_body {
+    padding:5px 24px;
+}
+
+.main_text_area_body p {
+    text-align:justify;
+}
+
+.main_text_area br {
+    line-height:10px;
+}
+
+.main_text_area h1 {
+    font-size:28px;
+    font-weight:600;
+    margin:0 0 24px 0;
+    color:#0c3b82;
+    font-family:"Verdana", Times, serif;
+}
+
+.main_text_area h2 {
+    font-size:24px;
+    font-weight:600;
+    margin:24px 0 8px 0;
+    color:#0c3b82;
+    font-family:"Verdana",Times, serif;
+}
+
+.main_text_area ol, .main_text_area ul {
+    padding:0;
+    margin:10px 0;
+    margin-left:20px;
+}
+
+.main_text_area li {
+/*    margin-left:40px; */
+}
+
+.main_text_area, .menu_box {
+    font-size:13px;
+    line-height:17px;
+    color:#000000;
+}
+
+.main_text_area {
+    font-size:14px;
+}
+
+.main_text_area a {
+    color:#000000;
+}
+
+.main_text_area a:hover {
+    color:#000000;
+}
+
+.menu_box {
+    width:196px;
+    float:left;
+    margin-left:4px;
+}
+
+.menu_box_top {
+    background:url(http://qpid.apache.org/images/menu_top.png) no-repeat; 
+    height:14px;
+    font-size:1px;
+}
+
+.menu_box_body {
+    background:url(http://qpid.apache.org/images/menu_body.png) repeat-y; 
+    padding:5px 24px 5px 24px;
+}
+
+.menu_box_bottom {
+    background:url(http://qpid.apache.org/images/menu_bottom.png) no-repeat; 
+    height:14px;
+    font-size:1px;
+    margin-bottom:1px;
+}
+
+.menu_box h3 {
+    font-size:20px;
+    font-weight:500;
+    margin:0 0 8px 0;
+    color:#0c3b82;
+    font-family:"Verdana",Times, serif;
+}
+
+.menu_box ul {
+    margin:12px;
+    padding:0px;
+}
+
+.menu_box li {
+    list-style:square; 
+}
+
+.menu_box a {
+    color:#000000;
+    text-decoration:none;
+}
+
+.menu_box a:hover {
+    color:#000000;
+    text-decoration:underline;
+}
+
+

Added: 
qpid/site/input/releases/qpid-java-6.0.0/jms-client-0-8/book/images/JndiOverview.png
URL: 
http://svn.apache.org/viewvc/qpid/site/input/releases/qpid-java-6.0.0/jms-client-0-8/book/images/JndiOverview.png?rev=1718924&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
qpid/site/input/releases/qpid-java-6.0.0/jms-client-0-8/book/images/JndiOverview.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
qpid/site/input/releases/qpid-java-6.0.0/jms-client-0-8/book/images/QpidJmsOverview.png
URL: 
http://svn.apache.org/viewvc/qpid/site/input/releases/qpid-java-6.0.0/jms-client-0-8/book/images/QpidJmsOverview.png?rev=1718924&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
qpid/site/input/releases/qpid-java-6.0.0/jms-client-0-8/book/images/QpidJmsOverview.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
qpid/site/input/releases/qpid-java-6.0.0/jms-client-0-8/book/index.html.in
URL: 
http://svn.apache.org/viewvc/qpid/site/input/releases/qpid-java-6.0.0/jms-client-0-8/book/index.html.in?rev=1718924&view=auto
==============================================================================
--- qpid/site/input/releases/qpid-java-6.0.0/jms-client-0-8/book/index.html.in 
(added)
+++ qpid/site/input/releases/qpid-java-6.0.0/jms-client-0-8/book/index.html.in 
Wed Dec  9 17:41:59 2015
@@ -0,0 +1,6 @@
+<div class="docbook"><div class="navheader"><table summary="Navigation header" 
width="100%"><tr><th align="center" colspan="3">Qpid JMS Client for AMQP 
protocols 0-8, 0-9 and 0-9-1</th></tr><tr><td align="left" 
width="20%">&#160;</td><th align="center" width="60%">&#160;</th><td 
align="right" width="20%">&#160;<a accesskey="n" 
href="JMS-Client-0-8-Introduction.html">Next</a></td></tr></table><hr 
/></div><div class="book"><div class="titlepage"><div><div><h1 class="title"><a 
id="idm140185683683120"></a>Qpid JMS Client for AMQP protocols 0-8, 0-9 and 
0-9-1</h1></div></div><hr /></div><div class="toc"><p><strong>Table of 
Contents</strong></p><dl class="toc"><dt><span class="chapter"><a 
href="JMS-Client-0-8-Introduction.html">1. 
Introduction</a></span></dt><dt><span class="chapter"><a 
href="JMS-Client-0-8-Document-Scope-And-Intended-Audience.html">2. Document 
Scope And Intended Audience</a></span></dt><dt><span class="chapter"><a 
href="JMS-Client-0-8-JMS-Getting-And-Dependencies.html">3
 . Getting the Client And Dependencies</a></span></dt><dd><dl><dt><span 
class="section"><a 
href="JMS-Client-0-8-JMS-Getting-And-Dependencies.html#JMS-Client-0-8-JMS-Getting-And-Dependencies-Getting">3.1.
 Getting the Client</a></span></dt><dt><span class="section"><a 
href="JMS-Client-0-8-JMS-Getting-And-Dependencies-Dependencies.html">3.2. 
Dependencies</a></span></dt></dl></dd><dt><span class="chapter"><a 
href="JMS-Client-0-8-Examples.html">4. 
Examples</a></span></dt><dd><dl><dt><span class="section"><a 
href="JMS-Client-0-8-Examples.html#JMS-Client-0-8-Examples-PTP">4.1. Point to 
point example</a></span></dt><dt><span class="section"><a 
href="JMS-Client-0-8-Examples-PubSub.html">4.2. Publish/subscribe 
example</a></span></dt></dl></dd><dt><span class="chapter"><a 
href="JMS-Client-0-8-Client-Understanding.html">5. Understanding the Qpid JMS 
client</a></span></dt><dd><dl><dt><span class="section"><a 
href="JMS-Client-0-8-Client-Understanding.html#JMS-Client-0-8-Client-Understanding-Overvi
 ew">5.1. Overview</a></span></dt><dt><span class="section"><a 
href="JMS-Client-0-8-Client-Understanding-ConnectionFactory.html">5.2. 
ConnectionFactory</a></span></dt><dt><span class="section"><a 
href="JMS-Client-0-8-Client-Understanding-Connection.html">5.3. 
Connection</a></span></dt><dd><dl><dt><span class="section"><a 
href="JMS-Client-0-8-Client-Understanding-Connection.html#JMS-Client-0-8-Client-Understanding-Connection-Failover">5.3.1.
 Failover</a></span></dt><dt><span class="section"><a 
href="JMS-Client-0-8-Client-Understanding-Connection.html#JMS-Client-0-8-Client-Understanding-Connection-Heartbeating">5.3.2.
 Heartbeating</a></span></dt><dt><span class="section"><a 
href="JMS-Client-0-8-Client-Understanding-Connection.html#JMS-Client-0-8-Client-Understanding-Connection-SSL">5.3.3.
 SSL</a></span></dt><dt><span class="section"><a 
href="JMS-Client-0-8-Client-Understanding-Connection.html#JMS-Client-0-8-Client-Understanding-Connection-MessageCompression">5.3.4.
 Message Compression<
 /a></span></dt></dl></dd><dt><span class="section"><a 
href="JMS-Client-0-8-Client-Understanding-Session.html">5.4. 
Session</a></span></dt><dd><dl><dt><span class="section"><a 
href="JMS-Client-0-8-Client-Understanding-Session.html#JMS-Client-0-8-Client-Understanding-Session-Prefecth">5.4.1.
 Prefetch</a></span></dt><dt><span class="section"><a 
href="JMS-Client-0-8-Client-Understanding-Session.html#JMS-Client-0-8-Client-Understanding-Session-TemporaryQueues">5.4.2.
 TemporaryQueues</a></span></dt><dt><span class="section"><a 
href="JMS-Client-0-8-Client-Understanding-Session.html#JMS-Client-0-8-Client-Understanding-Session-CreateQueue">5.4.3.
 CreateQueue</a></span></dt><dt><span class="section"><a 
href="JMS-Client-0-8-Client-Understanding-Session.html#JMS-Client-0-8-Client-Understanding-Session-CreateTopic">5.4.4.
 CreateTopic</a></span></dt></dl></dd><dt><span class="section"><a 
href="JMS-Client-0-8-Client-Understanding-MessageProducer.html">5.5. 
MessageProducer</a></span></dt><dd><dl><d
 t><span class="section"><a 
href="JMS-Client-0-8-Client-Understanding-MessageProducer.html#JMS-Client-0-8-Client-Understanding-MessageProducer-MandatoryMessage">5.5.1.
 Mandatory Messages</a></span></dt><dt><span class="section"><a 
href="JMS-Client-0-8-Client-Understanding-MessageProducer.html#JMS-Client-0-8-Client-Understanding-MessageProducer-CloseWhenNoRoute">5.5.2.
 Close When No Route</a></span></dt><dt><span class="section"><a 
href="JMS-Client-0-8-Client-Understanding-MessageProducer.html#JMS-Client-0-8-Client-Understanding-MessageProducer-ImmediateMessage">5.5.3.
 Immediate Messages</a></span></dt><dt><span class="section"><a 
href="JMS-Client-0-8-Client-Understanding-MessageProducer.html#JMS-Client-0-8-Client-Understanding-MessageProducer-FlowControl">5.5.4.
 Flow Control</a></span></dt></dl></dd><dt><span class="section"><a 
href="JMS-Client-0-8-Client-Understanding-MessageConsumer.html">5.6. 
MessageConsumer</a></span></dt><dd><dl><dt><span class="section"><a 
href="JMS-Client-0-8-
 
Client-Understanding-MessageConsumer.html#JMS-Client-0-8-Client-Understanding-MessageConsumer-ConsumerSideEffect">5.6.1.
 Consumers have Exchange/Queue Declaration and Binding Side 
Effect</a></span></dt><dt><span class="section"><a 
href="JMS-Client-0-8-Client-Understanding-MessageConsumer.html#JMS-Client-0-8-Client-Understanding-MessageConsumer-TopicSubscriptions">5.6.2.
 Topic Subscriptions</a></span></dt><dt><span class="section"><a 
href="JMS-Client-0-8-Client-Understanding-MessageConsumer.html#JMS-Client-0-8-Client-Understanding-MessageConsumer-MaximumDeliveryCount">5.6.3.
 Maximum Delivery Count</a></span></dt></dl></dd><dt><span class="section"><a 
href="JMS-Client-0-8-Client-Understanding-Destinations.html">5.7. 
Destinations</a></span></dt></dl></dd><dt><span class="chapter"><a 
href="JMS-Client-0-8-JNDI-Properties-Format.html">6. JNDI Properties 
Format</a></span></dt><dd><dl><dt><span class="section"><a 
href="JMS-Client-0-8-JNDI-Properties-Format.html#JMS-Client-0-8-JNDI-Propertie
 s-Format-ConnectionFactory">6.1. ConnectionFactory</a></span></dt><dt><span 
class="section"><a href="JMS-Client-0-8-JNDI-Properties-Format-Queue.html">6.2. 
Queue</a></span></dt><dt><span class="section"><a 
href="JMS-Client-0-8-JNDI-Properties-Format-Topic.html">6.3. 
Topic</a></span></dt><dt><span class="section"><a 
href="JMS-Client-0-8-JNDI-Properties-Format-Destination.html">6.4. 
Destination</a></span></dt></dl></dd><dt><span class="chapter"><a 
href="JMS-Client-0-8-Connection-URL.html">7. Connection 
URLs</a></span></dt><dt><span class="chapter"><a 
href="JMS-Client-0-8-Binding-URL.html">8. Binding 
URL</a></span></dt><dd><dl><dt><span class="section"><a 
href="JMS-Client-0-8-Binding-URL.html#JMS-Client-0-8-Binding-URL-Examples">8.1. 
Binding URL Examples</a></span></dt><dd><dl><dt><span class="section"><a 
href="JMS-Client-0-8-Binding-URL.html#JMS-Client-0-8-Binding-URL-JMS-Queues">8.1.1.
 Binding URLs for declaring of JMS Queues</a></span></dt><dt><span 
class="section"><a href="JMS-Clie
 nt-0-8-Binding-URL.html#JMS-Client-0-8-Binding-URL-JMS-Topics">8.1.2. Binding 
URLs for declaring of JMS Topics</a></span></dt><dt><span class="section"><a 
href="JMS-Client-0-8-Binding-URL.html#JMS-Client-0-8-Binding-URL-Topics-Wildcards">8.1.3.
 Wildcard characters in routing keys for topic 
destinations</a></span></dt><dt><span class="section"><a 
href="JMS-Client-0-8-Binding-URL.html#JMS-Client-0-8-Binding-URL-Extra-Examples">8.1.4.
 More Examples</a></span></dt></dl></dd></dl></dd><dt><span class="chapter"><a 
href="JMS-Client-0-8-System-Properties.html">9. System 
Properties</a></span></dt><dt><span class="chapter"><a 
href="JMS-Client-0-8-Logging.html">10. Logging</a></span></dt><dd><dl><dt><span 
class="section"><a 
href="JMS-Client-0-8-Logging.html#JMS-Client-0-8-Logging-RecommendedProductionLoggingLevel">10.1.
 Recommended Production Logging Level</a></span></dt><dt><span 
class="section"><a 
href="JMS-Client-0-8-Logging-EnablingDebugLogging.html">10.2. Enabling 
Debug</a></span></dt></d
 l></dd><dt><span class="appendix"><a 
href="JMS-Client-0-8-Appendix-Exceptions.html">A. 
Exceptions</a></span></dt><dt><span class="appendix"><a 
href="JMS-Client-0-8-Appendix-Maven.html">B. Minimal Maven 
POM</a></span></dt><dt><span class="appendix"><a 
href="JMS-Client-0-8-Appendix-JMS-Extensions.html">C. JMS 
Extensions</a></span></dt><dd><dl><dt><span class="section"><a 
href="JMS-Client-0-8-Appendix-JMS-Extensions.html#JMS-Client-0-8-Appendix-JMS-Extensions-Queue">C.1.
 Queue Management</a></span></dt><dd><dl><dt><span class="section"><a 
href="JMS-Client-0-8-Appendix-JMS-Extensions.html#JMS-Client-0-8-Appendix-JMS-Extensions-Queue-Creation">C.1.1.
 Queue creation</a></span></dt></dl></dd><dt><span class="section"><a 
href="JMS-Client-0-8-Appendix-JMS-Extensions-Binding.html">C.2. Binding 
Management</a></span></dt><dd><dl><dt><span class="section"><a 
href="JMS-Client-0-8-Appendix-JMS-Extensions-Binding.html#JMS-Client-0-8-Appendix-JMS-Extensions-Binding-Creation">C.2.1.
 Binding creation<
 /a></span></dt></dl></dd></dl></dd><dt><span class="appendix"><a 
href="JMS-Client-0-8-Appendix-PooledConnecytionFactory.html">D. 
PooledConnectionFactory</a></span></dt><dt><span class="appendix"><a 
href="JMS-Client-0-8-Appendix-Tomcat-JNDI-Integration.html">E. How to bind Qpid 
destinations and connection factories into Tomcat 
JNDI</a></span></dt></dl></div><div class="list-of-figures"><p><strong>List of 
Figures</strong></p><dl><dt>5.1. <a 
href="JMS-Client-0-8-Client-Understanding.html#idm140185674420832">Architecture 
of a typical JMS application</a></dt><dt>5.2. <a 
href="JMS-Client-0-8-Client-Understanding-ConnectionFactory.html#idm140185675495856">JNDI
 overview</a></dt></dl></div><div class="list-of-tables"><p><strong>List of 
Tables</strong></p><dl><dt>7.1. <a 
href="JMS-Client-0-8-Connection-URL.html#JMS-Client-0-8-Connection-URL-Options">Connection
 URL Options</a></dt><dt>7.2. <a 
href="JMS-Client-0-8-Connection-URL.html#idm140185671535072">Broker List 
Options</a></dt><dt>8.1. <a h
 ref="JMS-Client-0-8-Binding-URL.html#idm140185674084096">Binding URL options 
</a></dt><dt>8.2. <a 
href="JMS-Client-0-8-Binding-URL.html#idm140185674718496">Binding URL 
examples</a></dt><dt>9.1. <a 
href="JMS-Client-0-8-System-Properties.html#idm140185670480432">System 
Properties Affecting Connection Behaviour</a></dt><dt>9.2. <a 
href="JMS-Client-0-8-System-Properties.html#idm140185669468608">Config Options 
For Session Behaviour</a></dt><dt>9.3. <a 
href="JMS-Client-0-8-System-Properties.html#idm140185670601520">Config Options 
For Consumer Behaviour</a></dt><dt>9.4. <a 
href="JMS-Client-0-8-System-Properties.html#idm140185671030768">Config Options 
For Producer Behaviour</a></dt><dt>9.5. <a 
href="JMS-Client-0-8-System-Properties.html#idm140185668944592">Config Options 
For Threading</a></dt><dt>9.6. <a 
href="JMS-Client-0-8-System-Properties.html#idm140185668934080">Config Options 
For I/O</a></dt><dt>9.7. <a 
href="JMS-Client-0-8-System-Properties.html#idm140185669288432">Config Options 
For
  Security - Using SSL for securing connections or using EXTERNAL as
+                       the SASL mechanism.</a></dt><dt>9.8. <a 
href="JMS-Client-0-8-System-Properties.html#idm140185669272480">Config Options 
For Security - Standard JVM properties needed when Using SSL for
+                       securing connections or using EXTERNAL as the SASL 
mechanism.</a></dt><dt>A.1. <a 
href="JMS-Client-0-8-Appendix-Exceptions.html#idm140185669434624">Exceptions 
linked to JMSExceptions thrown by JMS methods</a></dt><dt>A.2. <a 
href="JMS-Client-0-8-Appendix-Exceptions.html#idm140185672145408">Exceptions 
linked to JMSExceptions received by ExceptionListeners</a></dt></dl></div><div 
class="list-of-examples"><p><strong>List of Examples</strong></p><dl><dt>4.1. 
<a href="JMS-Client-0-8-Examples.html#JMS-Client-0-8-Examples-PTP-Java">JMS 
Example - Point to Point Messaging</a></dt><dt>4.2. <a 
href="JMS-Client-0-8-Examples.html#JMS-Client-0-8-Examples-PTP-PropertiesFile">JMS
 Example - Point to Point Messaging - JNDI Properties</a></dt><dt>4.3. <a 
href="JMS-Client-0-8-Examples-PubSub.html#JMS-Client-0-8-Examples-PubSub-Java">JMS
 Example - Publish/subscribe Messaging</a></dt><dt>4.4. <a 
href="JMS-Client-0-8-Examples-PubSub.html#JMS-Client-0-8-Examples-PubSub-PropertiesFile">JMS
 Example - Publ
 ish/subscribe Messaging - JNDI Properties</a></dt><dt>5.1. <a 
href="JMS-Client-0-8-Client-Understanding-Connection.html#idm140185668918160">Connection
 URL configured for failover</a></dt><dt>5.2. <a 
href="JMS-Client-0-8-Client-Understanding-Connection.html#idm140185668913968">Connection
 URL configured with nofailover</a></dt><dt>5.3. <a 
href="JMS-Client-0-8-Client-Understanding-Connection.html#idm140185671609872">Connection
 URL configured for heartbeating</a></dt><dt>5.4. <a 
href="JMS-Client-0-8-Client-Understanding-Connection.html#idm140185671604992">Connection
 URL configured for SSL - CA trusted by JVM</a></dt><dt>5.5. <a 
href="JMS-Client-0-8-Client-Understanding-Connection.html#idm140185671599952">Connection
 URL configured for SSL - CA not trusted by JVM</a></dt><dt>5.6. <a 
href="JMS-Client-0-8-Client-Understanding-Connection.html#idm140185670084704">Connection
 URL configured for SSL - SSL client-auth</a></dt><dt>5.7. <a 
href="JMS-Client-0-8-Client-Understanding-Connection.html#i
 dm140185670080032">Connection URL configured for SSL - SSL client-auth 
(2)</a></dt><dt>7.1. <a 
href="JMS-Client-0-8-Connection-URL.html#idm140185671542320">Broker 
Lists</a></dt><dt>8.1. <a 
href="JMS-Client-0-8-Binding-URL.html#idm140185672784016">Binding URL examples 
for JMS queues</a></dt><dt>8.2. <a 
href="JMS-Client-0-8-Binding-URL.html#idm140185669387552">Binding URL examples 
for JMS topics</a></dt><dt>B.1. <a 
href="JMS-Client-0-8-Appendix-Maven.html#idm140185670152352">Minimal Maven POM 
</a></dt><dt>C.1. <a 
href="JMS-Client-0-8-Appendix-JMS-Extensions.html#idm140185674616528">Creation 
of an LVQ using the Qpid extension to JMS</a></dt><dt>C.2. <a 
href="JMS-Client-0-8-Appendix-JMS-Extensions-Binding.html#idm140185673965072">Binding
 a queue using JMS</a></dt><dt>D.1. <a 
href="JMS-Client-0-8-Appendix-PooledConnecytionFactory.html#idm140185673840496">Example
 of configuring <span class="emphasis"><em>PooledConnectionFactory</em></span> 
in spring xml
+        configuration.</a></dt><dt>D.2. <a 
href="JMS-Client-0-8-Appendix-PooledConnecytionFactory.html#idm140185672199200">Examples
 of configuring <span class="emphasis"><em>PooledConnectionFactory</em></span> 
with
+          <span 
class="emphasis"><em>DefaultMessageListenerContainer</em></span> and
+        <span class="emphasis"><em>JmsTemplate</em></span>.</a></dt><dt>E.1. 
<a 
href="JMS-Client-0-8-Appendix-Tomcat-JNDI-Integration.html#idm140185672304432">An
 example of Tomcat context.xml declaring Qpid JNDI resources</a></dt><dt>E.2. 
<a 
href="JMS-Client-0-8-Appendix-Tomcat-JNDI-Integration.html#idm140185669425696">An
 example of JNDI lookup for Qpid resources registered in Tomcat 
JNDI</a></dt><dt>E.3. <a 
href="JMS-Client-0-8-Appendix-Tomcat-JNDI-Integration.html#idm140185669419056">An
 example of Tomcat context.xml declaring Qpid JNDI resources using deprecated 
<code class="literal">ObjectFactory</code> and deprecated 
addresses</a></dt></dl></div></div><div class="navfooter"><hr /><table 
summary="Navigation footer" width="100%"><tr><td align="left" 
width="40%">&#160;</td><td align="center" width="20%">&#160;</td><td 
align="right" width="40%">&#160;<a accesskey="n" 
href="JMS-Client-0-8-Introduction.html">Next</a></td></tr><tr><td align="left" 
valign="top" width="40%">&#160;</td><t
 d align="center" width="20%">&#160;</td><td align="right" valign="top" 
width="40%">&#160;Chapter&#160;1.&#160;Introduction</td></tr></table></div></div>
\ No newline at end of file

Added: qpid/site/input/releases/qpid-java-6.0.0/qpid-jms/examples/Drain.java
URL: 
http://svn.apache.org/viewvc/qpid/site/input/releases/qpid-java-6.0.0/qpid-jms/examples/Drain.java?rev=1718924&view=auto
==============================================================================
--- qpid/site/input/releases/qpid-java-6.0.0/qpid-jms/examples/Drain.java 
(added)
+++ qpid/site/input/releases/qpid-java-6.0.0/qpid-jms/examples/Drain.java Wed 
Dec  9 17:41:59 2015
@@ -0,0 +1,103 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+package org.apache.qpid.example;
+
+import javax.jms.Connection;
+import javax.jms.Destination;
+import javax.jms.Message;
+import javax.jms.MessageConsumer;
+import javax.jms.Session;
+
+import org.apache.qpid.client.AMQAnyDestination;
+
+public class Drain extends OptionParser
+{
+       
+    static final Option FOREVER = new Option("f",
+            "forever",
+            "ignore timeout and wait forever",
+            null,
+            null,
+            Boolean.class);
+
+    static final Option COUNT = new Option ("c",
+            "count",
+            "read c messages, then exit",
+            "COUNT",
+            "0",
+            Integer.class);
+                                                
+
+    static 
+    {        
+        addOption(BROKER);
+        addOption(HELP);
+        addOption(TIMEOUT);
+        addOption(FOREVER);
+        addOption(COUNT);
+        addOption(CON_OPTIONS);
+        addOption(BROKER_OPTIONS);
+    }
+    
+    public Drain(String[] args, String usage, String desc) throws Exception
+    {   
+        super(args, usage, desc);        
+        
+        Connection con = createConnection();
+        con.start();
+        Session ssn = con.createSession(false,Session.AUTO_ACKNOWLEDGE);     
+        Destination dest = new AMQAnyDestination(getAddress());
+        MessageConsumer consumer = ssn.createConsumer(dest);
+        Message msg;
+        
+        long timeout = -1;        
+        int count = 0;
+        int i = 0;
+        
+        if (containsOp(TIMEOUT)) { timeout = 
Integer.parseInt(getOp(TIMEOUT))*1000; }
+        if (containsOp(FOREVER)) { timeout = 0; }
+        if (containsOp(COUNT)) { count = Integer.parseInt(getOp(COUNT)); }
+        
+        while ((msg = consumer.receive(timeout)) != null)
+        {
+            System.out.println("\n------------- Msg -------------");
+            System.out.println(msg);
+            System.out.println("-------------------------------\n");
+
+            if (count > 0) {
+                if (++i == count) {
+                    break;                    
+                }               
+            }            
+        }
+        consumer.close();
+        ssn.close();
+        con.close();
+    }
+   
+    public static void main(String[] args) throws Exception
+    {
+        String u = "Usage: drain [OPTIONS] 'ADDRESS'";
+        String d = "Drains messages from the specified address."; 
+            
+        new Drain(args,u,d);        
+    }
+}

Added: 
qpid/site/input/releases/qpid-java-6.0.0/qpid-jms/examples/Drain.java.html.in
URL: 
http://svn.apache.org/viewvc/qpid/site/input/releases/qpid-java-6.0.0/qpid-jms/examples/Drain.java.html.in?rev=1718924&view=auto
==============================================================================
--- 
qpid/site/input/releases/qpid-java-6.0.0/qpid-jms/examples/Drain.java.html.in 
(added)
+++ 
qpid/site/input/releases/qpid-java-6.0.0/qpid-jms/examples/Drain.java.html.in 
Wed Dec  9 17:41:59 2015
@@ -0,0 +1,88 @@
+
+<h1>Drain.java</h1>
+<div class="highlight"><pre><span class="kn">package</span> <span 
class="nn">org.apache.qpid.example</span><span class="o">;</span>
+
+<span class="kn">import</span> <span 
class="nn">javax.jms.Connection</span><span class="o">;</span>
+<span class="kn">import</span> <span 
class="nn">javax.jms.Destination</span><span class="o">;</span>
+<span class="kn">import</span> <span class="nn">javax.jms.Message</span><span 
class="o">;</span>
+<span class="kn">import</span> <span 
class="nn">javax.jms.MessageConsumer</span><span class="o">;</span>
+<span class="kn">import</span> <span class="nn">javax.jms.Session</span><span 
class="o">;</span>
+
+<span class="kn">import</span> <span 
class="nn">org.apache.qpid.client.AMQAnyDestination</span><span 
class="o">;</span>
+
+<span class="kd">public</span> <span class="kd">class</span> <span 
class="nc">Drain</span> <span class="kd">extends</span> <span 
class="n">OptionParser</span>
+<span class="o">{</span>
+       
+    <span class="kd">static</span> <span class="kd">final</span> <span 
class="n">Option</span> <span class="n">FOREVER</span> <span class="o">=</span> 
<span class="k">new</span> <span class="n">Option</span><span 
class="o">(</span><span class="s">&quot;f&quot;</span><span class="o">,</span>
+            <span class="s">&quot;forever&quot;</span><span class="o">,</span>
+            <span class="s">&quot;ignore timeout and wait 
forever&quot;</span><span class="o">,</span>
+            <span class="kc">null</span><span class="o">,</span>
+            <span class="kc">null</span><span class="o">,</span>
+            <span class="n">Boolean</span><span class="o">.</span><span 
class="na">class</span><span class="o">);</span>
+
+    <span class="kd">static</span> <span class="kd">final</span> <span 
class="n">Option</span> <span class="n">COUNT</span> <span class="o">=</span> 
<span class="k">new</span> <span class="n">Option</span> <span 
class="o">(</span><span class="s">&quot;c&quot;</span><span class="o">,</span>
+            <span class="s">&quot;count&quot;</span><span class="o">,</span>
+            <span class="s">&quot;read c messages, then exit&quot;</span><span 
class="o">,</span>
+            <span class="s">&quot;COUNT&quot;</span><span class="o">,</span>
+            <span class="s">&quot;0&quot;</span><span class="o">,</span>
+            <span class="n">Integer</span><span class="o">.</span><span 
class="na">class</span><span class="o">);</span>
+                                                
+
+    <span class="kd">static</span> 
+    <span class="o">{</span>        
+        <span class="n">addOption</span><span class="o">(</span><span 
class="n">BROKER</span><span class="o">);</span>
+        <span class="n">addOption</span><span class="o">(</span><span 
class="n">HELP</span><span class="o">);</span>
+        <span class="n">addOption</span><span class="o">(</span><span 
class="n">TIMEOUT</span><span class="o">);</span>
+        <span class="n">addOption</span><span class="o">(</span><span 
class="n">FOREVER</span><span class="o">);</span>
+        <span class="n">addOption</span><span class="o">(</span><span 
class="n">COUNT</span><span class="o">);</span>
+        <span class="n">addOption</span><span class="o">(</span><span 
class="n">CON_OPTIONS</span><span class="o">);</span>
+        <span class="n">addOption</span><span class="o">(</span><span 
class="n">BROKER_OPTIONS</span><span class="o">);</span>
+    <span class="o">}</span>
+    
+    <span class="kd">public</span> <span class="nf">Drain</span><span 
class="o">(</span><span class="n">String</span><span class="o">[]</span> <span 
class="n">args</span><span class="o">,</span> <span class="n">String</span> 
<span class="n">usage</span><span class="o">,</span> <span 
class="n">String</span> <span class="n">desc</span><span class="o">)</span> 
<span class="kd">throws</span> <span class="n">Exception</span>
+    <span class="o">{</span>   
+        <span class="kd">super</span><span class="o">(</span><span 
class="n">args</span><span class="o">,</span> <span class="n">usage</span><span 
class="o">,</span> <span class="n">desc</span><span class="o">);</span>        
+        
+        <span class="n">Connection</span> <span class="n">con</span> <span 
class="o">=</span> <span class="n">createConnection</span><span 
class="o">();</span>
+        <span class="n">con</span><span class="o">.</span><span 
class="na">start</span><span class="o">();</span>
+        <span class="n">Session</span> <span class="n">ssn</span> <span 
class="o">=</span> <span class="n">con</span><span class="o">.</span><span 
class="na">createSession</span><span class="o">(</span><span 
class="kc">false</span><span class="o">,</span><span 
class="n">Session</span><span class="o">.</span><span 
class="na">AUTO_ACKNOWLEDGE</span><span class="o">);</span>     
+        <span class="n">Destination</span> <span class="n">dest</span> <span 
class="o">=</span> <span class="k">new</span> <span 
class="n">AMQAnyDestination</span><span class="o">(</span><span 
class="n">getAddress</span><span class="o">());</span>
+        <span class="n">MessageConsumer</span> <span class="n">consumer</span> 
<span class="o">=</span> <span class="n">ssn</span><span 
class="o">.</span><span class="na">createConsumer</span><span 
class="o">(</span><span class="n">dest</span><span class="o">);</span>
+        <span class="n">Message</span> <span class="n">msg</span><span 
class="o">;</span>
+        
+        <span class="kt">long</span> <span class="n">timeout</span> <span 
class="o">=</span> <span class="o">-</span><span class="mi">1</span><span 
class="o">;</span>        
+        <span class="kt">int</span> <span class="n">count</span> <span 
class="o">=</span> <span class="mi">0</span><span class="o">;</span>
+        <span class="kt">int</span> <span class="n">i</span> <span 
class="o">=</span> <span class="mi">0</span><span class="o">;</span>
+        
+        <span class="k">if</span> <span class="o">(</span><span 
class="n">containsOp</span><span class="o">(</span><span 
class="n">TIMEOUT</span><span class="o">))</span> <span class="o">{</span> 
<span class="n">timeout</span> <span class="o">=</span> <span 
class="n">Integer</span><span class="o">.</span><span 
class="na">parseInt</span><span class="o">(</span><span 
class="n">getOp</span><span class="o">(</span><span 
class="n">TIMEOUT</span><span class="o">))*</span><span 
class="mi">1000</span><span class="o">;</span> <span class="o">}</span>
+        <span class="k">if</span> <span class="o">(</span><span 
class="n">containsOp</span><span class="o">(</span><span 
class="n">FOREVER</span><span class="o">))</span> <span class="o">{</span> 
<span class="n">timeout</span> <span class="o">=</span> <span 
class="mi">0</span><span class="o">;</span> <span class="o">}</span>
+        <span class="k">if</span> <span class="o">(</span><span 
class="n">containsOp</span><span class="o">(</span><span 
class="n">COUNT</span><span class="o">))</span> <span class="o">{</span> <span 
class="n">count</span> <span class="o">=</span> <span 
class="n">Integer</span><span class="o">.</span><span 
class="na">parseInt</span><span class="o">(</span><span 
class="n">getOp</span><span class="o">(</span><span class="n">COUNT</span><span 
class="o">));</span> <span class="o">}</span>
+        
+        <span class="k">while</span> <span class="o">((</span><span 
class="n">msg</span> <span class="o">=</span> <span 
class="n">consumer</span><span class="o">.</span><span 
class="na">receive</span><span class="o">(</span><span 
class="n">timeout</span><span class="o">))</span> <span class="o">!=</span> 
<span class="kc">null</span><span class="o">)</span>
+        <span class="o">{</span>
+            <span class="n">System</span><span class="o">.</span><span 
class="na">out</span><span class="o">.</span><span 
class="na">println</span><span class="o">(</span><span 
class="s">&quot;\n------------- Msg -------------&quot;</span><span 
class="o">);</span>
+            <span class="n">System</span><span class="o">.</span><span 
class="na">out</span><span class="o">.</span><span 
class="na">println</span><span class="o">(</span><span 
class="n">msg</span><span class="o">);</span>
+            <span class="n">System</span><span class="o">.</span><span 
class="na">out</span><span class="o">.</span><span 
class="na">println</span><span class="o">(</span><span 
class="s">&quot;-------------------------------\n&quot;</span><span 
class="o">);</span>
+
+            <span class="k">if</span> <span class="o">(</span><span 
class="n">count</span> <span class="o">&gt;</span> <span 
class="mi">0</span><span class="o">)</span> <span class="o">{</span>
+                <span class="k">if</span> <span class="o">(++</span><span 
class="n">i</span> <span class="o">==</span> <span class="n">count</span><span 
class="o">)</span> <span class="o">{</span>
+                    <span class="k">break</span><span class="o">;</span>       
             
+                <span class="o">}</span>               
+            <span class="o">}</span>            
+        <span class="o">}</span>
+        <span class="n">consumer</span><span class="o">.</span><span 
class="na">close</span><span class="o">();</span>
+        <span class="n">ssn</span><span class="o">.</span><span 
class="na">close</span><span class="o">();</span>
+        <span class="n">con</span><span class="o">.</span><span 
class="na">close</span><span class="o">();</span>
+    <span class="o">}</span>
+   
+    <span class="kd">public</span> <span class="kd">static</span> <span 
class="kt">void</span> <span class="nf">main</span><span 
class="o">(</span><span class="n">String</span><span class="o">[]</span> <span 
class="n">args</span><span class="o">)</span> <span class="kd">throws</span> 
<span class="n">Exception</span>
+    <span class="o">{</span>
+        <span class="n">String</span> <span class="n">u</span> <span 
class="o">=</span> <span class="s">&quot;Usage: drain [OPTIONS] 
&#39;ADDRESS&#39;&quot;</span><span class="o">;</span>
+        <span class="n">String</span> <span class="n">d</span> <span 
class="o">=</span> <span class="s">&quot;Drains messages from the specified 
address.&quot;</span><span class="o">;</span> 
+            
+        <span class="k">new</span> <span class="n">Drain</span><span 
class="o">(</span><span class="n">args</span><span class="o">,</span><span 
class="n">u</span><span class="o">,</span><span class="n">d</span><span 
class="o">);</span>        
+    <span class="o">}</span>
+<span class="o">}</span>
+</pre></div>
+
+<p><a href="Drain.java">Download this file</a></p>

Added: qpid/site/input/releases/qpid-java-6.0.0/qpid-jms/examples/Hello.java
URL: 
http://svn.apache.org/viewvc/qpid/site/input/releases/qpid-java-6.0.0/qpid-jms/examples/Hello.java?rev=1718924&view=auto
==============================================================================
--- qpid/site/input/releases/qpid-java-6.0.0/qpid-jms/examples/Hello.java 
(added)
+++ qpid/site/input/releases/qpid-java-6.0.0/qpid-jms/examples/Hello.java Wed 
Dec  9 17:41:59 2015
@@ -0,0 +1,83 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+package org.apache.qpid.example;
+
+import java.io.InputStream;
+import java.util.Properties;
+
+import javax.jms.Connection;
+import javax.jms.ConnectionFactory;
+import javax.jms.Destination;
+import javax.jms.MessageConsumer;
+import javax.jms.MessageProducer;
+import javax.jms.Session;
+import javax.jms.TextMessage;
+import javax.naming.Context;
+import javax.naming.InitialContext;
+
+
+public class Hello 
+{
+
+    public Hello() 
+    {
+    }
+
+    public static void main(String[] args)
+    {
+        Hello hello = new Hello();
+        hello.runTest();
+    }
+
+    private void runTest() 
+    {
+        try (InputStream resourceAsStream = 
this.getClass().getResourceAsStream("hello.properties"))
+        {
+            Properties properties = new Properties();
+            properties.load(resourceAsStream);
+            Context context = new InitialContext(properties);
+
+            ConnectionFactory connectionFactory = (ConnectionFactory) 
context.lookup("qpidConnectionfactory");
+            Connection connection = connectionFactory.createConnection();
+            connection.start();
+
+            Session session = connection.createSession(false, 
Session.AUTO_ACKNOWLEDGE);
+            Destination destination = (Destination) 
context.lookup("topicExchange");
+
+            MessageProducer messageProducer = 
session.createProducer(destination);
+            MessageConsumer messageConsumer = 
session.createConsumer(destination);
+
+            TextMessage message = session.createTextMessage("Hello world!");
+            messageProducer.send(message);
+
+            message = (TextMessage)messageConsumer.receive();
+            System.out.println(message.getText());
+
+            connection.close();
+            context.close();
+        }
+        catch (Exception exp) 
+        {
+            exp.printStackTrace();
+        }
+    }
+}

Added: 
qpid/site/input/releases/qpid-java-6.0.0/qpid-jms/examples/Hello.java.html.in
URL: 
http://svn.apache.org/viewvc/qpid/site/input/releases/qpid-java-6.0.0/qpid-jms/examples/Hello.java.html.in?rev=1718924&view=auto
==============================================================================
--- 
qpid/site/input/releases/qpid-java-6.0.0/qpid-jms/examples/Hello.java.html.in 
(added)
+++ 
qpid/site/input/releases/qpid-java-6.0.0/qpid-jms/examples/Hello.java.html.in 
Wed Dec  9 17:41:59 2015
@@ -0,0 +1,67 @@
+
+<h1>Hello.java</h1>
+<div class="highlight"><pre><span class="kn">package</span> <span 
class="nn">org.apache.qpid.example</span><span class="o">;</span>
+
+<span class="kn">import</span> <span 
class="nn">java.io.InputStream</span><span class="o">;</span>
+<span class="kn">import</span> <span 
class="nn">java.util.Properties</span><span class="o">;</span>
+
+<span class="kn">import</span> <span 
class="nn">javax.jms.Connection</span><span class="o">;</span>
+<span class="kn">import</span> <span 
class="nn">javax.jms.ConnectionFactory</span><span class="o">;</span>
+<span class="kn">import</span> <span 
class="nn">javax.jms.Destination</span><span class="o">;</span>
+<span class="kn">import</span> <span 
class="nn">javax.jms.MessageConsumer</span><span class="o">;</span>
+<span class="kn">import</span> <span 
class="nn">javax.jms.MessageProducer</span><span class="o">;</span>
+<span class="kn">import</span> <span class="nn">javax.jms.Session</span><span 
class="o">;</span>
+<span class="kn">import</span> <span 
class="nn">javax.jms.TextMessage</span><span class="o">;</span>
+<span class="kn">import</span> <span 
class="nn">javax.naming.Context</span><span class="o">;</span>
+<span class="kn">import</span> <span 
class="nn">javax.naming.InitialContext</span><span class="o">;</span>
+
+
+<span class="kd">public</span> <span class="kd">class</span> <span 
class="nc">Hello</span> 
+<span class="o">{</span>
+
+    <span class="kd">public</span> <span class="nf">Hello</span><span 
class="o">()</span> 
+    <span class="o">{</span>
+    <span class="o">}</span>
+
+    <span class="kd">public</span> <span class="kd">static</span> <span 
class="kt">void</span> <span class="nf">main</span><span 
class="o">(</span><span class="n">String</span><span class="o">[]</span> <span 
class="n">args</span><span class="o">)</span>
+    <span class="o">{</span>
+        <span class="n">Hello</span> <span class="n">hello</span> <span 
class="o">=</span> <span class="k">new</span> <span class="n">Hello</span><span 
class="o">();</span>
+        <span class="n">hello</span><span class="o">.</span><span 
class="na">runTest</span><span class="o">();</span>
+    <span class="o">}</span>
+
+    <span class="kd">private</span> <span class="kt">void</span> <span 
class="nf">runTest</span><span class="o">()</span> 
+    <span class="o">{</span>
+        <span class="k">try</span> <span class="o">(</span><span 
class="n">InputStream</span> <span class="n">resourceAsStream</span> <span 
class="o">=</span> <span class="k">this</span><span class="o">.</span><span 
class="na">getClass</span><span class="o">().</span><span 
class="na">getResourceAsStream</span><span class="o">(</span><span 
class="s">&quot;hello.properties&quot;</span><span class="o">))</span>
+        <span class="o">{</span>
+            <span class="n">Properties</span> <span 
class="n">properties</span> <span class="o">=</span> <span class="k">new</span> 
<span class="n">Properties</span><span class="o">();</span>
+            <span class="n">properties</span><span class="o">.</span><span 
class="na">load</span><span class="o">(</span><span 
class="n">resourceAsStream</span><span class="o">);</span>
+            <span class="n">Context</span> <span class="n">context</span> 
<span class="o">=</span> <span class="k">new</span> <span 
class="n">InitialContext</span><span class="o">(</span><span 
class="n">properties</span><span class="o">);</span>
+
+            <span class="n">ConnectionFactory</span> <span 
class="n">connectionFactory</span> <span class="o">=</span> <span 
class="o">(</span><span class="n">ConnectionFactory</span><span 
class="o">)</span> <span class="n">context</span><span class="o">.</span><span 
class="na">lookup</span><span class="o">(</span><span 
class="s">&quot;qpidConnectionfactory&quot;</span><span class="o">);</span>
+            <span class="n">Connection</span> <span 
class="n">connection</span> <span class="o">=</span> <span 
class="n">connectionFactory</span><span class="o">.</span><span 
class="na">createConnection</span><span class="o">();</span>
+            <span class="n">connection</span><span class="o">.</span><span 
class="na">start</span><span class="o">();</span>
+
+            <span class="n">Session</span> <span class="n">session</span> 
<span class="o">=</span> <span class="n">connection</span><span 
class="o">.</span><span class="na">createSession</span><span 
class="o">(</span><span class="kc">false</span><span class="o">,</span> <span 
class="n">Session</span><span class="o">.</span><span 
class="na">AUTO_ACKNOWLEDGE</span><span class="o">);</span>
+            <span class="n">Destination</span> <span 
class="n">destination</span> <span class="o">=</span> <span 
class="o">(</span><span class="n">Destination</span><span class="o">)</span> 
<span class="n">context</span><span class="o">.</span><span 
class="na">lookup</span><span class="o">(</span><span 
class="s">&quot;topicExchange&quot;</span><span class="o">);</span>
+
+            <span class="n">MessageProducer</span> <span 
class="n">messageProducer</span> <span class="o">=</span> <span 
class="n">session</span><span class="o">.</span><span 
class="na">createProducer</span><span class="o">(</span><span 
class="n">destination</span><span class="o">);</span>
+            <span class="n">MessageConsumer</span> <span 
class="n">messageConsumer</span> <span class="o">=</span> <span 
class="n">session</span><span class="o">.</span><span 
class="na">createConsumer</span><span class="o">(</span><span 
class="n">destination</span><span class="o">);</span>
+
+            <span class="n">TextMessage</span> <span class="n">message</span> 
<span class="o">=</span> <span class="n">session</span><span 
class="o">.</span><span class="na">createTextMessage</span><span 
class="o">(</span><span class="s">&quot;Hello world!&quot;</span><span 
class="o">);</span>
+            <span class="n">messageProducer</span><span 
class="o">.</span><span class="na">send</span><span class="o">(</span><span 
class="n">message</span><span class="o">);</span>
+
+            <span class="n">message</span> <span class="o">=</span> <span 
class="o">(</span><span class="n">TextMessage</span><span 
class="o">)</span><span class="n">messageConsumer</span><span 
class="o">.</span><span class="na">receive</span><span class="o">();</span>
+            <span class="n">System</span><span class="o">.</span><span 
class="na">out</span><span class="o">.</span><span 
class="na">println</span><span class="o">(</span><span 
class="n">message</span><span class="o">.</span><span 
class="na">getText</span><span class="o">());</span>
+
+            <span class="n">connection</span><span class="o">.</span><span 
class="na">close</span><span class="o">();</span>
+            <span class="n">context</span><span class="o">.</span><span 
class="na">close</span><span class="o">();</span>
+        <span class="o">}</span>
+        <span class="k">catch</span> <span class="o">(</span><span 
class="n">Exception</span> <span class="n">exp</span><span class="o">)</span> 
+        <span class="o">{</span>
+            <span class="n">exp</span><span class="o">.</span><span 
class="na">printStackTrace</span><span class="o">();</span>
+        <span class="o">}</span>
+    <span class="o">}</span>
+<span class="o">}</span>
+</pre></div>
+
+<p><a href="Hello.java">Download this file</a></p>

Added: 
qpid/site/input/releases/qpid-java-6.0.0/qpid-jms/examples/ListReceiver.java
URL: 
http://svn.apache.org/viewvc/qpid/site/input/releases/qpid-java-6.0.0/qpid-jms/examples/ListReceiver.java?rev=1718924&view=auto
==============================================================================
--- 
qpid/site/input/releases/qpid-java-6.0.0/qpid-jms/examples/ListReceiver.java 
(added)
+++ 
qpid/site/input/releases/qpid-java-6.0.0/qpid-jms/examples/ListReceiver.java 
Wed Dec  9 17:41:59 2015
@@ -0,0 +1,101 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+package org.apache.qpid.example;
+
+import javax.jms.Connection;
+import javax.jms.Destination;
+import javax.jms.MapMessage;
+import javax.jms.StreamMessage;
+import javax.jms.MessageConsumer;
+import javax.jms.Session;
+import javax.jms.MessageEOFException;
+
+import org.apache.qpid.client.AMQAnyDestination;
+import org.apache.qpid.client.AMQConnection;
+
+import org.apache.qpid.jms.ListMessage;
+
+import java.util.Enumeration;
+import java.util.Iterator;
+
+public class ListReceiver {
+
+    public static void main(String[] args) throws Exception
+    {
+       if (args.length != 1) {
+               System.out.println("Usage: java 
org.apache.qpid.example.ListReceiver <-l | -m | -s>");
+               System.out.println("where:");
+               System.out.println("\t-l\tAccept ListMessage and print it");
+               System.out.println("\t-m\tAccept ListMessage as a MapMessage");
+               System.out.println("\t-s\tAccept ListMessage as a 
StreamMessage");
+               return;
+       }
+
+        Connection connection =
+            new 
AMQConnection("amqp://guest:guest@test/?brokerlist='tcp://localhost:5672'");
+
+        connection.start();
+
+        Session session = connection.createSession(false, 
Session.AUTO_ACKNOWLEDGE);
+        Destination queue = new AMQAnyDestination("ADDR:message_queue; 
{create: always}");
+        MessageConsumer consumer = session.createConsumer(queue);
+
+       if (args[0].equals("-l")) {
+               System.out.println("Receiving as ListMessage");
+               ListMessage m = (ListMessage)consumer.receive();
+               System.out.println(m);
+               
System.out.println("==========================================");
+               System.out.println("Printing list contents:");
+               Iterator i = m.iterator();
+               while(i.hasNext())
+                       System.out.println(i.next());
+       }
+       else if (args[0].equals("-m")) {
+               System.out.println("Receiving as MapMessage");
+               MapMessage m = (MapMessage)consumer.receive();
+               System.out.println(m);
+               
System.out.println("==========================================");
+               System.out.println("Printing map contents:");
+               Enumeration keys = m.getMapNames();
+               while(keys.hasMoreElements()) {
+                       String key = (String)keys.nextElement();
+                       System.out.println(key + " => " + m.getObject(key));
+               }
+       }
+       else if (args[0].equals("-s")) {
+               System.out.println("Receiving as StreamMessage");
+               StreamMessage m = (StreamMessage)consumer.receive();
+               System.out.println(m);
+               
System.out.println("==========================================");
+               System.out.println("Printing stream contents:");
+               try {
+                       while(true)
+                               System.out.println(m.readObject());
+               }
+               catch (MessageEOFException e) {
+                       // DONE
+               }
+       }
+
+        connection.close();
+    }
+}

Added: 
qpid/site/input/releases/qpid-java-6.0.0/qpid-jms/examples/ListReceiver.java.html.in
URL: 
http://svn.apache.org/viewvc/qpid/site/input/releases/qpid-java-6.0.0/qpid-jms/examples/ListReceiver.java.html.in?rev=1718924&view=auto
==============================================================================
--- 
qpid/site/input/releases/qpid-java-6.0.0/qpid-jms/examples/ListReceiver.java.html.in
 (added)
+++ 
qpid/site/input/releases/qpid-java-6.0.0/qpid-jms/examples/ListReceiver.java.html.in
 Wed Dec  9 17:41:59 2015
@@ -0,0 +1,85 @@
+
+<h1>ListReceiver.java</h1>
+<div class="highlight"><pre><span class="kn">package</span> <span 
class="nn">org.apache.qpid.example</span><span class="o">;</span>
+
+<span class="kn">import</span> <span 
class="nn">javax.jms.Connection</span><span class="o">;</span>
+<span class="kn">import</span> <span 
class="nn">javax.jms.Destination</span><span class="o">;</span>
+<span class="kn">import</span> <span 
class="nn">javax.jms.MapMessage</span><span class="o">;</span>
+<span class="kn">import</span> <span 
class="nn">javax.jms.StreamMessage</span><span class="o">;</span>
+<span class="kn">import</span> <span 
class="nn">javax.jms.MessageConsumer</span><span class="o">;</span>
+<span class="kn">import</span> <span class="nn">javax.jms.Session</span><span 
class="o">;</span>
+<span class="kn">import</span> <span 
class="nn">javax.jms.MessageEOFException</span><span class="o">;</span>
+
+<span class="kn">import</span> <span 
class="nn">org.apache.qpid.client.AMQAnyDestination</span><span 
class="o">;</span>
+<span class="kn">import</span> <span 
class="nn">org.apache.qpid.client.AMQConnection</span><span class="o">;</span>
+
+<span class="kn">import</span> <span 
class="nn">org.apache.qpid.jms.ListMessage</span><span class="o">;</span>
+
+<span class="kn">import</span> <span 
class="nn">java.util.Enumeration</span><span class="o">;</span>
+<span class="kn">import</span> <span class="nn">java.util.Iterator</span><span 
class="o">;</span>
+
+<span class="kd">public</span> <span class="kd">class</span> <span 
class="nc">ListReceiver</span> <span class="o">{</span>
+
+    <span class="kd">public</span> <span class="kd">static</span> <span 
class="kt">void</span> <span class="nf">main</span><span 
class="o">(</span><span class="n">String</span><span class="o">[]</span> <span 
class="n">args</span><span class="o">)</span> <span class="kd">throws</span> 
<span class="n">Exception</span>
+    <span class="o">{</span>
+       <span class="k">if</span> <span class="o">(</span><span 
class="n">args</span><span class="o">.</span><span class="na">length</span> 
<span class="o">!=</span> <span class="mi">1</span><span class="o">)</span> 
<span class="o">{</span>
+               <span class="n">System</span><span class="o">.</span><span 
class="na">out</span><span class="o">.</span><span 
class="na">println</span><span class="o">(</span><span class="s">&quot;Usage: 
java org.apache.qpid.example.ListReceiver &lt;-l | -m | 
-s&gt;&quot;</span><span class="o">);</span>
+               <span class="n">System</span><span class="o">.</span><span 
class="na">out</span><span class="o">.</span><span 
class="na">println</span><span class="o">(</span><span 
class="s">&quot;where:&quot;</span><span class="o">);</span>
+               <span class="n">System</span><span class="o">.</span><span 
class="na">out</span><span class="o">.</span><span 
class="na">println</span><span class="o">(</span><span 
class="s">&quot;\t-l\tAccept ListMessage and print it&quot;</span><span 
class="o">);</span>
+               <span class="n">System</span><span class="o">.</span><span 
class="na">out</span><span class="o">.</span><span 
class="na">println</span><span class="o">(</span><span 
class="s">&quot;\t-m\tAccept ListMessage as a MapMessage&quot;</span><span 
class="o">);</span>
+               <span class="n">System</span><span class="o">.</span><span 
class="na">out</span><span class="o">.</span><span 
class="na">println</span><span class="o">(</span><span 
class="s">&quot;\t-s\tAccept ListMessage as a StreamMessage&quot;</span><span 
class="o">);</span>
+               <span class="k">return</span><span class="o">;</span>
+       <span class="o">}</span>
+
+        <span class="n">Connection</span> <span class="n">connection</span> 
<span class="o">=</span>
+            <span class="k">new</span> <span 
class="n">AMQConnection</span><span class="o">(</span><span 
class="s">&quot;amqp://guest:guest@test/?brokerlist=&#39;tcp://localhost:5672&#39;&quot;</span><span
 class="o">);</span>
+
+        <span class="n">connection</span><span class="o">.</span><span 
class="na">start</span><span class="o">();</span>
+
+        <span class="n">Session</span> <span class="n">session</span> <span 
class="o">=</span> <span class="n">connection</span><span 
class="o">.</span><span class="na">createSession</span><span 
class="o">(</span><span class="kc">false</span><span class="o">,</span> <span 
class="n">Session</span><span class="o">.</span><span 
class="na">AUTO_ACKNOWLEDGE</span><span class="o">);</span>
+        <span class="n">Destination</span> <span class="n">queue</span> <span 
class="o">=</span> <span class="k">new</span> <span 
class="n">AMQAnyDestination</span><span class="o">(</span><span 
class="s">&quot;ADDR:message_queue; {create: always}&quot;</span><span 
class="o">);</span>
+        <span class="n">MessageConsumer</span> <span class="n">consumer</span> 
<span class="o">=</span> <span class="n">session</span><span 
class="o">.</span><span class="na">createConsumer</span><span 
class="o">(</span><span class="n">queue</span><span class="o">);</span>
+
+       <span class="k">if</span> <span class="o">(</span><span 
class="n">args</span><span class="o">[</span><span class="mi">0</span><span 
class="o">].</span><span class="na">equals</span><span class="o">(</span><span 
class="s">&quot;-l&quot;</span><span class="o">))</span> <span 
class="o">{</span>
+               <span class="n">System</span><span class="o">.</span><span 
class="na">out</span><span class="o">.</span><span 
class="na">println</span><span class="o">(</span><span 
class="s">&quot;Receiving as ListMessage&quot;</span><span class="o">);</span>
+               <span class="n">ListMessage</span> <span class="n">m</span> 
<span class="o">=</span> <span class="o">(</span><span 
class="n">ListMessage</span><span class="o">)</span><span 
class="n">consumer</span><span class="o">.</span><span 
class="na">receive</span><span class="o">();</span>
+               <span class="n">System</span><span class="o">.</span><span 
class="na">out</span><span class="o">.</span><span 
class="na">println</span><span class="o">(</span><span class="n">m</span><span 
class="o">);</span>
+               <span class="n">System</span><span class="o">.</span><span 
class="na">out</span><span class="o">.</span><span 
class="na">println</span><span class="o">(</span><span 
class="s">&quot;==========================================&quot;</span><span 
class="o">);</span>
+               <span class="n">System</span><span class="o">.</span><span 
class="na">out</span><span class="o">.</span><span 
class="na">println</span><span class="o">(</span><span class="s">&quot;Printing 
list contents:&quot;</span><span class="o">);</span>
+               <span class="n">Iterator</span> <span class="n">i</span> <span 
class="o">=</span> <span class="n">m</span><span class="o">.</span><span 
class="na">iterator</span><span class="o">();</span>
+               <span class="k">while</span><span class="o">(</span><span 
class="n">i</span><span class="o">.</span><span class="na">hasNext</span><span 
class="o">())</span>
+                       <span class="n">System</span><span 
class="o">.</span><span class="na">out</span><span class="o">.</span><span 
class="na">println</span><span class="o">(</span><span class="n">i</span><span 
class="o">.</span><span class="na">next</span><span class="o">());</span>
+       <span class="o">}</span>
+       <span class="k">else</span> <span class="k">if</span> <span 
class="o">(</span><span class="n">args</span><span class="o">[</span><span 
class="mi">0</span><span class="o">].</span><span class="na">equals</span><span 
class="o">(</span><span class="s">&quot;-m&quot;</span><span 
class="o">))</span> <span class="o">{</span>
+               <span class="n">System</span><span class="o">.</span><span 
class="na">out</span><span class="o">.</span><span 
class="na">println</span><span class="o">(</span><span 
class="s">&quot;Receiving as MapMessage&quot;</span><span class="o">);</span>
+               <span class="n">MapMessage</span> <span class="n">m</span> 
<span class="o">=</span> <span class="o">(</span><span 
class="n">MapMessage</span><span class="o">)</span><span 
class="n">consumer</span><span class="o">.</span><span 
class="na">receive</span><span class="o">();</span>
+               <span class="n">System</span><span class="o">.</span><span 
class="na">out</span><span class="o">.</span><span 
class="na">println</span><span class="o">(</span><span class="n">m</span><span 
class="o">);</span>
+               <span class="n">System</span><span class="o">.</span><span 
class="na">out</span><span class="o">.</span><span 
class="na">println</span><span class="o">(</span><span 
class="s">&quot;==========================================&quot;</span><span 
class="o">);</span>
+               <span class="n">System</span><span class="o">.</span><span 
class="na">out</span><span class="o">.</span><span 
class="na">println</span><span class="o">(</span><span class="s">&quot;Printing 
map contents:&quot;</span><span class="o">);</span>
+               <span class="n">Enumeration</span> <span class="n">keys</span> 
<span class="o">=</span> <span class="n">m</span><span class="o">.</span><span 
class="na">getMapNames</span><span class="o">();</span>
+               <span class="k">while</span><span class="o">(</span><span 
class="n">keys</span><span class="o">.</span><span 
class="na">hasMoreElements</span><span class="o">())</span> <span 
class="o">{</span>
+                       <span class="n">String</span> <span 
class="n">key</span> <span class="o">=</span> <span class="o">(</span><span 
class="n">String</span><span class="o">)</span><span class="n">keys</span><span 
class="o">.</span><span class="na">nextElement</span><span class="o">();</span>
+                       <span class="n">System</span><span 
class="o">.</span><span class="na">out</span><span class="o">.</span><span 
class="na">println</span><span class="o">(</span><span class="n">key</span> 
<span class="o">+</span> <span class="s">&quot; =&gt; &quot;</span> <span 
class="o">+</span> <span class="n">m</span><span class="o">.</span><span 
class="na">getObject</span><span class="o">(</span><span 
class="n">key</span><span class="o">));</span>
+               <span class="o">}</span>
+       <span class="o">}</span>
+       <span class="k">else</span> <span class="k">if</span> <span 
class="o">(</span><span class="n">args</span><span class="o">[</span><span 
class="mi">0</span><span class="o">].</span><span class="na">equals</span><span 
class="o">(</span><span class="s">&quot;-s&quot;</span><span 
class="o">))</span> <span class="o">{</span>
+               <span class="n">System</span><span class="o">.</span><span 
class="na">out</span><span class="o">.</span><span 
class="na">println</span><span class="o">(</span><span 
class="s">&quot;Receiving as StreamMessage&quot;</span><span class="o">);</span>
+               <span class="n">StreamMessage</span> <span class="n">m</span> 
<span class="o">=</span> <span class="o">(</span><span 
class="n">StreamMessage</span><span class="o">)</span><span 
class="n">consumer</span><span class="o">.</span><span 
class="na">receive</span><span class="o">();</span>
+               <span class="n">System</span><span class="o">.</span><span 
class="na">out</span><span class="o">.</span><span 
class="na">println</span><span class="o">(</span><span class="n">m</span><span 
class="o">);</span>
+               <span class="n">System</span><span class="o">.</span><span 
class="na">out</span><span class="o">.</span><span 
class="na">println</span><span class="o">(</span><span 
class="s">&quot;==========================================&quot;</span><span 
class="o">);</span>
+               <span class="n">System</span><span class="o">.</span><span 
class="na">out</span><span class="o">.</span><span 
class="na">println</span><span class="o">(</span><span class="s">&quot;Printing 
stream contents:&quot;</span><span class="o">);</span>
+               <span class="k">try</span> <span class="o">{</span>
+                       <span class="k">while</span><span 
class="o">(</span><span class="kc">true</span><span class="o">)</span>
+                               <span class="n">System</span><span 
class="o">.</span><span class="na">out</span><span class="o">.</span><span 
class="na">println</span><span class="o">(</span><span class="n">m</span><span 
class="o">.</span><span class="na">readObject</span><span class="o">());</span>
+               <span class="o">}</span>
+               <span class="k">catch</span> <span class="o">(</span><span 
class="n">MessageEOFException</span> <span class="n">e</span><span 
class="o">)</span> <span class="o">{</span>
+                       <span class="c1">// DONE</span>
+               <span class="o">}</span>
+       <span class="o">}</span>
+
+        <span class="n">connection</span><span class="o">.</span><span 
class="na">close</span><span class="o">();</span>
+    <span class="o">}</span>
+<span class="o">}</span>
+</pre></div>
+
+<p><a href="ListReceiver.java">Download this file</a></p>

Added: 
qpid/site/input/releases/qpid-java-6.0.0/qpid-jms/examples/ListSender.java
URL: 
http://svn.apache.org/viewvc/qpid/site/input/releases/qpid-java-6.0.0/qpid-jms/examples/ListSender.java?rev=1718924&view=auto
==============================================================================
--- qpid/site/input/releases/qpid-java-6.0.0/qpid-jms/examples/ListSender.java 
(added)
+++ qpid/site/input/releases/qpid-java-6.0.0/qpid-jms/examples/ListSender.java 
Wed Dec  9 17:41:59 2015
@@ -0,0 +1,86 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+package org.apache.qpid.example;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.jms.Connection;
+import javax.jms.Destination;
+import javax.jms.Message;
+import javax.jms.MessageProducer;
+import javax.jms.Session;
+
+import org.apache.qpid.client.AMQAnyDestination;
+import org.apache.qpid.client.AMQConnection;
+
+import org.apache.qpid.jms.ListMessage;
+
+
+public class ListSender {
+
+    public static void main(String[] args) throws Exception
+    {
+        Connection connection =
+            new 
AMQConnection("amqp://guest:guest@test/?brokerlist='tcp://localhost:5672'");
+
+        Session session = connection.createSession(false, 
Session.AUTO_ACKNOWLEDGE);
+        Destination queue = new AMQAnyDestination("ADDR:message_queue; 
{create: always}");
+        MessageProducer producer = session.createProducer(queue);
+
+        ListMessage m = 
((org.apache.qpid.jms.Session)session).createListMessage();
+        m.setIntProperty("Id", 987654321);
+        m.setStringProperty("name", "Widget");
+        m.setDoubleProperty("price", 0.99);
+
+        List<String> colors = new ArrayList<String>();
+        colors.add("red");
+        colors.add("green");
+        colors.add("white");
+        m.add(colors);
+
+        Map<String,Double> dimensions = new HashMap<String,Double>();
+        dimensions.put("length",10.2);
+        dimensions.put("width",5.1);
+        dimensions.put("depth",2.0);
+        m.add(dimensions);
+
+        List<List<Integer>> parts = new ArrayList<List<Integer>>();
+        parts.add(Arrays.asList(new Integer[] {1,2,5}));
+        parts.add(Arrays.asList(new Integer[] {8,2,5}));
+        m.add(parts);
+
+        Map<String,Object> specs = new HashMap<String,Object>();
+        specs.put("colours", colors);
+        specs.put("dimensions", dimensions);
+        specs.put("parts", parts);
+        m.add(specs);
+
+        producer.send((Message)m);
+       System.out.println("Sent: " + m);
+        connection.close();
+    }
+
+}




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to