servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r427561 - in /incubator/servicemix/trunk/samples/loan-broker: ./ loan-broker-bpe-su/ loan-broker-bpe-su/src/ loan-broker-bpe-su/src/main/ loan-broker-bpe-su/src/main/resources/ loan-broker-lw-su/ loan-broker-lw-su/src/ loan-broker-lw-su/src...
Date Tue, 01 Aug 2006 12:41:39 GMT
Author: gnodet
Date: Tue Aug  1 05:41:38 2006
New Revision: 427561

URL: http://svn.apache.org/viewvc?rev=427561&view=rev
Log:
Check in the loan-broker example.
Currently it is broken because the loan-broker-lw-su does not contain dependencies (mainly servicemix-components)

Added:
    incubator/servicemix/trunk/samples/loan-broker/   (with props)
    incubator/servicemix/trunk/samples/loan-broker/loan-broker-bpe-su/   (with props)
    incubator/servicemix/trunk/samples/loan-broker/loan-broker-bpe-su/pom.xml
    incubator/servicemix/trunk/samples/loan-broker/loan-broker-bpe-su/src/
    incubator/servicemix/trunk/samples/loan-broker/loan-broker-bpe-su/src/main/
    incubator/servicemix/trunk/samples/loan-broker/loan-broker-bpe-su/src/main/resources/
    incubator/servicemix/trunk/samples/loan-broker/loan-broker-bpe-su/src/main/resources/bank.wsdl
    incubator/servicemix/trunk/samples/loan-broker/loan-broker-bpe-su/src/main/resources/creditagency.wsdl
    incubator/servicemix/trunk/samples/loan-broker/loan-broker-bpe-su/src/main/resources/loanbroker.bpel
    incubator/servicemix/trunk/samples/loan-broker/loan-broker-bpe-su/src/main/resources/loanbroker.wsdl
    incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/   (with props)
    incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/pom.xml
    incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/src/
    incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/src/main/
    incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/src/main/java/
    incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/src/main/java/loanbroker/
    incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/src/main/java/loanbroker/Bank.java
    incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/src/main/java/loanbroker/CreditAgency.java
    incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/src/main/resources/
    incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/src/main/resources/servicemix.xml
    incubator/servicemix/trunk/samples/loan-broker/loan-broker-sa/   (with props)
    incubator/servicemix/trunk/samples/loan-broker/loan-broker-sa/pom.xml
    incubator/servicemix/trunk/samples/loan-broker/pom.xml
    incubator/servicemix/trunk/samples/loan-broker/src/
    incubator/servicemix/trunk/samples/loan-broker/src/main/
    incubator/servicemix/trunk/samples/loan-broker/src/main/assembly/
    incubator/servicemix/trunk/samples/loan-broker/src/main/assembly/src.xml

Propchange: incubator/servicemix/trunk/samples/loan-broker/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue Aug  1 05:41:38 2006
@@ -0,0 +1 @@
+target

Propchange: incubator/servicemix/trunk/samples/loan-broker/loan-broker-bpe-su/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue Aug  1 05:41:38 2006
@@ -0,0 +1 @@
+target

Added: incubator/servicemix/trunk/samples/loan-broker/loan-broker-bpe-su/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/loan-broker/loan-broker-bpe-su/pom.xml?rev=427561&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/loan-broker/loan-broker-bpe-su/pom.xml (added)
+++ incubator/servicemix/trunk/samples/loan-broker/loan-broker-bpe-su/pom.xml Tue Aug  1 05:41:38 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.
+-->
+<!-- $Rev: 356052 $ $Date: 2005-12-11 14:41:20 -0800 (dim., 11 déc. 2005) $ -->
+<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.0-incubating-SNAPSHOT</version>
+    </parent>
+
+    <groupId>org.apache.servicemix.samples.loan-broker</groupId>
+    <artifactId>loan-broker-bpe-su</artifactId>
+    <packaging>jbi-service-unit</packaging>
+    <name>ServiceMix :: Samples :: Loan Broker :: BPE</name>
+    
+    <dependencies>        
+        <dependency>
+            <groupId>org.apache.servicemix</groupId>
+            <artifactId>servicemix-bpe</artifactId>
+            <version>${project.version}</version>            
+        </dependency>
+    </dependencies>
+
+		<build>
+        <plugins>           
+            <plugin>
+			        <groupId>org.apache.servicemix.tooling</groupId>
+			        <artifactId>jbi-maven-plugin</artifactId>		        
+			        <extensions>true</extensions>				        		       
+    				</plugin>
+        </plugins>
+    </build>
+</project>

