[overlord-commits] Overlord SVN: r607 - in cdl/trunk: distribution/src/main/release/samples/jbossesb/stateful and 5 other directories.

overlord-commits at lists.jboss.org overlord-commits at lists.jboss.org
Wed Apr 29 07:12:05 EDT 2009


Author: jeff.yuchang
Date: 2009-04-29 07:12:05 -0400 (Wed, 29 Apr 2009)
New Revision: 607

Added:
   cdl/trunk/distribution/src/main/release/samples/jbossesb/stateful/build.xml
   cdl/trunk/distribution/src/main/release/samples/jbossesb/stateless/build.xml
Modified:
   cdl/trunk/distribution/src/main/release/install/deployment.properties
   cdl/trunk/docs/docbook/samplesguide/src/main/module/cdlconformance.xml
   cdl/trunk/runtime/jbossesb-assembly/pom.xml
   cdl/trunk/samples/jbossesb/client/build.xml
   cdl/trunk/samples/jbossesb/client/src/com/acme/services/buyer/BrokerClient.java
Log:
* Update the sample guide.
* Add the build.xml in stateful/stateless folder, so users deploy examples easily.


Modified: cdl/trunk/distribution/src/main/release/install/deployment.properties
===================================================================
--- cdl/trunk/distribution/src/main/release/install/deployment.properties	2009-04-28 23:14:55 UTC (rev 606)
+++ cdl/trunk/distribution/src/main/release/install/deployment.properties	2009-04-29 11:12:05 UTC (rev 607)
@@ -7,11 +7,11 @@
 # This path should not include spaces. 
 # Use of relative paths or paths with spaces will cause runtime errors 
 # when deploying and executing the quickstart and the trailblazers. 
-# (e.g. /var/local/jboss-4.2.2.GA) 
-org.jboss.esb.server.home=/var/local/jboss-4.2.2.GA
+# (e.g. /local/deploy/jboss-4.2.3.GA) 
+org.jboss.esb.server.home=/local/deploy/jboss-4.2.3.GA
 # The Configuration of JBoss AS to Use 
 # (e.g. default) 
 org.jboss.esb.server.config=default
 # The directory for JBossESB home
-# (e.g. /var/local/jbossesb-4.4.GA)
-org.jboss.esb.home=/var/local/jbossesb-4.4.GA
+# (e.g. /local/deploy/jbossesb-4.5.GA)
+org.jboss.esb.home=/local/deploy/jbossesb-4.5.GA

Added: cdl/trunk/distribution/src/main/release/samples/jbossesb/stateful/build.xml
===================================================================
--- cdl/trunk/distribution/src/main/release/samples/jbossesb/stateful/build.xml	                        (rev 0)
+++ cdl/trunk/distribution/src/main/release/samples/jbossesb/stateful/build.xml	2009-04-29 11:12:05 UTC (rev 607)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project name="jbossesb-stateful" default="deploy-purchasing" basedir=".">
+
+	<target name="deploy-purchasing" >
+	   <ant dir="purchasing/store" target="deploy" />
+	   <ant dir="common/creditAgency" target="deploy" />
+	</target>
+
+	<target name="undeploy-purchasing" >
+	   <ant dir="purchasing/store" target="undeploy" />
+	   <ant dir="common/creditAgency" target="undeploy" />
+	</target>
+
+	<target name="deploy-broker" >
+	   <ant dir="brokerage/broker" target="deploy" />
+	   <ant dir="brokerage/supplier" target="deploy" />
+	   <ant dir="common/creditAgency" target="deploy" />
+	</target>
+
+	<target name="undeploy-broker" >
+	   <ant dir="brokerage/broker" target="undeploy" />
+	   <ant dir="brokerage/supplier" target="undeploy" />
+	   <ant dir="common/creditAgency" target="undeploy" />
+	</target>
+    
+
+</project>

