camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r674018 - in /activemq/camel/trunk/components/camel-spring/src/test: java/org/apache/camel/spring/interceptor/TransactionalClientDataSourceTest.java resources/org/apache/camel/spring/interceptor/transactionalClientDataSource.xml
Date Fri, 04 Jul 2008 11:45:39 GMT
Author: davsclaus
Date: Fri Jul  4 04:45:38 2008
New Revision: 674018

URL: http://svn.apache.org/viewvc?rev=674018&view=rev
Log:
CAMEL-609: Transactional Client improve wiki documentation

Modified:
    activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/interceptor/TransactionalClientDataSourceTest.java
    activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/interceptor/transactionalClientDataSource.xml

Modified: activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/interceptor/TransactionalClientDataSourceTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/interceptor/TransactionalClientDataSourceTest.java?rev=674018&r1=674017&r2=674018&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/interceptor/TransactionalClientDataSourceTest.java
(original)
+++ activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/interceptor/TransactionalClientDataSourceTest.java
Fri Jul  4 04:45:38 2008
@@ -21,6 +21,7 @@
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.spring.SpringTestSupport;
 import org.apache.camel.spring.spi.SpringTransactionPolicy;
+import org.apache.camel.spi.Policy;
 import org.springframework.context.support.ClassPathXmlApplicationContext;
 import org.springframework.jdbc.core.JdbcTemplate;
 import org.springframework.transaction.support.TransactionTemplate;
@@ -87,15 +88,15 @@
                 // setup the transaction policy
                 TransactionTemplate tt = context.getRegistry()
                     .lookup("PROPAGATION_REQUIRED", TransactionTemplate.class);
-                SpringTransactionPolicy required = new SpringTransactionPolicy(tt);
+                Policy required = new SpringTransactionPolicy(tt);
+                // END SNIPPET: e1
 
+                // START SNIPPET: e2
                 // set the required policy for this route
                 from("direct:okay").policy(required).
                     setBody(constant("Tiger in Action")).beanRef("bookService").
                     setBody(constant("Elephant in Action")).beanRef("bookService");
-                // END SNIPPET: e1
 
-                // START SNIPPET: e2
                 // set the required policy for this route
                 from("direct:fail").policy(required).
                     setBody(constant("Tiger in Action")).beanRef("bookService").

Modified: activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/interceptor/transactionalClientDataSource.xml
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/interceptor/transactionalClientDataSource.xml?rev=674018&r1=674017&r2=674018&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/interceptor/transactionalClientDataSource.xml
(original)
+++ activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/interceptor/transactionalClientDataSource.xml
Fri Jul  4 04:45:38 2008
@@ -21,6 +21,7 @@
          http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
          http://activemq.apache.org/camel/schema/spring http://activemq.apache.org/camel/schema/spring/camel-spring.xsd">
 
+    <!-- START SNIPPET: e1 -->
     <!-- datasource to the database -->
     <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
         <property name="driverClassName" value="org.hsqldb.jdbcDriver"/>
@@ -43,5 +44,6 @@
     <bean id="bookService" class="org.apache.camel.spring.interceptor.BookService">
         <property name="dataSource" ref="dataSource"/>
     </bean>
+    <!-- END SNIPPET: e1 -->
 
 </beans>



Mime
View raw message