Added: incubator/servicemix/trunk/samples/loan-broker/loan-broker-bpe-su/src/main/resources/bank.wsdl
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/loan-broker/loan-broker-bpe-su/src/main/resources/bank.wsdl?rev=427561&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/loan-broker/loan-broker-bpe-su/src/main/resources/bank.wsdl (added)
+++ incubator/servicemix/trunk/samples/loan-broker/loan-broker-bpe-su/src/main/resources/bank.wsdl Tue Aug  1 05:41:38 2006
@@ -0,0 +1,48 @@
+<definitions targetNamespace="urn:logicblaze:soa:bank"
+	xmlns:tns="urn:logicblaze:soa:bank"
+	xmlns:typens="urn:logicblaze:soa:bank:types"
+	xmlns="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
+
+	<types>
+		<xsd:schema
+			targetNamespace="urn:logicblaze:soa:bank:types"
+			xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+			<xsd:complexType name="getLoanQuoteRequest">
+				<xsd:sequence>
+					<xsd:element name="ssn" type="xsd:string" />
+					<xsd:element name="amount" type="xsd:double" />
+					<xsd:element name="duration" type="xsd:int" />
+					<xsd:element name="score" type="xsd:int" />
+					<xsd:element name="length" type="xsd:int" />
+				</xsd:sequence>
+			</xsd:complexType>
+
+			<xsd:complexType name="getLoanQuoteResponse">
+				<xsd:sequence>
+					<xsd:element name="rate" type="xsd:double" />
+				</xsd:sequence>
+			</xsd:complexType>
+
+		</xsd:schema>
+	</types>
+
+	<message name="getLoanQuoteRequest">
+		<part name="payload" type="typens:getLoanQuoteRequest" />
+	</message>
+
+	<message name="getLoanQuoteResponse">
+		<part name="payload" type="typens:getLoanQuoteResponse" />
+	</message>
+
+	<portType name="Bank">
+		<operation name="getLoanQuote">
+			<input message="tns:getLoanQuoteRequest" />
+			<output message="tns:getLoanQuoteResponse" />
+		</operation>
+	</portType>
+
+</definitions>

Added: incubator/servicemix/trunk/samples/loan-broker/loan-broker-bpe-su/src/main/resources/creditagency.wsdl
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/loan-broker/loan-broker-bpe-su/src/main/resources/creditagency.wsdl?rev=427561&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/loan-broker/loan-broker-bpe-su/src/main/resources/creditagency.wsdl (added)
+++ incubator/servicemix/trunk/samples/loan-broker/loan-broker-bpe-su/src/main/resources/creditagency.wsdl Tue Aug  1 05:41:38 2006
@@ -0,0 +1,88 @@
+<definitions targetNamespace="urn:logicblaze:soa:creditagency"
+	xmlns:tns="urn:logicblaze:soa:creditagency"
+	xmlns:typens="urn:logicblaze:soa:creditagency:types"
+	xmlns="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
+
+	<types>
+		<xsd:schema
+			targetNamespace="urn:logicblaze:soa:creditagency:types"
+			xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+			<xsd:complexType name="getCreditScoreRequest">
+				<xsd:sequence>
+					<xsd:element name="ssn" type="xsd:string" />
+				</xsd:sequence>
+			</xsd:complexType>
+
+			<xsd:complexType name="getCreditScoreResponse">
+				<xsd:sequence>
+					<xsd:element name="score" type="xsd:int" />
+				</xsd:sequence>
+			</xsd:complexType>
+
+			<xsd:complexType name="getCreditHistoryLengthRequest">
+				<xsd:sequence>
+					<xsd:element name="ssn" type="xsd:string" />
+				</xsd:sequence>
+			</xsd:complexType>
+
+			<xsd:complexType name="getCreditHistoryLengthResponse">
+				<xsd:sequence>
+					<xsd:element name="length" type="xsd:int" />
+				</xsd:sequence>
+			</xsd:complexType>
+
+			<xsd:complexType name="unknownSSNFault">
+				<xsd:sequence>
+					<xsd:element name="ssn" type="xsd:string" />
+				</xsd:sequence>
+			</xsd:complexType>
+
+		</xsd:schema>
+	</types>
+
+	<message name="getCreditScoreRequest">
+		<part name="payload" type="typens:getCreditScoreRequest" />
+	</message>
+
+	<message name="getCreditScoreResponse">
+		<part name="payload" type="typens:getCreditScoreResponse" />
+	</message>
+
+	<message name="getCreditHistoryLengthRequest">
+		<part name="payload"
+			type="typens:getCreditHistoryLengthRequest" />
+	</message>
+
+	<message name="getCreditHistoryLengthResponse">
+		<part name="payload"
+			type="typens:getCreditHistoryLengthResponse" />
+	</message>
+
+	<message name="unknownSSNFault">
+		<part name="payload" type="typens:unknownSSNFault" />
+	</message>
+
+	<message name="invalidSSNFault">
+		<part name="payload" type="typens:invalidSSNFault" />
+	</message>
+
+	<portType name="CreditAgency">
+		<operation name="getCreditScore">
+			<input message="tns:getCreditScoreRequest" />
+			<output message="tns:getCreditScoreResponse" />
+			<fault name="UnknownSSN" message="tns:unknownSSNFault" />
+			<fault name="InvalidSSN" message="tns:invalidSSNFault" />
+		</operation>
+		<operation name="getCreditHistoryLength">
+			<input message="tns:getCreditHistoryLengthRequest" />
+			<output message="tns:getCreditHistoryLengthResponse" />
+			<fault name="UnknownSSN" message="tns:unknownSSNFault">
+			</fault>
+		</operation>
+	</portType>
+
+</definitions>