Added: cdl/trunk/distribution/src/main/release/samples/jbossesb/stateless/build.xml
===================================================================
--- cdl/trunk/distribution/src/main/release/samples/jbossesb/stateless/build.xml	                        (rev 0)
+++ cdl/trunk/distribution/src/main/release/samples/jbossesb/stateless/build.xml	2009-04-29 11:12:05 UTC (rev 607)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project name="jbossesb-stateless" default="deploy-purchasing" basedir=".">
+
+	<target name="deploy-purchasing" >
+	   <ant dir="purchasing/store" target="deploy" />
+	   <ant dir="common/creditAgency" target="deploy" />
+	</target>
+
+	<target name="undeploy-purchasing" >
+	   <ant dir="purchasing/store" target="undeploy" />
+	   <ant dir="common/creditAgency" target="undeploy" />
+	</target>
+
+	<target name="deploy-broker" >
+	   <ant dir="brokerage/broker" target="deploy" />
+	   <ant dir="brokerage/supplier" target="deploy" />
+	   <ant dir="common/creditAgency" target="deploy" />
+	</target>
+
+	<target name="undeploy-broker" >
+	   <ant dir="brokerage/broker" target="undeploy" />
+	   <ant dir="brokerage/supplier" target="undeploy" />
+	   <ant dir="common/creditAgency" target="undeploy" />
+	</target>
+    
+
+</project>

Modified: cdl/trunk/docs/docbook/samplesguide/src/main/module/cdlconformance.xml
===================================================================
--- cdl/trunk/docs/docbook/samplesguide/src/main/module/cdlconformance.xml	2009-04-28 23:14:55 UTC (rev 606)
+++ cdl/trunk/docs/docbook/samplesguide/src/main/module/cdlconformance.xml	2009-04-29 11:12:05 UTC (rev 607)
@@ -5,8 +5,11 @@
   <title>CDL Conformance</title>
 
   <para>
-There are two examples to demonstrate the conversation aware ESB actions, and the conformance checking against a choreography. These are <filename>purchasing</filename>, a simple customer/supplier example with two associated Eclipse projects (<filename>purchasing-store</filename> and <filename>purchasing-models</filename>), and <filename>brokerage</filename> which extends the purchasing example through the introduction of a broker that mediates between potentially multiple suppliers to find the best deal, defined within three Eclipse projects (<filename>brokerage-broker</filename>, <filename>brokerage-supplier</filename> and <filename>brokerage-models</filename>).
+There are two examples to demonstrate the conversation aware ESB actions(for both stateful and stateless), and the conformance checking against a choreography.
   </para>
+  <para> 
+These are <filename>purchasing</filename>, a simple customer/supplier example with two associated Eclipse projects (<filename>purchasing-store</filename> and <filename>purchasing-models</filename>), and <filename>brokerage</filename> which extends the purchasing example through the introduction of a broker that mediates between potentially multiple suppliers to find the best deal, defined within three Eclipse projects (<filename>brokerage-broker</filename>, <filename>brokerage-supplier</filename> and <filename>brokerage-models</filename>).
+  </para>
   <para>
 These examples make use of a common <emphasis>Credit Agency</emphasis> service, defined within the <filename>common-creditAgency</filename> Eclipse project, and are executed through the use of client applications defined in the <filename>${OverlordCDL}/samples/client</filename> folder.
   </para>
@@ -18,7 +21,8 @@
 	
   <section>
 	<title>Purchasing Example</title>
-
+    <section>
+     <title>Overview</title>
 	<para>
 The purchasing example describes the interactions between a Buyer, Store and Credit Agency. The flow for this example would be:
 	</para>
@@ -64,25 +68,21 @@
 	<para>
 Another Quick Fix option associated with this error is <emphasis>Update from Referenced Description</emphasis>. By selecting this option, you will notice that the message type is changed back to the value without the 'X'.
 	</para>
-
+    </section>
+    
 	<section>
 		<title>Running the Example</title>
-
+		<para>
+		 This example has two versions, stateful and stateless. in the sample folder, you will find the samples were grouped in stateful and stateless folder.
+		 One is the sateful purchasing example (this is the example that we had since M1 release),the other is stateless purchasing example that is introduced in the M2 release.		 
+		</para>
 		<orderedlist>
 			<listitem>
 		First step is to install the ESB services. (Presumely the JBoss ESB server started already)
