Author: chirino
Date: Wed Aug 23 04:20:45 2006
New Revision: 434009
URL: http://svn.apache.org/viewvc?rev=434009&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=434009&r1=434008&r2=434009&view=diff
==============================================================================
--- incubator/activemq/site/jms-streams.html (original)
+++ incubator/activemq/site/jms-streams.html Wed Aug 23 04:20:45 2006
@@ -291,6 +291,8 @@
<DIV class="code"><DIV class="codeContent">
<PRE class="code-java">ActiveMQConnection connection = ...;
+Destination destination = <SPAN class="code-keyword">new</SPAN>
ActiveMQQueue(<SPAN class="code-quote">"FOO.BAR"</SPAN>);
+
OutputStream out = connection.createOutputStream(destination);
<SPAN class="code-comment">// write the file to out
@@ -302,7 +304,9 @@
<DIV class="code"><DIV class="codeContent">
<PRE class="code-java">ActiveMQConnection connection = ...;
-InputStream in = connection.createInputStream()
+Destination destination = <SPAN class="code-keyword">new</SPAN>
ActiveMQQueue(<SPAN class="code-quote">"FOO.BAR"</SPAN>);
+
+InputStream in = connection.createInputStream(destination)
<SPAN class="code-comment">// read the stream...
</SPAN>in.close();</PRE>
@@ -336,7 +340,7 @@
<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 23, 2006
- (<A
href="http://goopen.org/confluence/pages/diffpages.action?pageId=123&originalId=9760">view
change</A>)
+ (<A
href="http://goopen.org/confluence/pages/diffpages.action?pageId=123&originalId=9761">view
change</A>)
(<A
href="http://goopen.org/confluence/pages/editpage.action?pageId=123">edit
page</A>)
</DIV>