Author: chirino
Date: Wed Aug 23 04:11:55 2006
New Revision: 434008

URL: http://svn.apache.org/viewvc?rev=434008&view=rev
Log:
Latest export from confluence

Modified:
    incubator/activemq/site/jms-streams.html

Modified: incubator/activemq/site/jms-streams.html
URL: 
http://svn.apache.org/viewvc/incubator/activemq/site/jms-streams.html?rev=434008&r1=434007&r2=434008&view=diff
==============================================================================
--- incubator/activemq/site/jms-streams.html (original)
+++ incubator/activemq/site/jms-streams.html Wed Aug 23 04:11:55 2006
@@ -185,7 +185,7 @@
        <LI><A href="ajax.html" title="Ajax">Ajax</A></LI>
        <LI><A href="axis-support.html" title="Axis Support">Axis 
Support</A></LI>
        <LI><A href="c-integration.html" title="C Integration">C 
Integration</A></LI>
-       <LI><A href="activemq-cpp-client.html" title="ActiveMQ CPP 
Client">C+&#43; Integration</A></LI>
+       <LI><A href="activemq-c-clients.html" title="ActiveMQ C++ 
Clients">C+&#43; Integration</A></LI>
        <LI><A href="nms.html" title="NMS">C# and .Net Integration</A></LI>
        <LI><A href="cms.html" title="CMS">CMS</A></LI>
        <LI><A href="geronimo.html" title="Geronimo">Geronimo</A></LI>
@@ -292,10 +292,22 @@
 <DIV class="code"><DIV class="codeContent">
 <PRE class="code-java">ActiveMQConnection connection = ...;
 OutputStream out = connection.createOutputStream(destination);
+
 <SPAN class="code-comment">// write the file to out
 </SPAN>out.close();</PRE>
 </DIV></DIV>
 
+<P>Or to consume a large message</P>
+
+
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-java">ActiveMQConnection connection = ...;
+InputStream in = connection.createInputStream()
+
+<SPAN class="code-comment">// read the stream...
+</SPAN>in.close();</PRE>
+</DIV></DIV>
+
 <P>There are overloaded createInputStream/createOutputStream methods which 
support additional paramateres to be passed.</P>
 
 <P>For further reference see the javadoc.</P>
@@ -323,8 +335,8 @@
     </DIV>
     <DIV id="site-footer">
           Added by     <A 
href="http://goopen.org/confluence/users/viewuserprofile.action?username=jstrachan";>James
 Strachan</A>,
-    last edited by     <A 
href="http://goopen.org/confluence/users/viewuserprofile.action?username=jstrachan";>James
 Strachan</A> on Aug 01, 2006
-                  &nbsp;(<A 
href="http://goopen.org/confluence/pages/diffpages.action?pageId=123&originalId=9487";>view
 change</A>)
+    last edited by     <A 
href="http://goopen.org/confluence/users/viewuserprofile.action?username=jstrachan";>James
 Strachan</A> on Aug 23, 2006
+                  &nbsp;(<A 
href="http://goopen.org/confluence/pages/diffpages.action?pageId=123&originalId=9760";>view
 change</A>)
               
       (<A 
href="http://goopen.org/confluence/pages/editpage.action?pageId=123";>edit 
page</A>)
     </DIV>


Reply via email to