-				In a command window,
-			<itemizedlist>
-				<listitem>
-			Go to the <filename>$Overlord/samples/purchasing/store</filename> folder and execute <emphasis role="bold">ant deploy</emphasis>
-				</listitem>
-				<listitem>
-			Go to the $Overlord/samples/common/creditAgency folder and execute <emphasis role="bold">ant deploy</emphasis>
-				</listitem>
-			</itemizedlist>
+		In a command window, Go to the the <filename>$Overlord/samples/stateful</filename> folder (or <filename>$Overlord/sample/stateless</filename> in the stateless approach), execute the <emphasis role="bold">ant deploy-purchasing</emphasis>.
 			</listitem>
 			<listitem>
-		Go to the <filename>$Overlord/samples/client</filename> folder and execute <emphasis role="bold">ant runPurchasingClient</emphasis>, which will send a 'BuyRequest' message to the Store, which will then perform the credit check before returning a response to the client.
+		Go to the <filename>$Overlord/samples/client</filename> folder and execute <emphasis role="bold">ant runPurchasingClient</emphasis> (or <emphasis role="bold"> ant runStatelessPurchasingClient</emphasis> in stateless approach.), which will send a 'BuyRequest' message to the Store, which will then perform the credit check before returning a response to the client.
 			</listitem>
 		</orderedlist>
 
@@ -91,8 +91,7 @@
 		</para>
 		
 		<tip>
-		  <para>You can undeploy the corresponding esb artifact by through command <command>ant undeploy</command> in its directory, such as 
-		  $Overlord/samples/purchasing/store</para>
+		  <para>You can undeploy the corresponding esb artifact by through command <command>ant undeploy-purchasing</command> in the <filename>$Overlord/samples/stateful</filename> folder or <filename>$Overlord/samples/stateless</filename> folder respectively.</para>
 		</tip>
 
 	</section>
@@ -101,7 +100,10 @@
 
   <section>
 	<title>Brokerage Example</title>
-
+    
+    <section>
+     <title>Overview</title>
+	
 	<para>
 The brokerage example describes the interactions between a Customer, Broker, Supplier and Credit Agency. The flow for this example would be:
 	</para>
@@ -162,34 +164,26 @@
 	<para>
 The information regarding the expected message type is obtained from the choreography description in the <filename>brokerage-models</filename> project. To identify the precise interaction within the choreography that this error relates to, select the context menu associated with the error and choose the Quick Fix menu item. This will display a dialog with a list of fixes, select the <emphasis>Show referenced description</emphasis> option and press OK. This will cause the relevant interaction within the choreography description to be displayed.
 	</para>
-
+    </section>
+    
 	<section>
 		<title>Running the Example</title>
-
+		<para>
+		 This example has two versions, stateful and stateless. in the sample folder, you will find the samples were grouped in stateful and stateless folder.
+		 one is the sateful broker example (this is the example that we had since M1 release), the other is stateless broker example that is introduced in the M2 release.		 
+		</para>
 		<orderedlist>
 			<listitem>
 			First step is to install the ESB services (Presumely the JBoss ESB server started already) 
-				In a command window,
-				<itemizedlist>
-					<listitem>
-				Go to the <filename>$Overlord/samples/brokerage/supplier</filename> folder and execute <emphasis role="bold">ant deploy</emphasis>
-					</listitem>
-					<listitem>
-				Go to the <filename>$Overlord/samples/brokerage/broker</filename> folder and execute <emphasis role="bold">ant deploy</emphasis>
-					</listitem>
-					<listitem>
-				Go to the <filename>$Overlord/samples/common/creditAgency</filename> folder and execute <emphasis role="bold">ant deploy</emphasis>
-					</listitem>
-				</itemizedlist>
+			In a command window, Go to the <filename>$Overlord/samples/stateful</filename> folder (or <filename>$Overlord/sample/stateless</filename> in the stateless approach), execute <emphasis role="bold">ant deploy-broker</emphasis>
 			</listitem>
 			<listitem>