Added: incubator/servicemix/trunk/samples/loan-broker/loan-broker-bpe-su/src/main/resources/loanbroker.bpel
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/loan-broker/loan-broker-bpe-su/src/main/resources/loanbroker.bpel?rev=427561&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/loan-broker/loan-broker-bpe-su/src/main/resources/loanbroker.bpel (added)
+++ incubator/servicemix/trunk/samples/loan-broker/loan-broker-bpe-su/src/main/resources/loanbroker.bpel Tue Aug  1 05:41:38 2006
@@ -0,0 +1,229 @@
+<bpel:process name="loanbrokerProcess"
+	targetNamespace="urn:logicblaze:soa:loanbroker"
+	xmlns:tns="urn:logicblaze:soa:loanbroker"
+	xmlns:ca="urn:logicblaze:soa:creditagency"
+	xmlns:bk="urn:logicblaze:soa:bank"
+	xmlns:svc="urn:logicblaze:soa:service" suppressJoinFailure="yes"
+	xmlns:bpel="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xmlns:sm="http://servicemix.apache.org/schemas/bpe/1.0"
+	xsi:schemaLocation="http://schemas.xmlsoap.org/ws/2003/03/business-process/ http://schemas.xmlsoap.org/ws/2003/03/business-process/">
+
+	<bpel:variables>
+		<bpel:variable name="request" messageType="tns:getLoanQuoteRequest" />
+		<bpel:variable name="response" messageType="tns:getLoanQuoteResponse" />
+		<bpel:variable name="ca-score-request" messageType="ca:getCreditScoreRequest" />
+		<bpel:variable name="ca-score-response" messageType="ca:getCreditScoreResponse" />
+		<bpel:variable name="ca-history-request" messageType="ca:getCreditHistoryLengthRequest" />
+		<bpel:variable name="ca-history-response" messageType="ca:getCreditHistoryLengthResponse" />
+		<bpel:variable name="bk-loanquote-request" messageType="bk:getLoanQuoteRequest" />
+		<bpel:variable name="bk-loanquote-response-1" messageType="bk:getLoanQuoteResponse" />
+		<bpel:variable name="bk-loanquote-response-2" messageType="bk:getLoanQuoteResponse" />
+		<bpel:variable name="bk-loanquote-response-3" messageType="bk:getLoanQuoteResponse" />
+		<bpel:variable name="bk-loanquote-response-4" messageType="bk:getLoanQuoteResponse" />
+		<bpel:variable name="bk-loanquote-response-5" messageType="bk:getLoanQuoteResponse" />
+		<bpel:variable name="invalidSSN" messageType="tns:invalidSSNFault" />
+		<bpel:variable name="unknownSSN" messageType="tns:unknownSSNFault" />
+	</bpel:variables>
+	
+	<bpel:faultHandlers>
+		<bpel:catch faultName="ca:InvalidSSN">
+			<bpel:sequence>
+				<bpel:assign>
+					<bpel:copy>
+						<bpel:from variable="request" part="payload" query="/tns:getLoanQuoteRequest/tns:ssn" />
+						<bpel:to variable="invalidSSN" part="payload" query="/tns:invalidSSNFault/tns:ssn" />
+					</bpel:copy>
+				</bpel:assign>
+				<bpel:reply name="response" partnerLink="LoanBrokerResponse"
+					portType="tns:LoanBroker" operation="getLoanQuote"
+					variable="invalidSSN" faultName="tns:InvalidSSN" >
+				</bpel:reply>
+			</bpel:sequence>
+		</bpel:catch>
+		<bpel:catch faultName="ca:UnkownSSN">
+			<bpel:sequence>
+				<bpel:assign>
+					<bpel:copy>
+						<bpel:from variable="request" part="payload" query="/tns:getLoanQuoteRequest/tns:ssn" />
+						<bpel:to variable="unknownSSN" part="payload" query="/tns:unknownSSNFault/tns:ssn" />
+					</bpel:copy>
+				</bpel:assign>
+				<bpel:reply name="response" partnerLink="LoanBrokerResponse"
+					portType="tns:LoanBroker" operation="getLoanQuote"
+					variable="unknownSSN" faultName="tns:unknownSSN" >
+				</bpel:reply>
+			</bpel:sequence>
+		</bpel:catch>
+	</bpel:faultHandlers>
+
+	<bpel:sequence>
+		<bpel:receive name="request" partnerLink="LoanBrokerRequest"
+			portType="tns:LoanBroker" operation="getLoanQuote" variable="request"
+			createInstance="yes">
+		</bpel:receive>
+
+			
+		<bpel:flow>
+		
+			<bpel:sequence>
+				<bpel:assign>
+					<bpel:copy>
+						<bpel:from variable="request" part="payload" query="/tns:getLoanQuoteRequest/tns:ssn" />
+						<bpel:to variable="ca-history-request" part="payload" query="/ca:getCreditHistoryLengthRequest/ca:ssn" />
+					</bpel:copy>
+				</bpel:assign>
+		
+				<bpel:invoke name="service" partnerLink="CreditAgency"
+					portType="ca:CreditAgency" operation="getCreditHistoryLength"
+					inputVariable="ca-history-request"
+					outputVariable="ca-history-response" />
+			</bpel:sequence>
+			
+			<bpel:sequence>
+				<bpel:assign>
+					<bpel:copy>
+						<bpel:from variable="request" part="payload" query="/tns:getLoanQuoteRequest/tns:ssn" />
+						<bpel:to variable="ca-score-request" part="payload" query="/ca:getCreditScoreRequest/ca:ssn" />
+					</bpel:copy>
+				</bpel:assign>
+		
+				<bpel:invoke name="service" partnerLink="CreditAgency"
+					portType="ca:CreditAgency" operation="getCreditScore"
+					inputVariable="ca-score-request"
+					outputVariable="ca-score-response" />
+			</bpel:sequence>
+		</bpel:flow>
+
+		<bpel:assign>
+			<bpel:copy>
+				<bpel:from variable="request" part="payload" query="/tns:getLoanQuoteRequest/tns:ssn" />
+				<bpel:to variable="bk-loanquote-request" part="payload" query="/bk:getLoanQuoteRequest/bk:ssn"/>
+			</bpel:copy>
+			<bpel:copy>
+				<bpel:from variable="request" part="payload" query="/tns:getLoanQuoteRequest/tns:amount" />
+				<bpel:to variable="bk-loanquote-request" part="payload" query="/bk:getLoanQuoteRequest/bk:amount"/>
+			</bpel:copy>
+			<bpel:copy>
+				<bpel:from variable="request" part="payload" query="/tns:getLoanQuoteRequest/tns:duration" />
+				<bpel:to variable="bk-loanquote-request" part="payload" query="/bk:getLoanQuoteRequest/bk:duration"/>
+			</bpel:copy>
+			<bpel:copy>
+				<bpel:from variable="ca-score-response" part="payload" query="/ca:getCreditScoreResponse/ca:score" />
+				<bpel:to variable="bk-loanquote-request" part="payload" query="/bk:getLoanQuoteRequest/bk:score"/>
+			</bpel:copy>
+			<bpel:copy>
+				<bpel:from variable="ca-history-response" part="payload" query="/ca:getCreditHistoryLengthResponse/ca:length" />
+				<bpel:to variable="bk-loanquote-request" part="payload" query="/bk:getLoanQuoteRequest/bk:length"/>
+			</bpel:copy>
+		</bpel:assign>
+
+		<bpel:switch>
+		
+			<bpel:case condition="getVariableData('bk-loanquote-request', 'payload', '/bk:getLoanQuoteRequest/bk:amount') >= 75000.0 and
+			                      getVariableData('bk-loanquote-request', 'payload', '/bk:getLoanQuoteRequest/bk:score') >= 600 and
+			                      getVariableData('bk-loanquote-request', 'payload', '/bk:getLoanQuoteRequest/bk:length') >= 8">
+				<bpel:sequence>
+				    <bpel:flow>      
+						<bpel:invoke name="bank1" partnerLink="Bank1"
+								portType="bk:Bank" operation="getLoanQuote" 
+								inputVariable="bk-loanquote-request"
+								outputVariable="bk-loanquote-response-1" 
+								sm:endpoint="urn:logicblaze:soa:bank:Bank1:bank" />
+								
+						<bpel:invoke name="bank2" partnerLink="Bank2"
+								portType="bk:Bank" operation="getLoanQuote" 
+								inputVariable="bk-loanquote-request"
+								outputVariable="bk-loanquote-response-2" 
+								sm:endpoint="urn:logicblaze:soa:bank:Bank2:bank" />
+					</bpel:flow>
+					<bpel:switch>
+						<bpel:case condition="getVariableData('bk-loanquote-response-1', 'payload', '/bk:getLoanQuoteResponse/bk:rate') > 
+										      getVariableData('bk-loanquote-response-2', 'payload', '/bk:getLoanQuoteResponse/bk:rate')">
+							<bpel:assign>
+								<bpel:copy>
+									<bpel:from expression="getVariableData('bk-loanquote-response-2', 'payload', '/bk:getLoanQuoteResponse/bk:rate')" />
+									<bpel:to variable="response" part="payload" query="/tns:getLoanQuoteResponse/tns:rate" />
+								</bpel:copy>
+							</bpel:assign>
+						</bpel:case>
+						<bpel:otherwise>
+							<bpel:assign>
+								<bpel:copy>
+									<bpel:from expression="getVariableData('bk-loanquote-response-1', 'payload', '/bk:getLoanQuoteResponse/bk:rate')" />
+									<bpel:to variable="response" part="payload" query="/tns:getLoanQuoteResponse/tns:rate" />
+								</bpel:copy>
+							</bpel:assign>
+						</bpel:otherwise>
+					</bpel:switch>
+				</bpel:sequence>
+			</bpel:case>
+			
+			<bpel:case condition="getVariableData('bk-loanquote-request', 'payload', '/bk:getLoanQuoteRequest/bk:amount') >= 10000.0 and
+			                      getVariableData('bk-loanquote-request', 'payload', '/bk:getLoanQuoteRequest/bk:amount') &lt; 75000.0 and
+			                      getVariableData('bk-loanquote-request', 'payload', '/bk:getLoanQuoteRequest/bk:score') >= 400 and
+			                      getVariableData('bk-loanquote-request', 'payload', '/bk:getLoanQuoteRequest/bk:length') >= 3">
+			           
+			    <bpel:sequence>
+				    <bpel:flow>      
+						<bpel:invoke name="bank3" partnerLink="Bank3"
+								portType="bk:Bank" operation="getLoanQuote" 
+								inputVariable="bk-loanquote-request"
+								outputVariable="bk-loanquote-response-3" 
+								sm:endpoint="urn:logicblaze:soa:bank:Bank3:bank" />
+								
+						<bpel:invoke name="bank4" partnerLink="Bank4"
+								portType="bk:Bank" operation="getLoanQuote" 
+								inputVariable="bk-loanquote-request"
+								outputVariable="bk-loanquote-response-4" 
+								sm:endpoint="urn:logicblaze:soa:bank:Bank4:bank" />
+					</bpel:flow>
+					<bpel:switch>
+						<bpel:case condition="getVariableData('bk-loanquote-response-3', 'payload', '/bk:getLoanQuoteResponse/bk:rate') > 
+										      getVariableData('bk-loanquote-response-4', 'payload', '/bk:getLoanQuoteResponse/bk:rate')">
+							<bpel:assign>
+								<bpel:copy>
+									<bpel:from expression="getVariableData('bk-loanquote-response-4', 'payload', '/bk:getLoanQuoteResponse/bk:rate')" />
+									<bpel:to variable="response" part="payload" query="/tns:getLoanQuoteResponse/tns:rate" />
+								</bpel:copy>
+							</bpel:assign>
+						</bpel:case>
+						<bpel:otherwise>
+							<bpel:assign>
+								<bpel:copy>
+									<bpel:from expression="getVariableData('bk-loanquote-response-3', 'payload', '/bk:getLoanQuoteResponse/bk:rate')" />
+									<bpel:to variable="response" part="payload" query="/tns:getLoanQuoteResponse/tns:rate" />
+								</bpel:copy>
+							</bpel:assign>
+						</bpel:otherwise>
+					</bpel:switch>
+				</bpel:sequence>
+			</bpel:case>
+			
+			<bpel:otherwise>
+			
+				<bpel:sequence>
+					<bpel:invoke name="bank5" partnerLink="Bank5"
+							portType="bk:Bank" operation="getLoanQuote" 
+							inputVariable="bk-loanquote-request"
+							outputVariable="bk-loanquote-response-5" 
+							sm:endpoint="urn:logicblaze:soa:bank:Bank5:bank" />
+					<bpel:assign>
+						<bpel:copy>
+							<bpel:from expression="getVariableData('bk-loanquote-response-5', 'payload', '/bk:getLoanQuoteResponse/bk:rate')" />
+							<bpel:to variable="response" part="payload" query="/tns:getLoanQuoteResponse/tns:rate" />
+						</bpel:copy>
+					</bpel:assign>
+				</bpel:sequence>
+
+			</bpel:otherwise>
+		
+		</bpel:switch>
+		
+		<bpel:reply name="response" partnerLink="LoanBrokerResponse"
+			portType="tns:LoanBroker" operation="getLoanQuote"
+			variable="response" />
+
+	</bpel:sequence>
+
+</bpel:process>

