Author: gnodet
Date: Fri May 4 05:40:53 2007
New Revision: 535211
URL: http://svn.apache.org/viewvc?view=rev&rev=535211
Log:
SM-946: Upgrade loan-broker example to use Apache Ode
Added:
incubator/servicemix/branches/servicemix-3.1/samples/loan-broker/build.xml
(with props)
incubator/servicemix/branches/servicemix-3.1/samples/loan-broker/src/main/java/
- copied from r535118,
incubator/servicemix/branches/servicemix-3.1/samples/loan-broker/src/main/client/
Removed:
incubator/servicemix/branches/servicemix-3.1/samples/loan-broker/src/main/client/
incubator/servicemix/branches/servicemix-3.1/samples/loan-broker/src/main/java/build.xml
Modified:
incubator/servicemix/branches/servicemix-3.1/samples/loan-broker/README.txt
Modified:
incubator/servicemix/branches/servicemix-3.1/samples/loan-broker/README.txt
URL:
http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-3.1/samples/loan-broker/README.txt?view=diff&rev=535211&r1=535210&r2=535211
==============================================================================
--- incubator/servicemix/branches/servicemix-3.1/samples/loan-broker/README.txt
(original)
+++ incubator/servicemix/branches/servicemix-3.1/samples/loan-broker/README.txt
Fri May 4 05:40:53 2007
@@ -36,7 +36,7 @@
To run this sample, launch the following commands:
mvn install jbi:projectDeploy
-You can run a client from the src/main/client folder by running
+To test this sample, launch the following commands:
ant run
For more information on this example please see
Added:
incubator/servicemix/branches/servicemix-3.1/samples/loan-broker/build.xml
URL:
http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-3.1/samples/loan-broker/build.xml?view=auto&rev=535211
==============================================================================
--- incubator/servicemix/branches/servicemix-3.1/samples/loan-broker/build.xml
(added)
+++ incubator/servicemix/branches/servicemix-3.1/samples/loan-broker/build.xml
Fri May 4 05:40:53 2007
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<project name="loan-broker-client" default="run" basedir=".">
+
+ <property name="class.dir" value="classes"/>
+
+ <target name="clean">
+ <delete dir="target" quiet="true"/>
+ <delete dir="${class.dir}" quiet="true"/>
+ </target>
+
+ <target name="init">
+ <mkdir dir="${class.dir}"/>
+ <mkdir dir="lib"/>
+
+ <get
src="http://repo.mergere.com/maven2/org/logicblaze/lingo/lingo/1.3/lingo-1.3.jar"
+ dest="lib/lingo-1.3.jar"
+ usetimestamp="true" />
+
+ <path id="javac.classpath">
+ <pathelement path="${class.dir}"/>
+ <pathelement path="../../conf"/>
+ <fileset dir="../../lib">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="lib">
+ <include name="**/*.jar"/>
+ </fileset>
+ </path>
+ </target>
+
+ <target name="compile" depends="init" description="Compile all Java">
+ <javac srcdir="." destdir="${class.dir}">
+ <classpath refid="javac.classpath"/>
+ </javac>
+ </target>
+
+ <target name="run" depends="compile" description="Runs the example client">
+ <echo>Running example client</echo>
+ <java classname="JMSClient" fork="yes" maxmemory="100M">
+ <classpath refid="javac.classpath"/>
+ </java>
+ </target>
+
+ <target name="run-loop" depends="compile" description="Runs the example
client in a loop">
+ <echo>Running example client in a loop</echo>
+ <java classname="JMSClient" fork="yes" maxmemory="100M">
+ <classpath refid="javac.classpath"/>
+ <arg value="100000"/>
+ </java>
+ </target>
+
+</project>
Propchange:
incubator/servicemix/branches/servicemix-3.1/samples/loan-broker/build.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
incubator/servicemix/branches/servicemix-3.1/samples/loan-broker/build.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange:
incubator/servicemix/branches/servicemix-3.1/samples/loan-broker/build.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml