activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r811364 - /activemq/trunk/assembly/src/release/webapps/camel/WEB-INF/applicationContext.xml
Date Fri, 04 Sep 2009 12:30:47 GMT
Author: dejanb
Date: Fri Sep  4 12:30:47 2009
New Revision: 811364

URL: http://svn.apache.org/viewvc?rev=811364&view=rev
Log:
make camel webapp behave nicely in secured broker environment

Modified:
    activemq/trunk/assembly/src/release/webapps/camel/WEB-INF/applicationContext.xml

Modified: activemq/trunk/assembly/src/release/webapps/camel/WEB-INF/applicationContext.xml
URL: http://svn.apache.org/viewvc/activemq/trunk/assembly/src/release/webapps/camel/WEB-INF/applicationContext.xml?rev=811364&r1=811363&r2=811364&view=diff
==============================================================================
--- activemq/trunk/assembly/src/release/webapps/camel/WEB-INF/applicationContext.xml (original)
+++ activemq/trunk/assembly/src/release/webapps/camel/WEB-INF/applicationContext.xml Fri Sep
 4 12:30:47 2009
@@ -25,23 +25,38 @@
        http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
     ">
 
+    <bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
+        <property name="locations">
+                <value>file:${activemq.base}/conf/credentials.properties</value>
+        </property>  
+    </bean>
 
-  <camelContext xmlns="http://camel.apache.org/schema/spring">
-    <route>
-        <from uri="activemq:example.A"/>
-        <to uri="activemq:example.B"/>
-    </route>
-  </camelContext>
-
-  <!-- configure the camel activemq component to use the current broker -->
-  <bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent" >
-    <property name="exposeAllQueues" value="true"/>
-      <property name="connectionFactory">
-        <bean class="org.apache.activemq.ActiveMQConnectionFactory">
-          <property name="brokerURL" value="vm://localhost?create=false&amp;waitForStart=10000"
/>
-          <property name="userName" value="${activemq.username}"/>
-          <property name="password" value="${activemq.password}"/>
-        </bean>
-      </property>
-  </bean>
+    <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
+
+        <!-- You can use a <package> element for each root package to search for
Java routes -->
+        <package>org.foo.bar</package>
+
+        <!-- You can use Spring XML syntax to define the routes here using the <route>
element -->
+        <route>
+            <from uri="activemq:example.A"/>
+            <to uri="activemq:example.B"/>
+        </route>
+    </camelContext>
+
+    <!--
+       Lets configure some Camel endpoints
+    
+       http://activemq.apache.org/camel/components.html
+    -->
+
+    <!-- configure the camel activemq component to use the current broker -->
+    <bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent"
>
+        <property name="connectionFactory">
+          <bean class="org.apache.activemq.ActiveMQConnectionFactory">
+            <property name="brokerURL" value="vm://localhost?create=false&amp;waitForStart=10000"
/>
+            <property name="userName" value="${activemq.username}"/>
+            <property name="password" value="${activemq.password}"/>
+          </bean>
+        </property>
+    </bean>
 </beans>



Mime
View raw message