Added: incubator/servicemix/trunk/samples/loan-broker/loan-broker-bpe-su/src/main/resources/loanbroker.wsdl
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/loan-broker/loan-broker-bpe-su/src/main/resources/loanbroker.wsdl?rev=427561&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/loan-broker/loan-broker-bpe-su/src/main/resources/loanbroker.wsdl (added)
+++ incubator/servicemix/trunk/samples/loan-broker/loan-broker-bpe-su/src/main/resources/loanbroker.wsdl Tue Aug  1 05:41:38 2006
@@ -0,0 +1,95 @@
+<definitions targetNamespace="urn:logicblaze:soa:loanbroker"
+	xmlns:tns="urn:logicblaze:soa:loanbroker"
+	xmlns:typens="urn:logicblaze:soa:loanbroker:types"
+	xmlns="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
+
+	<import namespace="urn:logicblaze:soa:creditagency"
+		location="creditagency.wsdl" />
+
+	<import namespace="urn:logicblaze:soa:bank"
+		location="bank.wsdl" />
+
+	<!-- type defs -->
+	<types>
+		<xsd:schema
+			targetNamespace="urn:logicblaze:soa:loanbroker:types"
+			xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+			<xsd:complexType name="getLoanQuoteRequest">
+				<xsd:sequence>
+					<xsd:element name="ssn" type="xsd:string" />
+					<xsd:element name="amount" type="xsd:double" />
+					<xsd:element name="duration" type="xsd:int" />
+				</xsd:sequence>
+			</xsd:complexType>
+
+			<xsd:complexType name="getLoanQuoteResponse">
+				<xsd:sequence>
+					<xsd:element name="rate" type="xsd:double" />
+				</xsd:sequence>
+			</xsd:complexType>
+
+			<xsd:complexType name="unknownSSNFault">
+				<xsd:sequence>
+					<xsd:element name="ssn" type="xsd:string" />
+				</xsd:sequence>
+			</xsd:complexType>
+
+			<xsd:complexType name="invalidSSNFault">
+				<xsd:sequence>
+					<xsd:element name="ssn" type="xsd:string" />
+				</xsd:sequence>
+			</xsd:complexType>
+
+		</xsd:schema>
+	</types>
+
+	<message name="getLoanQuoteRequest">
+		<part name="payload" type="typens:getLoanQuoteRequest" />
+	</message>
+
+	<message name="getLoanQuoteResponse">
+		<part name="payload" type="typens:getLoanQuoteResponse" />
+	</message>
+
+	<message name="unknownSSNFault">
+		<part name="payload" type="typens:unknownSSNFault" />
+	</message>
+
+	<message name="invalidSSNFault">
+		<part name="payload" type="typens:invalidSSNFault" />
+	</message>
+
+	<portType name="LoanBroker">
+		<operation name="getLoanQuote">
+			<input message="tns:getLoanQuoteRequest" />
+			<output message="tns:getLoanQuoteResponse" />
+			<fault name="UnknownSSN" message="tns:unknownSSNFault" />
+			<fault name="InvalidSSN" message="tns:invalidSSNFault" />
+		</operation>
+	</portType>
+
+	<!-- 
+		<plnk:partnerLinkType name="test1Request">
+		<plnk:role name="test1Service">
+		<plnk:portType name="test1PT"/>
+		</plnk:role>
+		</plnk:partnerLinkType>
+		
+		<plnk:partnerLinkType name="probeRequest">
+		<plnk:role name="probeService">
+		<plnk:portType name="prb:probeMessagePT"/>
+		</plnk:role>
+		</plnk:partnerLinkType>
+	-->
+
+	<binding name="LoanBroker" type="tns:LoanBroker">
+		<operation name="request"></operation>
+	</binding>
+	<service name="LoanBrokerService">
+		<port name="loanbroker" binding="tns:LoanBroker" />
+	</service>
+</definitions>

Propchange: incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue Aug  1 05:41:38 2006
@@ -0,0 +1 @@
+target

Added: incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/pom.xml?rev=427561&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/pom.xml (added)
+++ incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/pom.xml Tue Aug  1 05:41:38 2006
@@ -0,0 +1,66 @@
+<?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.
+-->
+<!-- $Rev: 356052 $ $Date: 2005-12-11 14:41:20 -0800 (dim., 11 déc. 2005) $ -->
+<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.0-incubating-SNAPSHOT</version>
+    </parent>
+
+    <groupId>org.apache.servicemix.samples.loan-broker</groupId>
+    <artifactId>loan-broker-lw-su</artifactId>
+    <packaging>jbi-service-unit</packaging>
+    <name>ServiceMix :: Samples :: Loan Broker :: LwContainer</name>
+    
+    <dependencies>        
+        <dependency>
+            <groupId>org.apache.servicemix</groupId>
+            <artifactId>servicemix-lwcontainer</artifactId>
+            <version>${project.version}</version>            
+        </dependency>
+        <dependency>
+            <groupId>org.apache.servicemix</groupId>
+            <artifactId>servicemix-components</artifactId>
+            <version>${project.version}</version>            
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-jms_1.1_spec</artifactId>
+            <version>1.0.1</version>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+
+		<build>
+        <plugins>           
+            <plugin>
+			        <groupId>org.apache.servicemix.tooling</groupId>
+			        <artifactId>jbi-maven-plugin</artifactId>		        
+			        <extensions>true</extensions>				        		       
+    				</plugin>
+        </plugins>
+    </build>
+</project>

