Author: ningjiang
Date: Mon Jun 2 20:59:26 2008
New Revision: 662632
URL: http://svn.apache.org/viewvc?rev=662632&view=rev
Log:
CAMEL-556 Implement the loan broker example with camel-cxf component
Added:
activemq/camel/trunk/examples/camel-example-loan-broker/README.txt (with
props)
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/BankResponseAggregationStrategy.java
(with props)
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/Client.java
(with props)
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/Constants.java
(with props)
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/LoanBroker.java
(with props)
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/LoanBrokerWS.java
(with props)
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/bank/
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/bank/Bank.java
(with props)
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/bank/BankQuote.java
(with props)
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/bank/BankServer.java
(with props)
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/bank/BankWS.java
(with props)
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/credit/
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/credit/CreditAgency.java
(with props)
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/credit/CreditAgencyClient.java
(with props)
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/credit/CreditAgencyServer.java
(with props)
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/credit/CreditAgencyWS.java
(with props)
Modified:
activemq/camel/trunk/examples/camel-example-loan-broker/pom.xml
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/resources/log4j.properties
activemq/camel/trunk/examples/camel-example-spring-jms/README.txt
Added: activemq/camel/trunk/examples/camel-example-loan-broker/README.txt
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-loan-broker/README.txt?rev=662632&view=auto
==============================================================================
--- activemq/camel/trunk/examples/camel-example-loan-broker/README.txt (added)
+++ activemq/camel/trunk/examples/camel-example-loan-broker/README.txt Mon Jun
2 20:59:26 2008
@@ -0,0 +1,42 @@
+Loan Broker Example
+====================
+
+This example shows how to use Camel to implement the EIP's loan broker example.
+It can be run using Maven.
+
+The example has two version, one is queue version which leverages the message
+queue to combinate the credit agency and bank loan quote processing and it
+uses the InOnly exchage pattern; the other is web service version which shows
+how to integrate the credit agency and bank web services together and it uses
+the InOut exchange pattern.
+
+For the latest & greatest documentation on how to use this example please see:
+ http://cwiki.apache.org/CAMEL/example-loan-broker.html
+
+The example of queue version should run if you type
+ mvn exec:java -PQueue.LoanBroker
+ mvn exec:java -PQueue.Client
+
+The exmple of web service version
+ mvn exec:java -PWS.LoanBroker
+ mvn exec:java -PWS.Client
+
+To stop the example hit ctrl + c
+
+To use log4j as the logging framework add this to the pom.xml:
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ </dependency>
+and log4j.properties is located in src/main/resources
+
+If you hit an problems please let us know on the Camel Forums
+ http://activemq.apache.org/camel/discussion-forums.html
+
+Please help us make Apache Camel better - we appreciate any feedback you may
+have. Enjoy!
+
+------------------------
+The Camel riders!
+
+
Propchange: activemq/camel/trunk/examples/camel-example-loan-broker/README.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: activemq/camel/trunk/examples/camel-example-loan-broker/README.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Modified: activemq/camel/trunk/examples/camel-example-loan-broker/pom.xml
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-loan-broker/pom.xml?rev=662632&r1=662631&r2=662632&view=diff
==============================================================================
--- activemq/camel/trunk/examples/camel-example-loan-broker/pom.xml (original)
+++ activemq/camel/trunk/examples/camel-example-loan-broker/pom.xml Mon Jun 2
20:59:26 2008
@@ -51,7 +51,10 @@
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-core</artifactId>
</dependency>
-
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ </dependency>
</dependencies>
<build>
@@ -89,6 +92,18 @@
<target.main.class>org.apache.camel.loanbroker.queue.version.Client</target.main.class>
</properties>
</profile>
+ <profile>
+ <id>WS.LoanBroker</id>
+ <properties>
+
<target.main.class>org.apache.camel.loanbroker.webservice.version.LoanBroker</target.main.class>
+ </properties>
+ </profile>
+ <profile>
+ <id>WS.Client</id>
+ <properties>
+
<target.main.class>org.apache.camel.loanbroker.webservice.version.Client</target.main.class>
+ </properties>
+ </profile>
</profiles>
-
+
</project>
Added:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/BankResponseAggregationStrategy.java
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/BankResponseAggregationStrategy.java?rev=662632&view=auto
==============================================================================
---
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/BankResponseAggregationStrategy.java
(added)
+++
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/BankResponseAggregationStrategy.java
Mon Jun 2 20:59:26 2008
@@ -0,0 +1,55 @@
+/**
+ * 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.camel.loanbroker.webservice.version;
+
+import org.apache.camel.Exchange;
+import org.apache.camel.loanbroker.webservice.version.bank.BankQuote;
+import org.apache.camel.processor.aggregate.AggregationStrategy;
+/**
+ *
+ */
+public class BankResponseAggregationStrategy implements AggregationStrategy {
+
+ public static final String BANK_QUOTE = "bank_quote";
+
+ public Exchange aggregate(Exchange oldExchange, Exchange newExchange) {
+ BankQuote oldQuote = oldExchange.getProperty(BANK_QUOTE,
BankQuote.class);
+ if (oldQuote == null) {
+ Object[] oldResult = (Object[])oldExchange.getOut().getBody();
+ oldQuote = (BankQuote) oldResult[0];
+ }
+ Object[] newResult = (Object[])newExchange.getOut().getBody();
+ BankQuote newQuote = (BankQuote) newResult[0];
+ Exchange result = null;
+ BankQuote bankQuote;
+
+ if (newQuote.getRate() >= oldQuote.getRate()) {
+ result = oldExchange;
+ bankQuote = oldQuote;
+ } else {
+ result = newExchange;
+ bankQuote = newQuote;
+ }
+ // Copy the bank response together
+ result.setProperty(BANK_QUOTE, bankQuote);
+ result.getOut().setBody("The best rate is " + bankQuote.toString());
+
+ return result;
+
+ }
+
+}
Propchange:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/BankResponseAggregationStrategy.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/BankResponseAggregationStrategy.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/Client.java
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/Client.java?rev=662632&view=auto
==============================================================================
---
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/Client.java
(added)
+++
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/Client.java
Mon Jun 2 20:59:26 2008
@@ -0,0 +1,57 @@
+/**
+ * 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.camel.loanbroker.webservice.version;
+
+
+import org.apache.cxf.BusFactory;
+import org.apache.cxf.frontend.ClientFactoryBean;
+import org.apache.cxf.frontend.ClientProxyFactoryBean;
+
+/**
+ * The client that will invoke the loan broker service
+ */
+public class Client {
+
+ public LoanBrokerWS getProxy(String address) {
+ ClientProxyFactoryBean proxyFactory = new ClientProxyFactoryBean();
+ ClientFactoryBean clientBean = proxyFactory.getClientFactoryBean();
+ clientBean.setAddress(address);
+ clientBean.setServiceClass(LoanBrokerWS.class);
+ clientBean.setBus(BusFactory.getDefaultBus());
+ return (LoanBrokerWS) proxyFactory.create();
+ }
+
+ public static void main(String[] args) {
+ Client client = new Client();
+ String result = null;
+ LoanBrokerWS loanBroker =
client.getProxy(Constants.LOANBROKER_ADDRESS);
+ long startTime = System.currentTimeMillis();
+ result = loanBroker.getLoanQuote("Sequential SSN", 1000.54, 10);
+ long endTime = System.currentTimeMillis();
+ System.out.println("It takes " + (endTime - startTime) + "
milliseconds to call the sequential loan broker service");
+ System.out.println(result);
+
+ LoanBrokerWS paralleLoanBroker =
client.getProxy(Constants.PARALLEL_LOANBROKER_ADDRESS);
+ startTime = System.currentTimeMillis();
+ result = paralleLoanBroker.getLoanQuote("Parallel SSN", 1000.54, 10);
+ endTime = System.currentTimeMillis();
+ System.out.println("It takes " + (endTime - startTime) + "
milliseconds to call the parallel loan broker service");
+ System.out.println(result);
+ }
+
+}
Propchange:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/Client.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/Client.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/Constants.java
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/Constants.java?rev=662632&view=auto
==============================================================================
---
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/Constants.java
(added)
+++
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/Constants.java
Mon Jun 2 20:59:26 2008
@@ -0,0 +1,41 @@
+/**
+ * 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.camel.loanbroker.webservice.version;
+
+public interface Constants {
+
+ String LOANBROKER_ADDRESS = "http://localhost:9008/loanBroker";
+ String PARALLEL_LOANBROKER_ADDRESS =
"http://localhost:9008/parallelLoanBroker";
+ String CREDITAGENCY_ADDRESS = "http://localhost:9006/creditAgency";
+ String BANK1_ADDRESS = "http://localhost:9001/bank1";
+ String BANK2_ADDRESS = "http://localhost:9002/bank2";
+ String BANK3_ADDRESS = "http://localhost:9003/bank3";
+
+ String LOANBROKER_SERVICE_CLASS =
"org.apache.camel.loanbroker.webservice.version.LoanBrokerWS";
+ String CREDITAGENCY_SERVICE_CLASS =
"org.apache.camel.loanbroker.webservice.version.credit.CreditAgencyWS";
+ String BANK_SERVICE_CLASS =
"org.apache.camel.loanbroker.webservice.version.bank.BankWS";
+
+ String LOANBROKER_URI = "cxf://" + LOANBROKER_ADDRESS + "?serviceClass=" +
LOANBROKER_SERVICE_CLASS;
+ String PARALLEL_LOANBROKER_URI = "cxf://" + PARALLEL_LOANBROKER_ADDRESS +
"?serviceClass=" + LOANBROKER_SERVICE_CLASS;
+ String CREDITAGNCY_URI = "cxf://" + CREDITAGENCY_ADDRESS +
"?serviceClass=" + CREDITAGENCY_SERVICE_CLASS;
+ String BANK1_URI = "cxf://" + BANK1_ADDRESS + "?serviceClass=" +
BANK_SERVICE_CLASS;
+ String BANK2_URI = "cxf://" + BANK2_ADDRESS + "?serviceClass=" +
BANK_SERVICE_CLASS;
+ String BANK3_URI = "cxf://" + BANK3_ADDRESS + "?serviceClass=" +
BANK_SERVICE_CLASS;
+
+
+
+}
Propchange:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/Constants.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/Constants.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/LoanBroker.java
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/LoanBroker.java?rev=662632&view=auto
==============================================================================
---
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/LoanBroker.java
(added)
+++
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/LoanBroker.java
Mon Jun 2 20:59:26 2008
@@ -0,0 +1,134 @@
+/**
+ * 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.camel.loanbroker.webservice.version;
+
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.jms.ConnectionFactory;
+
+import org.apache.activemq.ActiveMQConnectionFactory;
+import org.apache.camel.CamelContext;
+import org.apache.camel.Exchange;
+import org.apache.camel.Message;
+import org.apache.camel.Processor;
+import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.component.cxf.CxfConstants;
+import org.apache.camel.component.jms.JmsComponent;
+
+import org.apache.camel.impl.DefaultCamelContext;
+import org.apache.camel.loanbroker.webservice.version.bank.BankServer;
+import
org.apache.camel.loanbroker.webservice.version.credit.CreditAgencyServer;
+import org.apache.camel.loanbroker.webservice.version.credit.CreditAgencyWS;
+import org.apache.camel.processor.aggregate.UseLatestAggregationStrategy;
+import org.apache.camel.spring.Main;
+import org.apache.cxf.BusFactory;
+import org.apache.cxf.frontend.ClientFactoryBean;
+import org.apache.cxf.frontend.ClientProxyFactoryBean;
+import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
+
+
+
+/**
+ * The LoanBroker is a RouteBuilder which builds the whole loan message
routing rules
+ *
+ *
+ */
+public class LoanBroker extends RouteBuilder {
+
+ /**
+ * A main() so we can easily run these routing rules in our IDE
+ * @throws Exception
+ */
+ public static void main(String... args) throws Exception {
+ CamelContext context = new DefaultCamelContext();
+ CreditAgencyServer creditAgencyServer = new CreditAgencyServer();
+ creditAgencyServer.start();
+ BankServer bankServer = new BankServer();
+ bankServer.start();
+
+ context.addRoutes(new LoanBroker());
+ context.start();
+
+ // Start the loan broker
+ Thread.sleep(5 * 60 * 1000);
+ context.stop();
+ Thread.sleep(1000);
+ bankServer.stop();
+ creditAgencyServer.stop();
+ }
+
+ /**
+ * Lets configure the Camel routing rules using Java code...
+ */
+ public void configure() {
+ // Option 1 to call the bank endpoints sequentially
+ from(Constants.LOANBROKER_URI).process(new
CreditScoreProcessor(Constants.CREDITAGENCY_ADDRESS))
+ .multicast(new
BankResponseAggregationStrategy()).to(Constants.BANK1_URI, Constants.BANK2_URI,
Constants.BANK3_URI);
+
+ // Option 2 to call the bank endpoints parallelly
+ from(Constants.PARALLEL_LOANBROKER_URI).process(new
CreditScoreProcessor(Constants.CREDITAGENCY_ADDRESS))
+ .multicast(new BankResponseAggregationStrategy(),
true).to(Constants.BANK1_URI, Constants.BANK2_URI, Constants.BANK3_URI);
+
+ }
+
+ class CreditScoreProcessor implements Processor {
+ private String creditAgencyAddress;
+ private CreditAgencyWS proxy;
+
+ public CreditScoreProcessor(String address) {
+ creditAgencyAddress = address;
+ proxy = getProxy();
+ }
+
+ private CreditAgencyWS getProxy() {
+ JaxWsProxyFactoryBean proxyFactory = new JaxWsProxyFactoryBean();
+ ClientFactoryBean clientBean = proxyFactory.getClientFactoryBean();
+ clientBean.setAddress(Constants.CREDITAGENCY_ADDRESS);
+ clientBean.setServiceClass(CreditAgencyWS.class);
+ clientBean.setBus(BusFactory.getDefaultBus());
+ return (CreditAgencyWS)proxyFactory.create();
+ }
+
+ @SuppressWarnings("unchecked")
+ public void process(Exchange exchange) throws Exception {
+ Message requestMessage = exchange.getIn();
+ List<Object> request = (List<Object>) requestMessage.getBody();
+
+ String ssn = (String)request.get(0);
+ Double amount = (Double) request.get(1);
+ Integer loanDuriation = (Integer)request.get(2);
+ int historyLength = proxy.getCreditHistoryLength(ssn);
+ int score = proxy.getCreditScore(ssn);
+ //exchange.getOut().setBody("The ssn's historyLength is " +
historyLength + " score is " + score);
+
+ // create the invocation message for Bank client
+ List<Object> bankRequest = new ArrayList<Object>();
+ bankRequest.add(ssn);
+ bankRequest.add(amount);
+ bankRequest.add(loanDuriation);
+ bankRequest.add(historyLength);
+ bankRequest.add(score);
+ exchange.getOut().setBody(bankRequest);
+ exchange.getOut().setHeader(CxfConstants.OPERATION_NAME,
"getQuote");
+ }
+
+ }
+
+
+}
Propchange:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/LoanBroker.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/LoanBroker.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/LoanBrokerWS.java
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/LoanBrokerWS.java?rev=662632&view=auto
==============================================================================
---
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/LoanBrokerWS.java
(added)
+++
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/LoanBrokerWS.java
Mon Jun 2 20:59:26 2008
@@ -0,0 +1,23 @@
+/**
+ * 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.camel.loanbroker.webservice.version;
+
+public interface LoanBrokerWS {
+
+ String getLoanQuote(String ssn, Double loanAmount, Integer loanDuriation);
+
+}
Propchange:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/LoanBrokerWS.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/LoanBrokerWS.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/bank/Bank.java
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/bank/Bank.java?rev=662632&view=auto
==============================================================================
---
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/bank/Bank.java
(added)
+++
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/bank/Bank.java
Mon Jun 2 20:59:26 2008
@@ -0,0 +1,46 @@
+/**
+ * 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.camel.loanbroker.webservice.version.bank;
+
+public class Bank implements BankWS {
+ private String bankName;
+ private double primeRate;
+
+ public Bank(String name) {
+ bankName = name;
+ primeRate = 3.5;
+ }
+
+ public String getBankName() {
+ return bankName;
+ }
+
+ public BankQuote getQuote(String ssn, double loanAmount, int loanDuration,
int creditHistory, int creditScore) {
+ Double rate = primeRate + (double)(loanDuration / 12) / 10 +
(double)(Math.random() * 10) / 10;
+ // Wait for a while
+ try {
+ Thread.sleep(1000);
+ } catch (InterruptedException e) {
+ // do nothing here
+ }
+ BankQuote result = new BankQuote(bankName, ssn, rate);
+ return result;
+ }
+
+
+
+}
Propchange:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/bank/Bank.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/bank/Bank.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/bank/BankQuote.java
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/bank/BankQuote.java?rev=662632&view=auto
==============================================================================
---
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/bank/BankQuote.java
(added)
+++
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/bank/BankQuote.java
Mon Jun 2 20:59:26 2008
@@ -0,0 +1,62 @@
+/**
+ * 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.camel.loanbroker.webservice.version.bank;
+
+public class BankQuote {
+ private String bankName;
+ private String ssn;
+ private Double rate;
+
+ public BankQuote() {
+
+ }
+
+ public BankQuote(String name, String s, Double r) {
+ bankName = name;
+ ssn = s;
+ rate = r;
+ }
+
+ public void setBankName(String name) {
+ bankName = name;
+ }
+
+ public void setSsn(String s) {
+ ssn = s;
+ }
+
+ public void setRate(Double r) {
+ rate = r;
+ }
+
+ public String getBankName() {
+ return bankName;
+ }
+
+ public String getSsn() {
+ return ssn;
+ }
+
+ public Double getRate() {
+ return rate;
+ }
+
+ public String toString() {
+ return "[ ssn:" + ssn + " bank:" + bankName + " rate:" + rate + " ]";
+ }
+
+}
Propchange:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/bank/BankQuote.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/bank/BankQuote.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/bank/BankServer.java
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/bank/BankServer.java?rev=662632&view=auto
==============================================================================
---
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/bank/BankServer.java
(added)
+++
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/bank/BankServer.java
Mon Jun 2 20:59:26 2008
@@ -0,0 +1,68 @@
+/**
+ * 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.camel.loanbroker.webservice.version.bank;
+
+import javax.xml.ws.Endpoint;
+
+import org.apache.camel.loanbroker.webservice.version.Constants;
+
+
+
+public class BankServer {
+
+ Endpoint endpoint1;
+ Endpoint endpoint2;
+ Endpoint endpoint3;
+
+ public void start() throws Exception {
+ System.out.println("Starting Bank Server");
+ Object bank1 = new Bank("bank1");
+ Object bank2 = new Bank("bank2");
+ Object bank3 = new Bank("bank3");
+
+ endpoint1 = Endpoint.publish(Constants.BANK1_ADDRESS, bank1);
+ endpoint2 = Endpoint.publish(Constants.BANK2_ADDRESS, bank2);
+ endpoint3 = Endpoint.publish(Constants.BANK3_ADDRESS, bank3);
+
+
+ }
+
+ public void stop() {
+ if (endpoint1 != null) {
+ endpoint1.stop();
+ }
+ if (endpoint2 != null) {
+ endpoint2.stop();
+ }
+ if (endpoint3 != null) {
+ endpoint3.stop();
+ }
+ }
+
+
+ public static void main(String args[]) throws Exception {
+ BankServer server = new BankServer();
+ System.out.println("Server ready...");
+ server.start();
+ Thread.sleep(5 * 60 * 1000);
+ System.out.println("Server exiting");
+ server.stop();
+ System.exit(0);
+ }
+
+}
Propchange:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/bank/BankServer.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/bank/BankServer.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/bank/BankWS.java
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/bank/BankWS.java?rev=662632&view=auto
==============================================================================
---
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/bank/BankWS.java
(added)
+++
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/bank/BankWS.java
Mon Jun 2 20:59:26 2008
@@ -0,0 +1,29 @@
+/**
+ * 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.camel.loanbroker.webservice.version.bank;
+
+import javax.jws.WebService;
+
[EMAIL PROTECTED]
+public interface BankWS {
+
+ String getBankName();
+
+
+ BankQuote getQuote(String ssn, double loanAmount, int loanDuration, int
creditHistory, int creditScore);
+
+}
Propchange:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/bank/BankWS.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/bank/BankWS.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/credit/CreditAgency.java
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/credit/CreditAgency.java?rev=662632&view=auto
==============================================================================
---
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/credit/CreditAgency.java
(added)
+++
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/credit/CreditAgency.java
Mon Jun 2 20:59:26 2008
@@ -0,0 +1,31 @@
+/**
+ * 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.camel.loanbroker.webservice.version.credit;
+
+public class CreditAgency implements CreditAgencyWS {
+
+ public int getCreditHistoryLength(String ssn) {
+ int creditScore = (int)(Math.random() * 600 + 300);
+ return creditScore;
+ }
+
+ public int getCreditScore(String ssn) {
+ int creditHistoryLength = (int)(Math.random() * 19 + 1);
+ return creditHistoryLength;
+ }
+
+}
Propchange:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/credit/CreditAgency.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/credit/CreditAgency.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/credit/CreditAgencyClient.java
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/credit/CreditAgencyClient.java?rev=662632&view=auto
==============================================================================
---
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/credit/CreditAgencyClient.java
(added)
+++
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/credit/CreditAgencyClient.java
Mon Jun 2 20:59:26 2008
@@ -0,0 +1,43 @@
+/**
+ * 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.camel.loanbroker.webservice.version.credit;
+
+import org.apache.camel.loanbroker.webservice.version.Constants;
+import org.apache.cxf.BusFactory;
+import org.apache.cxf.frontend.ClientFactoryBean;
+import org.apache.cxf.frontend.ClientProxyFactoryBean;
+import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
+
+public class CreditAgencyClient {
+
+ public CreditAgencyWS getProxy() {
+ JaxWsProxyFactoryBean proxyFactory = new JaxWsProxyFactoryBean();
+ ClientFactoryBean clientBean = proxyFactory.getClientFactoryBean();
+ clientBean.setAddress(Constants.CREDITAGENCY_ADDRESS);
+ clientBean.setServiceClass(CreditAgencyWS.class);
+ clientBean.setBus(BusFactory.getDefaultBus());
+ return (CreditAgencyWS)proxyFactory.create();
+ }
+
+ public static void main(String[] args) {
+ CreditAgencyClient client = new CreditAgencyClient();
+ CreditAgencyWS proxy = client.getProxy();
+ System.out.println("get credit history length" +
proxy.getCreditHistoryLength("ssn"));
+ System.out.println("get credit score" + proxy.getCreditScore("ssn"));
+ }
+
+}
Propchange:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/credit/CreditAgencyClient.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/credit/CreditAgencyClient.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/credit/CreditAgencyServer.java
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/credit/CreditAgencyServer.java?rev=662632&view=auto
==============================================================================
---
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/credit/CreditAgencyServer.java
(added)
+++
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/credit/CreditAgencyServer.java
Mon Jun 2 20:59:26 2008
@@ -0,0 +1,51 @@
+/**
+ * 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.camel.loanbroker.webservice.version.credit;
+
+import javax.xml.ws.Endpoint;
+
+import org.apache.camel.loanbroker.webservice.version.Constants;
+import org.apache.camel.loanbroker.webservice.version.bank.Bank;
+import org.apache.camel.loanbroker.webservice.version.bank.BankServer;
+
+public class CreditAgencyServer {
+ private Endpoint endpoint;
+
+ public void start() throws Exception {
+ System.out.println("Starting Server");
+ Object creditAgency = new CreditAgency();
+ endpoint = Endpoint.publish(Constants.CREDITAGENCY_ADDRESS,
creditAgency);
+ }
+
+ public void stop() {
+ if (endpoint != null) {
+ endpoint.stop();
+ }
+ }
+
+ public static void main(String args[]) throws Exception {
+ CreditAgencyServer server = new CreditAgencyServer();
+ System.out.println("Server ready...");
+ server.start();
+ Thread.sleep(5 * 60 * 1000);
+ System.out.println("Server exiting");
+ server.stop();
+ System.exit(0);
+ }
+
+}
Propchange:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/credit/CreditAgencyServer.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/credit/CreditAgencyServer.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/credit/CreditAgencyWS.java
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/credit/CreditAgencyWS.java?rev=662632&view=auto
==============================================================================
---
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/credit/CreditAgencyWS.java
(added)
+++
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/credit/CreditAgencyWS.java
Mon Jun 2 20:59:26 2008
@@ -0,0 +1,28 @@
+/**
+ * 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.camel.loanbroker.webservice.version.credit;
+
+import javax.jws.WebService;
+
[EMAIL PROTECTED]
+public interface CreditAgencyWS {
+
+ int getCreditScore(String ssn);
+
+ int getCreditHistoryLength(String ssn);
+
+}
Propchange:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/credit/CreditAgencyWS.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/webservice/version/credit/CreditAgencyWS.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/resources/log4j.properties
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-loan-broker/src/main/resources/log4j.properties?rev=662632&r1=662631&r2=662632&view=diff
==============================================================================
---
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/resources/log4j.properties
(original)
+++
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/resources/log4j.properties
Mon Jun 2 20:59:26 2008
@@ -18,7 +18,7 @@
#
# The logging properties used for eclipse testing, We want to see debug output
on the console.
#
-log4j.rootLogger=INFO, out
+log4j.rootLogger=WARN, out
# uncomment the following line to turn on Camel debugging
#log4j.logger.org.apache.camel=DEBUG
Modified: activemq/camel/trunk/examples/camel-example-spring-jms/README.txt
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-spring-jms/README.txt?rev=662632&r1=662631&r2=662632&view=diff
==============================================================================
--- activemq/camel/trunk/examples/camel-example-spring-jms/README.txt (original)
+++ activemq/camel/trunk/examples/camel-example-spring-jms/README.txt Mon Jun
2 20:59:26 2008
@@ -2,7 +2,7 @@
====================
This example shows how to work with the Camel-JMS Component.
-It can be run using Maven or Ant.
+It can be run using Maven.
The example consumes messages from a queue and invoke the bean
with the received message
@@ -22,7 +22,7 @@
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</dependency>
-and log4j.properties is located in src/main/resources
+and log4j.properties is located in src/main/resources
If you hit an problems please let us know on the Camel Forums
http://activemq.apache.org/camel/discussion-forums.html