-			Go to the <filename>$Overlord/samples/client</filename> folder and execute <emphasis role="bold">ant runBrokerageClient</emphasis>, which will initially send an 'enquiry' message to the Broker, which will communicate with the set of Suppliers to obtain the best quote. The client will then send a 'buy' request, which will result in the Broker performing a credit check before returning a response to the client.
+			Go to the <filename>$Overlord/samples/client</filename> folder and execute <emphasis role="bold">ant runBrokerageClient</emphasis> (or <emphasis role="bold"> ant runStatelessBrokerageClient</emphasis> in stateless approach.), which will initially send an 'enquiry' message to the Broker, which will communicate with the set of Suppliers to obtain the best quote. The client will then send a 'buy' request, which will result in the Broker performing a credit check before returning a response to the client.
 			</listitem>
 		</orderedlist>
 		
 		<tip>
-		  <para>You can undeploy the corresponding esb artifact by through command <command>ant undeploy</command> in its directory, such as 
-		  $Overlord/samples/brokerage/supplier</para>
+		  <para>You can undeploy the corresponding esb artifact by through command <command>ant undeploy-broker</command> in $Overlord/samples/stateful or $Overlord/samples/stateless respectively.</para>
 		</tip>
 	</section>
 

Modified: cdl/trunk/runtime/jbossesb-assembly/pom.xml
===================================================================
--- cdl/trunk/runtime/jbossesb-assembly/pom.xml	2009-04-28 23:14:55 UTC (rev 606)
+++ cdl/trunk/runtime/jbossesb-assembly/pom.xml	2009-04-29 11:12:05 UTC (rev 607)
@@ -119,7 +119,6 @@
 						<exclude>c3p0:c3p0</exclude>
 						<exclude>log4j:log4j</exclude>
 						<exclude>org.jboss.jbossesb:rosetta</exclude>
-						<exclude>org.mvel:mvel</exclude>
           			</excludes>
         		 </configuration>  
 			  </plugin>		      

Modified: cdl/trunk/samples/jbossesb/client/build.xml
===================================================================
--- cdl/trunk/samples/jbossesb/client/build.xml	2009-04-28 23:14:55 UTC (rev 606)
+++ cdl/trunk/samples/jbossesb/client/build.xml	2009-04-29 11:12:05 UTC (rev 607)
@@ -36,8 +36,16 @@
 			<classpath refid="project.classpath" />
 			<classpath location="${classes.dir}" />
 		</java>
+		
 	</target>
 	
+	<target name="runStatelessPurchasingClient" depends="compile">
+		<java fork="yes" classname="com.acme.services.buyer.StatelessBuyerClient">
+			<classpath refid="project.classpath" />
+			<classpath location="${classes.dir}" />
+		</java>
+	</target>
+	
 	<target name="runBrokerageClient" depends="compile">
 		<java fork="yes" classname="com.acme.services.buyer.BrokerClient">
 			<classpath refid="project.classpath" />
@@ -45,4 +53,11 @@
 		</java>
 	</target>
 	
+	<target name="runStatelessBrokerageClient" depends="compile">
+		<java fork="yes" classname="com.acme.services.buyer.StatelessBrokerClient">
+			<classpath refid="project.classpath" />
+			<classpath location="${classes.dir}" />
+		</java>
+	</target>
+	
 </project>

Modified: cdl/trunk/samples/jbossesb/client/src/com/acme/services/buyer/BrokerClient.java
===================================================================
--- cdl/trunk/samples/jbossesb/client/src/com/acme/services/buyer/BrokerClient.java	2009-04-28 23:14:55 UTC (rev 606)
+++ cdl/trunk/samples/jbossesb/client/src/com/acme/services/buyer/BrokerClient.java	2009-04-29 11:12:05 UTC (rev 607)
@@ -42,7 +42,7 @@
 		System.setProperty("javax.xml.registry.ConnectionFactoryClass",regClass);
 		
         try {
-        	brokerInvoker = new ServiceInvoker("org.pi4soa.esbbroker.esbbroker", "ESBBrokerProcess_Broker");
+        	brokerInvoker = new ServiceInvoker("ESBBroker.BrokerParticipant", "ESBBrokerProcess");
         } catch (Exception e) {
             throw new RuntimeException("Failed to create ServiceInvoker", e);
         }




More information about the overlord-commits mailing list