Added: incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/src/main/java/loanbroker/Bank.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/src/main/java/loanbroker/Bank.java?rev=427561&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/src/main/java/loanbroker/Bank.java (added)
+++ incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/src/main/java/loanbroker/Bank.java Tue Aug  1 05:41:38 2006
@@ -0,0 +1,54 @@
+/*
+ * 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.
+ */
+package loanbroker;
+
+import javax.jbi.messaging.ExchangeStatus;
+import javax.jbi.messaging.InOut;
+import javax.jbi.messaging.MessageExchange;
+import javax.jbi.messaging.MessagingException;
+import javax.jbi.messaging.NormalizedMessage;
+import javax.xml.namespace.QName;
+
+import org.apache.servicemix.MessageExchangeListener;
+import org.apache.servicemix.components.util.ComponentSupport;
+import org.apache.servicemix.jbi.jaxp.StringSource;
+
+public class Bank extends ComponentSupport implements MessageExchangeListener {
+    
+    public Bank(int number) {
+        setService(new QName("urn:logicblaze:soa:bank", "Bank" + number));
+        setEndpoint("bank");
+    }
+    
+    public void onMessageExchange(MessageExchange exchange) throws MessagingException {
+        InOut inOut = (InOut) exchange;
+        if (inOut.getStatus() == ExchangeStatus.DONE) {
+            return;
+        } else if (inOut.getStatus() == ExchangeStatus.ERROR) {
+            return;
+        }
+        System.err.println(getService().getLocalPart() + " requested");
+        try {
+            String output = "<getLoanQuoteResponse xmlns=\"urn:logicblaze:soa:bank\"><rate>" + (Math.ceil(1000 * Math.random()) / 100) + "</rate></getLoanQuoteResponse>";
+            NormalizedMessage answer = inOut.createMessage();
+            answer.setContent(new StringSource(output));
+            answer(inOut, answer);
+        } catch (Exception e) {
+            throw new MessagingException(e);
+        }
+    }
+}
\ No newline at end of file

