Author: chirino
Date: Tue Aug 22 06:50:48 2006
New Revision: 433631

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

Modified:
    incubator/activemq/site/connectivity.html
    incubator/activemq/site/jndi-support.html

Modified: incubator/activemq/site/connectivity.html
URL: 
http://svn.apache.org/viewvc/incubator/activemq/site/connectivity.html?rev=433631&r1=433630&r2=433631&view=diff
==============================================================================
--- incubator/activemq/site/connectivity.html (original)
+++ incubator/activemq/site/connectivity.html Tue Aug 22 06:50:48 2006
@@ -287,16 +287,16 @@
               <a href="javascript:hideChildren()">Hide Children</a></span>
           </div>
           <div class="greybox" id="children" style="display: none;">
-                                      <a 
href="http://goopen.org/confluence/display/ACTIVEMQ/Sun+JNDI"; title="Sun 
JNDI">Sun JNDI</a>
+                                      <a 
href="http://goopen.org/confluence/display/ACTIVEMQ/Spring+Support"; 
title="Spring Support">Spring Support</a>
               <span class="smalltext">(ActiveMQ)</span>
               <br>
-                          <a 
href="http://goopen.org/confluence/display/ACTIVEMQ/Cross+Language+Clients"; 
title="Cross Language Clients">Cross Language Clients</a>
+                          <a 
href="http://goopen.org/confluence/display/ACTIVEMQ/Sun+JNDI"; title="Sun 
JNDI">Sun JNDI</a>
               <span class="smalltext">(ActiveMQ)</span>
               <br>
-                          <a 
href="http://goopen.org/confluence/display/ACTIVEMQ/C+Integration"; title="C 
Integration">C Integration</a>
+                          <a 
href="http://goopen.org/confluence/display/ACTIVEMQ/Cross+Language+Clients"; 
title="Cross Language Clients">Cross Language Clients</a>
               <span class="smalltext">(ActiveMQ)</span>
               <br>
-                          <a 
href="http://goopen.org/confluence/display/ACTIVEMQ/Spring+Support"; 
title="Spring Support">Spring Support</a>
+                          <a 
href="http://goopen.org/confluence/display/ACTIVEMQ/C+Integration"; title="C 
Integration">C Integration</a>
               <span class="smalltext">(ActiveMQ)</span>
               <br>
                           <a 
href="http://goopen.org/confluence/display/ACTIVEMQ/JMS+to+JMS+Bridge"; 
title="JMS to JMS Bridge">JMS to JMS Bridge</a>

Modified: incubator/activemq/site/jndi-support.html
URL: 
http://svn.apache.org/viewvc/incubator/activemq/site/jndi-support.html?rev=433631&r1=433630&r2=433631&view=diff
==============================================================================
--- incubator/activemq/site/jndi-support.html (original)
+++ incubator/activemq/site/jndi-support.html Tue Aug 22 06:50:48 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>
@@ -302,7 +302,6 @@
 # topic.[jndiName] = [physicalName]
 topic.MyTopic = example.MyTopic</PRE>
 </DIV></DIV>
-
 <P>You can edit the jndi.properties file to configure the 
ActiveMQConnectionFactory&apos;s properties such as brokerURL and whether or 
not there should be an embedded broker etc. See <A 
href="how-do-i-embed-a-broker-inside-a-connection.html" title="How do I embed a 
Broker inside a Connection">how to embed a broker in a connection</A> for more 
details.</P>
 
 <H3><A name="JNDISupport-ActiveMQJNDITutorial"></A>ActiveMQ JNDI Tutorial</H3>
@@ -343,7 +342,6 @@
 <SPAN class="code-comment">// create a <SPAN class="code-keyword">new</SPAN> 
subscriber to receive messages
 </SPAN>javax.jms.TopicSubscriber subscriber = 
session.createSubscriber(mytopic);</PRE>
 </DIV></DIV>
-
 <P>Notice the name of the topic in the sample is &quot;MyTopic&quot;. ActiveMQ 
will read the jndi.properties files and creates the topics and queues in a lazy 
fashion. The prefix topic and queue is stripped, so the jndi name begins after 
the prefix.</P>
 
 <P>Once you have the jndi.properties edited and ready, it needs to be 
accessible to your application. The easiest way is to add jndi.properties to a 
jar file. When &quot;new InitialContext()&quot; is called, it will scan the 
resources and find the file. If you get 
&quot;javax.naming.NamingException&quot;, it usually means the jndi.properties 
file is not accessible.</P>
@@ -354,15 +352,14 @@
 <TH class="confluenceTh"> Example recommended by specification </TH>
 </TR>
 <TR>
