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 2007/06/27 15:22:12 UTC
svn commit: r551158 - in /incubator/servicemix/trunk/samples/loan-broker: ./
loan-broker-bean-su/ loan-broker-bean-su/src/main/java/loanbroker/
loan-broker-bean-su/src/main/resources/ loan-broker-drools-su/
loan-broker-drools-su/src/ loan-broker-drools...
Author: gnodet
Date: Wed Jun 27 06:22:11 2007
New Revision: 551158
URL: http://svn.apache.org/viewvc?view=rev&rev=551158
Log:
Rework the loan-broker demo to use drools + bean instead of lwcontainer
Added:
incubator/servicemix/trunk/samples/loan-broker/loan-broker-bean-su/
- copied from r548099, incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/
incubator/servicemix/trunk/samples/loan-broker/loan-broker-bean-su/src/main/resources/xbean.xml (with props)
incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/ (with props)
incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/pom.xml (with props)
incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/
incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/main/
incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/main/resources/
incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/main/resources/credit-agency.drl
incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/main/resources/xbean.xml (with props)
incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/test/
incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/test/java/
incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/test/java/loanbroker/
incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/test/java/loanbroker/CreditAgencyTest.java (with props)
Removed:
incubator/servicemix/trunk/samples/loan-broker/loan-broker-bean-su/src/main/java/loanbroker/CreditAgency.java
incubator/servicemix/trunk/samples/loan-broker/loan-broker-bean-su/src/main/resources/servicemix.xml
incubator/servicemix/trunk/samples/loan-broker/loan-broker-lw-su/
Modified:
incubator/servicemix/trunk/samples/loan-broker/loan-broker-bean-su/pom.xml
incubator/servicemix/trunk/samples/loan-broker/loan-broker-bean-su/src/main/java/loanbroker/Bank.java
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/loan-broker-bean-su/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/loan-broker/loan-broker-bean-su/pom.xml?view=diff&rev=551158&r1=548099&r2=551158
==============================================================================
--- incubator/servicemix/trunk/samples/loan-broker/loan-broker-bean-su/pom.xml (original)
+++ incubator/servicemix/trunk/samples/loan-broker/loan-broker-bean-su/pom.xml Wed Jun 27 06:22:11 2007
@@ -28,31 +28,20 @@
</parent>
<groupId>org.apache.servicemix.samples.loan-broker</groupId>
- <artifactId>loan-broker-lw-su</artifactId>
+ <artifactId>loan-broker-bean-su</artifactId>
<packaging>jbi-service-unit</packaging>
- <name>ServiceMix :: Samples :: Loan Broker :: LwContainer</name>
+ <name>ServiceMix :: Samples :: Loan Broker :: Bean</name>
<dependencies>
<dependency>
<groupId>org.apache.servicemix</groupId>
- <artifactId>servicemix-lwcontainer</artifactId>
- <version>3.2-incubating-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>org.apache.servicemix</groupId>
- <artifactId>servicemix-components</artifactId>
+ <artifactId>servicemix-bean</artifactId>
<version>3.2-incubating-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.servicemix</groupId>
<artifactId>servicemix-core</artifactId>
<version>3.2-incubating-SNAPSHOT</version>
- <scope>provided</scope>
- </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>
Modified: incubator/servicemix/trunk/samples/loan-broker/loan-broker-bean-su/src/main/java/loanbroker/Bank.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/loan-broker/loan-broker-bean-su/src/main/java/loanbroker/Bank.java?view=diff&rev=551158&r1=548099&r2=551158
==============================================================================
--- incubator/servicemix/trunk/samples/loan-broker/loan-broker-bean-su/src/main/java/loanbroker/Bank.java (original)
+++ incubator/servicemix/trunk/samples/loan-broker/loan-broker-bean-su/src/main/java/loanbroker/Bank.java Wed Jun 27 06:22:11 2007
@@ -16,23 +16,21 @@
*/
package loanbroker;
+import javax.annotation.Resource;
+import javax.jbi.messaging.DeliveryChannel;
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 class Bank implements MessageExchangeListener {
- public Bank(int number) {
- setService(new QName("urn:logicblaze:soa:bank", "Bank" + number));
- setEndpoint("bank");
- }
+ @Resource
+ DeliveryChannel channel;
public void onMessageExchange(MessageExchange exchange) throws MessagingException {
InOut inOut = (InOut) exchange;
@@ -41,14 +39,16 @@
} else if (inOut.getStatus() == ExchangeStatus.ERROR) {
return;
}
- System.err.println(getService().getLocalPart() + " requested");
+ System.err.println(inOut.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);
+ inOut.setOutMessage(answer);
+ channel.send(inOut);
} catch (Exception e) {
- throw new MessagingException(e);
+ inOut.setError(e);
+ channel.send(inOut);
}
}
-}
\ No newline at end of file
+}
Added: incubator/servicemix/trunk/samples/loan-broker/loan-broker-bean-su/src/main/resources/xbean.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/loan-broker/loan-broker-bean-su/src/main/resources/xbean.xml?view=auto&rev=551158
==============================================================================
--- incubator/servicemix/trunk/samples/loan-broker/loan-broker-bean-su/src/main/resources/xbean.xml (added)
+++ incubator/servicemix/trunk/samples/loan-broker/loan-broker-bean-su/src/main/resources/xbean.xml Wed Jun 27 06:22:11 2007
@@ -0,0 +1,53 @@
+<?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:bean="http://servicemix.apache.org/bean/1.0"
+ xmlns:bk="urn:logicblaze:soa:bank">
+
+ <bean:endpoint service="bk:Bank1" endpoint="bank">
+ <bean:bean>
+ <bean class="loanbroker.Bank" />
+ </bean:bean>
+ </bean:endpoint>
+
+ <bean:endpoint service="bk:Bank2" endpoint="bank">
+ <bean:bean>
+ <bean class="loanbroker.Bank" />
+ </bean:bean>
+ </bean:endpoint>
+
+ <bean:endpoint service="bk:Bank3" endpoint="bank">
+ <bean:bean>
+ <bean class="loanbroker.Bank" />
+ </bean:bean>
+ </bean:endpoint>
+
+ <bean:endpoint service="bk:Bank4" endpoint="bank">
+ <bean:bean>
+ <bean class="loanbroker.Bank" />
+ </bean:bean>
+ </bean:endpoint>
+
+ <bean:endpoint service="bk:Bank5" endpoint="bank">
+ <bean:bean>
+ <bean class="loanbroker.Bank" />
+ </bean:bean>
+ </bean:endpoint>
+
+</beans>
Propchange: incubator/servicemix/trunk/samples/loan-broker/loan-broker-bean-su/src/main/resources/xbean.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/servicemix/trunk/samples/loan-broker/loan-broker-bean-su/src/main/resources/xbean.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: incubator/servicemix/trunk/samples/loan-broker/loan-broker-bean-su/src/main/resources/xbean.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Propchange: incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Wed Jun 27 06:22:11 2007
@@ -0,0 +1,2 @@
+.classpath
+.project
Added: incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/pom.xml?view=auto&rev=551158
==============================================================================
--- incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/pom.xml (added)
+++ incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/pom.xml Wed Jun 27 06:22:11 2007
@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+<!--
+
+ 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.
+-->
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.servicemix.samples</groupId>
+ <artifactId>loan-broker</artifactId>
+ <version>3.2-incubating-SNAPSHOT</version>
+ </parent>
+
+ <groupId>org.apache.servicemix.samples.loan-broker</groupId>
+ <artifactId>loan-broker-drools-su</artifactId>
+ <packaging>jbi-service-unit</packaging>
+ <name>ServiceMix :: Samples :: Loan Broker :: Drools</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.servicemix</groupId>
+ <artifactId>servicemix-drools</artifactId>
+ <version>3.2-incubating-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.servicemix</groupId>
+ <artifactId>servicemix-core</artifactId>
+ <version>3.2-incubating-SNAPSHOT</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.servicemix</groupId>
+ <artifactId>servicemix-common</artifactId>
+ <version>3.2-incubating-SNAPSHOT</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.drools</groupId>
+ <artifactId>drools-compiler</artifactId>
+ <version>3.0.3</version>
+ <scope>test</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>jung</groupId>
+ <artifactId>jung</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>xstream</groupId>
+ <artifactId>xstream</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>xpp3</groupId>
+ <artifactId>xpp3</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-jci-janino</artifactId>
+ </exclusion>
+ </exclusions>
+ </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-drools-su/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/pom.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/main/resources/credit-agency.drl
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/main/resources/credit-agency.drl?view=auto&rev=551158
==============================================================================
--- incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/main/resources/credit-agency.drl (added)
+++ incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/main/resources/credit-agency.drl Wed Jun 27 06:22:11 2007
@@ -0,0 +1,59 @@
+/*
+ * 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 org.apache.servicemix.drools
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.servicemix.drools.model.Exchange;
+
+global org.apache.servicemix.drools.model.JbiHelper jbi;
+
+rule UnkownOperation
+ when
+ me : Exchange( status == Exchange.ACTIVE, in : in != null,
+ operation != "{urn:logicblaze:soa:creditagency}getCreditHistoryLength",
+ operation != "{urn:logicblaze:soa:creditagency}getCreditScore" )
+ then
+ jbi.fault("<UnknownOperation xmlns='urn:logicblaze:soa:creditagency'/>");
+end
+
+/*
+rule BadSSN
+ when
+ me : Exchange( status == Exchange.ACTIVE, in : in != null )
+ eval( in.xpath("/*:ssn/text() <= 0") )
+ then
+ jbi.fault("<InvalidSSN xmlns='urn:logicblaze:soa:creditagency'><ssn>" + x + </ssn></InvalidSSN>");
+end
+*/
+
+rule CreditHistory
+ when
+ me : Exchange( status == Exchange.ACTIVE, in : in != null,
+ operation == "{urn:logicblaze:soa:creditagency}getCreditHistoryLength" )
+ then
+ jbi.answer("<getCreditHistoryLengthResponse xmlns='urn:logicblaze:soa:creditagency'><length>" + 100 + "</length></getCreditHistoryLengthResponse>");
+end
+
+rule CreditScore
+ when
+ me : Exchange( status == Exchange.ACTIVE, in : in != null,
+ operation == "{urn:logicblaze:soa:creditagency}getCreditScore" )
+ then
+ jbi.answer("<getCreditScoreResponse xmlns='urn:logicblaze:soa:creditagency'><score>" + 1000 + "</score></getCreditScoreResponse>");
+end
+
Added: incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/main/resources/xbean.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/main/resources/xbean.xml?view=auto&rev=551158
==============================================================================
--- incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/main/resources/xbean.xml (added)
+++ incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/main/resources/xbean.xml Wed Jun 27 06:22:11 2007
@@ -0,0 +1,35 @@
+<?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:drools="http://servicemix.apache.org/drools/1.0"
+ xmlns:ca="urn:logicblaze:soa:creditagency">
+
+ <drools:endpoint service="ca:CreditAgencyService"
+ endpoint="agency"
+ ruleBaseResource="classpath:credit-agency.drl"
+ namespaceContext="#nsContext" />
+
+
+ <drools:namespace-context id="nsContext">
+ <drools:namespaces>
+ <drools:namespace prefix="ca">urn:logicblaze:soa:creditagency</drools:namespace>
+ </drools:namespaces>
+ </drools:namespace-context>
+
+</beans>
Propchange: incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/main/resources/xbean.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/main/resources/xbean.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/main/resources/xbean.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/test/java/loanbroker/CreditAgencyTest.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/test/java/loanbroker/CreditAgencyTest.java?view=auto&rev=551158
==============================================================================
--- incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/test/java/loanbroker/CreditAgencyTest.java (added)
+++ incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/test/java/loanbroker/CreditAgencyTest.java Wed Jun 27 06:22:11 2007
@@ -0,0 +1,78 @@
+/*
+ * 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.InOnly;
+import javax.jbi.messaging.InOut;
+import javax.xml.namespace.QName;
+
+import org.w3c.dom.Element;
+
+import org.apache.servicemix.client.DefaultServiceMixClient;
+import org.apache.servicemix.client.ServiceMixClient;
+import org.apache.servicemix.drools.DroolsComponent;
+import org.apache.servicemix.drools.DroolsEndpoint;
+import org.apache.servicemix.jbi.container.JBIContainer;
+import org.apache.servicemix.jbi.jaxp.SourceTransformer;
+import org.apache.servicemix.jbi.jaxp.StringSource;
+import org.apache.servicemix.tck.ReceiverComponent;
+import org.springframework.core.io.ClassPathResource;
+
+import junit.framework.TestCase;
+
+public class CreditAgencyTest extends TestCase {
+
+ private JBIContainer jbi;
+ private DroolsComponent drools;
+ private ServiceMixClient client;
+
+ protected void setUp() throws Exception {
+ super.setUp();
+ jbi = new JBIContainer();
+ jbi.setEmbedded(true);
+ jbi.init();
+ client = new DefaultServiceMixClient(jbi);
+ }
+
+ protected void tearDown() throws Exception {
+ jbi.shutDown();
+ }
+
+ public void testCreditHistory() throws Exception {
+ drools = new DroolsComponent();
+ DroolsEndpoint endpoint = new DroolsEndpoint(drools.getServiceUnit(),
+ new QName("drools"), "endpoint");
+ endpoint.setRuleBaseResource(new ClassPathResource("credit-agency.drl"));
+ drools.setEndpoints(new DroolsEndpoint[] {endpoint });
+ jbi.activateComponent(drools, "servicemix-drools");
+
+ jbi.start();
+
+ InOut me = client.createInOutExchange();
+ me.setService(new QName("drools"));
+ me.setOperation(new QName("urn:logicblaze:soa:creditagency", "getCreditHistoryLength"));
+ me.getInMessage().setContent(new StringSource("<getCreditHistoryLengthRequest xmlns='urn:logicblaze:soa:creditagency'><ssn>123456</ssn></getCreditHistoryLengthRequest>"));
+ client.sendSync(me);
+ Element e = new SourceTransformer().toDOMElement(me.getOutMessage());
+ assertEquals("getCreditHistoryLengthResponse", e.getLocalName());
+ client.done(me);
+
+ Thread.sleep(50);
+ }
+
+}
Propchange: incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/test/java/loanbroker/CreditAgencyTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/test/java/loanbroker/CreditAgencyTest.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: incubator/servicemix/trunk/samples/loan-broker/loan-broker-drools-su/src/test/java/loanbroker/CreditAgencyTest.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
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=551158&r1=551157&r2=551158
==============================================================================
--- incubator/servicemix/trunk/samples/loan-broker/loan-broker-sa/pom.xml (original)
+++ incubator/servicemix/trunk/samples/loan-broker/loan-broker-sa/pom.xml Wed Jun 27 06:22:11 2007
@@ -40,7 +40,12 @@
</dependency>
<dependency>
<groupId>org.apache.servicemix.samples.loan-broker</groupId>
- <artifactId>loan-broker-lw-su</artifactId>
+ <artifactId>loan-broker-bean-su</artifactId>
+ <version>3.2-incubating-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.servicemix.samples.loan-broker</groupId>
+ <artifactId>loan-broker-drools-su</artifactId>
<version>3.2-incubating-SNAPSHOT</version>
</dependency>
<dependency>
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=551158&r1=551157&r2=551158
==============================================================================
--- incubator/servicemix/trunk/samples/loan-broker/pom.xml (original)
+++ incubator/servicemix/trunk/samples/loan-broker/pom.xml Wed Jun 27 06:22:11 2007
@@ -83,7 +83,8 @@
</repositories>
<modules>
- <module>loan-broker-lw-su</module>
+ <module>loan-broker-bean-su</module>
+ <module>loan-broker-drools-su</module>
<module>loan-broker-ode-su</module>
<module>loan-broker-jms-su</module>
<module>loan-broker-sa</module>