Added: incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/src/main/java/loanbroker/CreditAgency.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/src/main/java/loanbroker/CreditAgency.java?rev=427561&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/src/main/java/loanbroker/CreditAgency.java (added)
+++ incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/src/main/java/loanbroker/CreditAgency.java Tue Aug  1 05:41:38 2006
@@ -0,0 +1,115 @@
+/*
+ * 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.
+ */
+package loanbroker;
+
+import javax.jbi.messaging.ExchangeStatus;
+import javax.jbi.messaging.Fault;
+import javax.jbi.messaging.InOut;
+import javax.jbi.messaging.MessageExchange;
+import javax.jbi.messaging.MessagingException;
+import javax.jbi.messaging.NormalizedMessage;
+import javax.xml.namespace.QName;
+import javax.xml.transform.TransformerException;
+
+import org.apache.servicemix.MessageExchangeListener;
+import org.apache.servicemix.components.util.ComponentSupport;
+import org.apache.servicemix.jbi.jaxp.SourceTransformer;
+import org.apache.servicemix.jbi.jaxp.StringSource;
+import org.apache.servicemix.jbi.util.DOMUtil;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.traversal.NodeIterator;
+
+import com.sun.org.apache.xpath.internal.CachedXPathAPI;
+
+public class CreditAgency extends ComponentSupport implements MessageExchangeListener {
+
+    public CreditAgency() {
+        setService(new QName("urn:logicblaze:soa:creditagency", "CreditAgencyService"));
+        setEndpoint("agency");
+    }
+    
+    public void onMessageExchange(MessageExchange exchange) throws MessagingException {
+        InOut inOut = (InOut) exchange;
+        if (inOut.getStatus() == ExchangeStatus.DONE) {
+            return;
+        } else if (inOut.getStatus() == ExchangeStatus.ERROR) {
+            return;
+        }
+        try {
+            Document doc = (Document) new SourceTransformer().toDOMNode(inOut.getInMessage());
+            String ssn = textValueOfXPath(doc, "//*[local-name()='ssn']");
+            if (ssn == null || ssn.length() == 0) {
+                fail(exchange, new NullPointerException());
+                return;
+            } 
+            if (!ssn.startsWith("1")) {
+                Fault fault = inOut.createFault();
+                fault.setContent(new StringSource("<InvalidSSN xmlns=\"urn:logicblaze:soa:creditagency\"><ssn>" + ssn + "</ssn></InvalidSSN>"));
+                fail(inOut, fault);
+            } else {
+                String operation = null;
+                if (inOut.getOperation() != null) {
+                    operation = inOut.getOperation().getLocalPart();
+                } else {
+                    operation = doc.getDocumentElement().getLocalName();
+                }
+                String output;
+                if ("getCreditScore".equals(operation)) {
+                    output = "<getCreditScoreResponse xmlns=\"urn:logicblaze:soa:creditagency\"><score>" + getCreditScore(ssn) + "</score></getCreditScoreResponse>";
+                } else if ("getCreditHistoryLength".equals(operation)) {
+                    output = "<getCreditHistoryLengthResponse xmlns=\"urn:logicblaze:soa:creditagency\"><length>" + getCreditHistoryLength(ssn) + "</length></getCreditHistoryLengthResponse>";
+                } else {
+                    throw new UnsupportedOperationException(operation);
+                }
+                NormalizedMessage answer = inOut.createMessage();
+                answer.setContent(new StringSource(output));
+                answer(inOut, answer);
+            }
+        } catch (Exception e) {
+            throw new MessagingException(e);
+        }
+    }
+    int getCreditScore(String ssn) {
+        //return ((int) (Math.random() * 600) + 300);
+        return 1000;
+    }
+    int getCreditHistoryLength(String ssn) {
+        //return ((int) (Math.random() * 19) + 1);
+        return 10;
+    }
+    
+    protected String textValueOfXPath(Node node, String xpath) throws TransformerException {
+        CachedXPathAPI cachedXPathAPI = new CachedXPathAPI();
+        NodeIterator iterator = cachedXPathAPI.selectNodeIterator(node, xpath);
+        Node root = iterator.nextNode();
+        if (root instanceof Element) {
+            Element element = (Element) root;
+            if (element == null) {
+                return "";
+            }
+            String text = DOMUtil.getElementText(element);
+            return text;
+        }
+        else if (root != null) {
+            return root.getNodeValue();
+        } else {
+            return null;
+        }
+    }
+}
\ No newline at end of file