-<TD class="confluenceTd"><DIV class="code"><DIV class="codeContent">
+<TD class="confluenceTd"> <DIV class="code"><DIV class="codeContent">
 <PRE class="code-java">Properties props = <SPAN 
class="code-keyword">new</SPAN> Properties();
-props.setProperty(Context.INITIAL_CONTEXT_FACTORY,<SPAN 
class="code-quote">&quot;org.activemq.jndi.ActiveMQInitialContextFactory&quot;</SPAN>);
+props.setProperty(Context.INITIAL_CONTEXT_FACTORY,<SPAN 
class="code-quote">&quot;org.apache.activemq.jndi.ActiveMQInitialContextFactory&quot;</SPAN>);
 props.setProperty(Context.PROVIDER_URL,<SPAN 
class="code-quote">&quot;tcp:<SPAN 
class="code-comment">//hostname:61616&quot;</SPAN>);
 </SPAN>javax.naming.Context ctx = <SPAN class="code-keyword">new</SPAN> 
InitialContext(props);||</PRE>
-</DIV></DIV></TD>
+</DIV></DIV> </TD>
 </TR>
 </TBODY></TABLE>
-
 <P>If ActiveMQ is embedded within an EJB container, you will need to look at 
the containers documentation for the correct jndi values.</P>
 
 <H3><A name="JNDISupport-Dynamicallycreatingdestinations"></A>Dynamically 
creating destinations</H3>
@@ -389,17 +386,13 @@
 <P>It is often useful to use an embedded broker in the same JVM as the JMS 
client. For this see <A href="how-do-i-embed-a-broker-inside-a-connection.html" 
title="How do I embed a Broker inside a Connection">How do I embed a Broker 
inside a Connection</A>.</P>
 
 <P>If you want to use an embedded broker with your JNDI provider you can just 
use the <A href="vm-transport-reference.html" title="VM Transport Reference">VM 
Transport</A> to connect to the broker in your URL. e.g. to create a purely in 
JVM broker use this URI</P>
-
 <DIV class="code"><DIV class="codeContent">
 <PRE class="code-java">vm:<SPAN class="code-comment">//locahost</SPAN></PRE>
 </DIV></DIV>
-
 <P>If you want to customize the broker use something like this</P>
-
 <DIV class="code"><DIV class="codeContent">
 <PRE class="code-java">vm:broker:(tcp:<SPAN 
class="code-comment">//localhost:61616)</SPAN></PRE>
 </DIV></DIV>
-
 <P>More options are available in the <A href="vm-transport-reference.html" 
title="VM Transport Reference">VM Transport Reference</A></P>
 
 <H3><A name="JNDISupport-ExampleJavacode"></A>Example Java code</H3>
@@ -525,9 +518,35 @@
     </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 Jun 16, 2006
-                  &nbsp;(<A 
href="http://goopen.org/confluence/pages/diffpages.action?pageId=167&originalId=8797";>view
 change</A>)
-              
+    last edited by     <A 
href="http://goopen.org/confluence/users/viewuserprofile.action?username=sparky62";>Graeme
 Harker</A> on Aug 22, 2006
+                  &nbsp;(<A 
href="http://goopen.org/confluence/pages/diffpages.action?pageId=167&originalId=9756";>view
 change</A>)
+                      <SPAN id="show" class="inline-control-link"><A href="" 
onclick="showComment(); return false;">show comment</A></SPAN>
+        <SPAN id="hide" class="inline-control-link" style="display:none;"><A 
href="" onclick="hideComment(); return false;">hide comment</A></SPAN>
+          <DIV id="versionComment" class="noteMacro" style="display:none; 
padding: 5px;">
+      <B>Comment:</B>
+      package name wrong in example of properties based setup of initial JNDI 
context <BR>
+      <SPAN class="smalltext"><A 
href="http://goopen.org/confluence/pages/viewpreviouspageversions.action?pageId=167";>View
 page history</A></SPAN>
+  </DIV>
+
+    <SCRIPT>
+      var show = document.getElementById('show');
+      var hide = document.getElementById('hide');
+      var versionComment = document.getElementById('versionComment');
+
+      function showComment(){
+        show.style.display = 'none';
+        hide.style.display = 'inline';
+        versionComment.style.display = 'block';
+      }
+
+      function hideComment(){
+        show.style.display = 'inline';
+        hide.style.display = 'none';
+        versionComment.style.display = 'none';
+      }
+
+    </SCRIPT>
+    
       (<A 
href="http://goopen.org/confluence/pages/editpage.action?pageId=167";>edit 
page</A>)
     </DIV>
 


Reply via email to