You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2006/12/11 09:08:37 UTC

svn commit: r485546 - in /incubator/servicemix/trunk/samples/loan-broker: ./ loan-broker-jms-su/ loan-broker-jms-su/src/ loan-broker-jms-su/src/main/ loan-broker-jms-su/src/main/resources/ loan-broker-lw-su/src/main/resources/ loan-broker-sa/

Author: gnodet
Date: Mon Dec 11 00:08:35 2006
New Revision: 485546

URL: http://svn.apache.org/viewvc?view=rev&rev=485546
Log:
Use servicemix-jms instead of lightweight component

Added:
    incubator/servicemix/trunk/samples/loan-broker/loan-broker-jms-su/
    incubator/servicemix/trunk/samples/loan-broker/loan-broker-jms-su/pom.xml   (with props)
    incubator/servicemix/trunk/samples/loan-broker/loan-broker-jms-su/src/
    incubator/servicemix/trunk/samples/loan-broker/loan-broker-jms-su/src/main/
    incubator/servicemix/trunk/samples/loan-broker/loan-broker-jms-su/src/main/resources/
    incubator/servicemix/trunk/samples/loan-broker/loan-broker-jms-su/src/main/resources/xbean.xml   (with props)
Modified:
    incubator/servicemix/trunk/samples/loan-broker/README.txt
    incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/src/main/resources/servicemix.xml
    incubator/servicemix/trunk/samples/loan-broker/loan-broker-sa/pom.xml
    incubator/servicemix/trunk/samples/loan-broker/pom.xml