Added: 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?rev=427561&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/src/main/resources/servicemix.xml (added)
+++ incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/src/main/resources/servicemix.xml Tue Aug  1 05:41:38 2006
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns:sm="http://servicemix.apache.org/config/1.0" 
+	   xmlns:lb="urn:logicblaze:soa:loanbroker"
+	   xmlns:ca="urn:logicblaze:soa:creditagency">
+
+  <classpath>
+    <location>.</location>
+  </classpath>
+                         
+	<sm:serviceunit id="jbi">
+    <sm:activationSpecs>
+    
+		  <sm:activationSpec 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 interfaceName="ca:CreditAgency">
+        <sm:component>
+          <bean class="loanbroker.CreditAgency" />
+        </sm:component>
+      </sm:activationSpec>
+
+      <sm:activationSpec>
+        <sm:component>
+          <bean class="loanbroker.Bank">
+            <constructor-arg value="1" />
+          </bean>
+        </sm:component>
+      </sm:activationSpec>
+
+      <sm:activationSpec>
+        <sm:component>
+          <bean class="loanbroker.Bank">
+            <constructor-arg value="2" />
+          </bean>
+        </sm:component>
+      </sm:activationSpec>
+
+      <sm:activationSpec>
+        <sm:component>
+          <bean class="loanbroker.Bank">
+            <constructor-arg value="3" />
+          </bean>
+        </sm:component>
+      </sm:activationSpec>
+
+      <sm:activationSpec>
+        <sm:component>
+          <bean class="loanbroker.Bank">
+            <constructor-arg value="4" />
+          </bean>
+        </sm:component>
+      </sm:activationSpec>
+
+      <sm:activationSpec>
+        <sm:component>
+          <bean class="loanbroker.Bank">
+            <constructor-arg value="5" />
+          </bean>
+        </sm:component>
+      </sm:activationSpec>
+
+    </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>

Propchange: incubator/servicemix/trunk/samples/loan-broker/loan-broker-sa/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue Aug  1 05:41:38 2006
@@ -0,0 +1 @@
+target

Added: 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?rev=427561&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/loan-broker/loan-broker-sa/pom.xml (added)
+++ incubator/servicemix/trunk/samples/loan-broker/loan-broker-sa/pom.xml Tue Aug  1 05:41:38 2006
@@ -0,0 +1,61 @@
+<?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.
+-->
+<!-- $Rev: 356052 $ $Date: 2005-12-11 14:41:20 -0800 (dim., 11 déc. 2005) $ -->
+<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.0-incubating-SNAPSHOT</version>
+    </parent>
+
+    <groupId>org.apache.servicemix.samples.loan-broker</groupId>
+    <artifactId>loan-broker-sa</artifactId>
+    <packaging>jbi-service-assembly</packaging>
+    <name>ServiceMix :: Samples :: Loan Broker :: SA</name>    
+    
+    <dependencies>
+      <dependency>
+        <groupId>org.apache.servicemix.samples.loan-broker</groupId>
+        <artifactId>loan-broker-bpe-su</artifactId>        
+        <version>${pom.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.servicemix.samples.loan-broker</groupId>
+        <artifactId>loan-broker-lw-su</artifactId>        
+        <version>${pom.version}</version>
+      </dependency>
+    </dependencies>
+
+	  <build>
+	    <plugins>
+	       	<plugin>
+		       <groupId>org.apache.servicemix.tooling</groupId>
+		       <artifactId>jbi-maven-plugin</artifactId>	       
+		       <extensions>true</extensions>				        		       
+			</plugin>
+	    </plugins>
+	  </build>
+  
+</project>

Added: incubator/servicemix/trunk/samples/loan-broker/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/loan-broker/pom.xml?rev=427561&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/loan-broker/pom.xml (added)
+++ incubator/servicemix/trunk/samples/loan-broker/pom.xml Tue Aug  1 05:41:38 2006
@@ -0,0 +1,75 @@
+<?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.
+-->
+<!-- $Rev: 356052 $ $Date: 2005-12-11 14:41:20 -0800 (dim., 11 déc. 2005) $ -->
+<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</groupId>
+        <artifactId>samples</artifactId>
+        <version>3.0-incubating-SNAPSHOT</version>
+    </parent>
+
+    <groupId>org.apache.servicemix.samples</groupId>
+    <artifactId>loan-broker</artifactId>
+    <name>ServiceMix :: Samples :: Loan Broker</name>
+    <packaging>pom</packaging>
+    
+    <repositories>
+      <repository>
+        <id>apache.snapshots</id>
+        <url>http://people.apache.org/maven-snapshot-repository</url>
+      </repository>
+    </repositories>
+    
+    <modules>
+      <module>loan-broker-lw-su</module>
+      <module>loan-broker-bpe-su</module>
+      <module>loan-broker-sa</module>
+    </modules>
+    
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-assembly-plugin</artifactId>
+                <version>2.1</version>
+                <inherited>false</inherited>
+                <executions>
+                    <execution>
+                        <id>src</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>single</goal>
+                        </goals>
+                        <configuration>
+                            <descriptors>
+                                <descriptor>src/main/assembly/src.xml</descriptor>
+                            </descriptors>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+</project>

Added: incubator/servicemix/trunk/samples/loan-broker/src/main/assembly/src.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/loan-broker/src/main/assembly/src.xml?rev=427561&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/loan-broker/src/main/assembly/src.xml (added)
+++ incubator/servicemix/trunk/samples/loan-broker/src/main/assembly/src.xml Tue Aug  1 05:41:38 2006
@@ -0,0 +1,20 @@
+<assembly>
+  <id>src</id>
+  <formats>
+    <format>tar.gz</format>
+    <format>zip</format>
+  </formats>
+  <fileSets>
+    <fileSet>
+      <includes>
+        <include>README*</include>
+        <include>LICENSE*</include>
+        <include>NOTICE*</include>
+        <include>pom.xml</include>
+        <include>src/**/*</include>
+        <include>*/pom.xml</include>
+        <include>*/src/**/*</include>
+      </includes>
+    </fileSet>
+  </fileSets>
+</assembly>



Mime
View raw message