Author: gertv
Date: Sun Mar 23 22:46:25 2014
New Revision: 1580649

URL: http://svn.apache.org/r1580649
Log:
SM-2269: Document workaround in the quickstart guide

Modified:
    servicemix/documentation/trunk/src/main/webapp/quickstart/activemq.conf

Modified: 
servicemix/documentation/trunk/src/main/webapp/quickstart/activemq.conf
URL: 
http://svn.apache.org/viewvc/servicemix/documentation/trunk/src/main/webapp/quickstart/activemq.conf?rev=1580649&r1=1580648&r2=1580649&view=diff
==============================================================================
--- servicemix/documentation/trunk/src/main/webapp/quickstart/activemq.conf 
(original)
+++ servicemix/documentation/trunk/src/main/webapp/quickstart/activemq.conf Sun 
Mar 23 22:46:25 2014
@@ -6,6 +6,14 @@ h2. Our scenario
 
 In this scenario, we also want to move files between directories.  Instead of 
logging the move directly, we are going to send an event JMS message onto a 
queue.  Afterwards, we will create a second Camel route to receive the events 
and log them.
 
+h2. Before we start
+
+First, we have to install an optional feature to allow Camel send and receive 
JMS messages.  We'll talk about optional features a bit more in the next page 
of this quickstart guide, but for now, just run the following command in the 
console.
+
+{pygmentize:lang=text}
+karaf@root> features:install camel-jms
+{pygmentize}
+
 h2. Moving files and sending event messages
 The first Blueprint XML file we'll create contains a Camel route that moves 
the files from {{activemq/input}} to the {{activemq/output}} directory.  
Afterwards, it will generate an event message and send that to an ActiveMQ 
queue called {{events}}.
 
@@ -31,6 +39,14 @@ The first Blueprint XML file we'll creat
         <to uri="activemq://events" />
       </route>
     </camelContext>
+
+    <reference id="connectionFactory" interface="javax.jms.ConnectionFactory" 
/>
+    <bean id="activemq" 
class="org.apache.activemq.camel.component.ActiveMQComponent">
+            <property name="brokerURL" value="tcp://localhost:61616"/>
+       <property name="userName" value="smx"/>
+       <property name="password" value="smx"/>
+    </bean>
+
 </blueprint>
 {pygmentize}
 
@@ -54,6 +70,14 @@ After deploying the first XML file, you'
         <to uri="log:events"/>
       </route>
     </camelContext>
+
+    <reference id="connectionFactory" interface="javax.jms.ConnectionFactory" 
/>
+    <bean id="activemq" 
class="org.apache.activemq.camel.component.ActiveMQComponent">
+            <property name="brokerURL" value="tcp://localhost:61616"/>
+       <property name="userName" value="smx"/>
+       <property name="password" value="smx"/>
+    </bean>
+
 </blueprint>
 {pygmentize}
 


Reply via email to