Modified: incubator/servicemix/trunk/samples/loan-broker/README.txt
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/loan-broker/README.txt?view=diff&rev=485546&r1=485545&r2=485546
==============================================================================
--- incubator/servicemix/trunk/samples/loan-broker/README.txt (original)
+++ incubator/servicemix/trunk/samples/loan-broker/README.txt Mon Dec 11 00:08:35 2006
@@ -20,8 +20,8 @@
 
 This example is based on the great EIP book 
 (http://www.enterpriseintegrationpatterns.com/ComposedMessagingExample.html).
-It leverages the BPEL component and some lightweight components provided
-by ServiceMix.
+It leverages the BPEL service engine, JMS binding component and some 
+lightweight components provided by ServiceMix.
 
 First start a ServiceMix server (if not already started) by running
   bin/servicemix

Added: incubator/servicemix/trunk/samples/loan-broker/loan-broker-jms-su/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/loan-broker/loan-broker-jms-su/pom.xml?view=auto&rev=485546
==============================================================================
--- incubator/servicemix/trunk/samples/loan-broker/loan-broker-jms-su/pom.xml (added)
+++ incubator/servicemix/trunk/samples/loan-broker/loan-broker-jms-su/pom.xml Mon Dec 11 00:08:35 2006
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+    
+    http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+
+-->
+<project
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns="http://maven.apache.org/POM/4.0.0">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.servicemix.samples</groupId>
+        <artifactId>loan-broker</artifactId>
+        <version>3.1-incubating-SNAPSHOT</version>
+    </parent>
+
+    <groupId>org.apache.servicemix.samples.loan-broker</groupId>
+    <artifactId>loan-broker-jms-su</artifactId>
+    <packaging>jbi-service-unit</packaging>
+    <name>ServiceMix :: Samples :: Loan Broker :: JMS</name>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.servicemix</groupId>
+            <artifactId>servicemix-jms</artifactId>
+            <version>3.1-incubating-SNAPSHOT</version>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.servicemix.tooling</groupId>
+                <artifactId>jbi-maven-plugin</artifactId>
+                <extensions>true</extensions>
+            </plugin>
+        </plugins>
+    </build>
+</project>

Propchange: incubator/servicemix/trunk/samples/loan-broker/loan-broker-jms-su/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/servicemix/trunk/samples/loan-broker/loan-broker-jms-su/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: incubator/servicemix/trunk/samples/loan-broker/loan-broker-jms-su/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/servicemix/trunk/samples/loan-broker/loan-broker-jms-su/src/main/resources/xbean.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/loan-broker/loan-broker-jms-su/src/main/resources/xbean.xml?view=auto&rev=485546
==============================================================================
--- incubator/servicemix/trunk/samples/loan-broker/loan-broker-jms-su/src/main/resources/xbean.xml (added)
+++ incubator/servicemix/trunk/samples/loan-broker/loan-broker-jms-su/src/main/resources/xbean.xml Mon Dec 11 00:08:35 2006
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+    
+    http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+
+-->
+<beans xmlns:jms="http://servicemix.apache.org/jms/1.0"
+       xmlns:lb="urn:logicblaze:soa:loanbroker">
+
+  <jms:endpoint service="lb:LoanBrokerService"
+                endpoint="endpoint"
+                targetService="lb:LoanBrokerService"
+                defaultOperation="lb:getLoanQuote" 
+                role="consumer"
+                connectionFactory="#jmsFactory"
+                destinationStyle="queue"
+                jmsProviderDestinationName="demo.org.servicemix.source" />
+
+  <bean id="jmsFactory" class="org.apache.activemq.pool.PooledConnectionFactory">
+    <property name="connectionFactory">
+      <bean class="org.apache.activemq.ActiveMQConnectionFactory">
+        <property name="brokerURL" value="tcp://localhost:61616" />
+      </bean>
+    </property>
+  </bean>
+
+</beans>

Propchange: incubator/servicemix/trunk/samples/loan-broker/loan-broker-jms-su/src/main/resources/xbean.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/servicemix/trunk/samples/loan-broker/loan-broker-jms-su/src/main/resources/xbean.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: incubator/servicemix/trunk/samples/loan-broker/loan-broker-jms-su/src/main/resources/xbean.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/src/main/resources/servicemix.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/src/main/resources/servicemix.xml?view=diff&rev=485546&r1=485545&r2=485546
==============================================================================
--- incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/src/main/resources/servicemix.xml (original)
+++ incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/src/main/resources/servicemix.xml Mon Dec 11 00:08:35 2006
@@ -21,30 +21,9 @@
        xmlns:lb="urn:logicblaze:soa:loanbroker"
        xmlns:ca="urn:logicblaze:soa:creditagency">
 
-  <classpath>
-    <location>.</location>
-    <location>lib/servicemix-components-3.1-incubating-SNAPSHOT.jar</location>
-  </classpath>
-
   <sm:serviceunit id="jbi">
     <sm:activationSpecs>
 
-      <sm:activationSpec id="jmsReceiver"
-                         destinationService="lb:LoanBrokerService"
-                         destinationOperation="lb:getLoanQuote">
-        <sm:component>
-          <bean class="org.apache.servicemix.components.jms.JmsServiceComponent">
-            <property name="template">
-              <bean class="org.springframework.jms.core.JmsTemplate">
-                <property name="connectionFactory" ref="jmsFactory" />
-                <property name="defaultDestinationName" value="demo.org.servicemix.source" />
-                <property name="pubSubDomain" value="false" />
-              </bean>
-            </property>
-          </bean>
-        </sm:component>
-      </sm:activationSpec>
-
       <sm:activationSpec id="creditAgency"
                          interfaceName="ca:CreditAgency">
         <sm:component>
@@ -94,13 +73,5 @@
 
     </sm:activationSpecs>
   </sm:serviceunit>
-
-  <bean id="jmsFactory" class="org.apache.activemq.pool.PooledConnectionFactory">
-    <property name="connectionFactory">
-      <bean class="org.apache.activemq.ActiveMQConnectionFactory">
-        <property name="brokerURL" value="tcp://localhost:61616" />
-      </bean>
-    </property>
-  </bean>
 
 </beans>

Modified: incubator/servicemix/trunk/samples/loan-broker/loan-broker-sa/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/loan-broker/loan-broker-sa/pom.xml?view=diff&rev=485546&r1=485545&r2=485546
==============================================================================
--- incubator/servicemix/trunk/samples/loan-broker/loan-broker-sa/pom.xml (original)
+++ incubator/servicemix/trunk/samples/loan-broker/loan-broker-sa/pom.xml Mon Dec 11 00:08:35 2006
@@ -46,6 +46,11 @@
             <artifactId>loan-broker-lw-su</artifactId>
             <version>3.1-incubating-SNAPSHOT</version>
         </dependency>
+        <dependency>
+            <groupId>org.apache.servicemix.samples.loan-broker</groupId>
+            <artifactId>loan-broker-jms-su</artifactId>
+            <version>3.1-incubating-SNAPSHOT</version>
+        </dependency>
     </dependencies>
 
     <build>

Modified: incubator/servicemix/trunk/samples/loan-broker/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/loan-broker/pom.xml?view=diff&rev=485546&r1=485545&r2=485546
==============================================================================
--- incubator/servicemix/trunk/samples/loan-broker/pom.xml (original)
+++ incubator/servicemix/trunk/samples/loan-broker/pom.xml Mon Dec 11 00:08:35 2006
@@ -88,6 +88,7 @@
     <modules>
       <module>loan-broker-lw-su</module>
       <module>loan-broker-bpe-su</module>
+      <module>loan-broker-jms-su</module>
       <module>loan-broker-sa</module>
     </modules>