[overlord-commits] Overlord SVN: r61 - in trunk/samples/jbossesb/broker: src/main/java/org/jboss/soa and 4 other directories.

overlord-commits at lists.jboss.org overlord-commits at lists.jboss.org
Mon Jun 23 07:36:19 EDT 2008


Author: jeff.yuchang
Date: 2008-06-23 07:36:19 -0400 (Mon, 23 Jun 2008)
New Revision: 61

Added:
   trunk/samples/jbossesb/broker/build.xml
   trunk/samples/jbossesb/broker/src/main/java/org/jboss/soa/samples/
   trunk/samples/jbossesb/broker/src/main/java/org/jboss/soa/samples/jbossesb/
   trunk/samples/jbossesb/broker/src/main/java/org/jboss/soa/samples/jbossesb/loan/
   trunk/samples/jbossesb/broker/src/main/java/org/jboss/soa/samples/jbossesb/loan/broker/
   trunk/samples/jbossesb/broker/src/main/java/org/jboss/soa/samples/jbossesb/loan/broker/BrokerMain.java
   trunk/samples/jbossesb/broker/src/main/java/org/jboss/soa/samples/jbossesb/loan/broker/CompleteTransactionMain.java
   trunk/samples/jbossesb/broker/src/main/java/org/jboss/soa/samples/jbossesb/loan/broker/Confirmation.java
   trunk/samples/jbossesb/broker/src/main/java/org/jboss/soa/samples/jbossesb/loan/broker/Quote.java
   trunk/samples/jbossesb/broker/src/main/java/org/jboss/soa/samples/jbossesb/loan/broker/RequestForQuoteMain.java
   trunk/samples/jbossesb/broker/src/main/java/org/jboss/soa/samples/jbossesb/loan/broker/Supplier.java
Removed:
   trunk/samples/jbossesb/broker/src/main/java/org/jboss/soa/esb/
Log:
[SOAG-12]
* Refactor the broker example


Added: trunk/samples/jbossesb/broker/build.xml
===================================================================
--- trunk/samples/jbossesb/broker/build.xml	                        (rev 0)
+++ trunk/samples/jbossesb/broker/build.xml	2008-06-23 11:36:19 UTC (rev 61)
@@ -0,0 +1,38 @@
+<project name="broker" default="startdb" basedir=".">
+	<property name="M2_REPO" value="/opt/m2/repo" />
+	<property name="database.dir" value="${basedir}/database" />
+        
+	<path id="database.classpath">
+      	 <fileset dir="${M2_REPO}" >
+		<include name="hsqldb/hsqldb/1.8.0.7/hsqldb-1.8.0.7.jar" />
+	 </fileset>
+	</path>
+
+    <!-- Start the HSQL DB server -->
+    <target name="startdb" description="Run HSQL database server with clean DB">
+        <!-- Delete database files -->
+        <delete dir="${database.dir}"/>
+        <java classname="org.hsqldb.Server"
+              fork="yes"
+              classpathref="database.classpath"
+              failonerror="true">
+            <arg value="-database.0"/>
+            <arg value="file:${database.dir}/db"/>
+        </java>
+    </target>
+
+    <!-- Start the HSQL DB browser tool -->
+    <target name="dbmanager" description="Start HSQL DB manager">
+        <java
+            classname="org.hsqldb.util.DatabaseManagerSwing"
+            fork="yes"
+            classpathref="database.classpath"
+            failonerror="true">
+            <arg value="-url"/>
+            <arg value="jdbc:hsqldb:hsql://localhost/"/>
+            <arg value="-driver"/>
+            <arg value="org.hsqldb.jdbcDriver"/>
+        </java>
+    </target>
+	
+</project>

Added: trunk/samples/jbossesb/broker/src/main/java/org/jboss/soa/samples/jbossesb/loan/broker/BrokerMain.java
===================================================================
--- trunk/samples/jbossesb/broker/src/main/java/org/jboss/soa/samples/jbossesb/loan/broker/BrokerMain.java	                        (rev 0)
+++ trunk/samples/jbossesb/broker/src/main/java/org/jboss/soa/samples/jbossesb/loan/broker/BrokerMain.java	2008-06-23 11:36:19 UTC (rev 61)
@@ -0,0 +1,62 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, JBoss Inc., and others contributors as indicated 
+ * by the @authors tag. All rights reserved. 
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors. 
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A 
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2008,
+ */
+package org.jboss.soa.samples.jbossesb.loan.broker;
+
+import java.util.List;
+
+import org.jboss.soa.overlord.conversation.HibernateObject;
+
+public class BrokerMain implements HibernateObject{
+	
+	private static final long serialVersionUID = 11114L;
+	
+	private long id;
+	
+	private List<Quote> quotes;
+	
+	private CompleteTransactionMain transaction;
+
+	public long getId() {
+		return this.id;
+	}
+
+	public void setId(long id) {
+		this.id = id;
+	}
+
+	public List<Quote> getQuotes() {
+		return quotes;
+	}
+
+	public void setQuotes(List<Quote> quotes) {
+		this.quotes = quotes;
+	}
+
+	public CompleteTransactionMain getTransaction() {
+		return transaction;
+	}
+
+	public void setTransaction(CompleteTransactionMain transaction) {
+		this.transaction = transaction;
+	}
+	
+	
+
+}

Added: trunk/samples/jbossesb/broker/src/main/java/org/jboss/soa/samples/jbossesb/loan/broker/CompleteTransactionMain.java
===================================================================
--- trunk/samples/jbossesb/broker/src/main/java/org/jboss/soa/samples/jbossesb/loan/broker/CompleteTransactionMain.java	                        (rev 0)
+++ trunk/samples/jbossesb/broker/src/main/java/org/jboss/soa/samples/jbossesb/loan/broker/CompleteTransactionMain.java	2008-06-23 11:36:19 UTC (rev 61)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, JBoss Inc., and others contributors as indicated 
+ * by the @authors tag. All rights reserved. 
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors. 
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A 
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2008,
+ */
+package org.jboss.soa.samples.jbossesb.loan.broker;
+
+import org.jboss.soa.overlord.conversation.HibernateObject;
+
+public class CompleteTransactionMain implements HibernateObject {
+	
+	private static final long serialVersionUID = 111313L;
+	
+	private long id;
+	
+	private Quote confirmedQuote;
+	
+	public long getId() {
+		return this.id;
+	}
+
+	public void setId(long id) {
+		this.id = id;
+	}
+
+	public Quote getConfirmedQuote() {
+		return confirmedQuote;
+	}
+
+	public void setConfirmedQuote(Quote confirmedQuote) {
+		this.confirmedQuote = confirmedQuote;
+	}
+	
+	
+}

Added: trunk/samples/jbossesb/broker/src/main/java/org/jboss/soa/samples/jbossesb/loan/broker/Confirmation.java
===================================================================
--- trunk/samples/jbossesb/broker/src/main/java/org/jboss/soa/samples/jbossesb/loan/broker/Confirmation.java	                        (rev 0)
+++ trunk/samples/jbossesb/broker/src/main/java/org/jboss/soa/samples/jbossesb/loan/broker/Confirmation.java	2008-06-23 11:36:19 UTC (rev 61)
@@ -0,0 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, JBoss Inc., and others contributors as indicated 
+ * by the @authors tag. All rights reserved. 
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors. 
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A 
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2008,
+ */
+package org.jboss.soa.samples.jbossesb.loan.broker;
+
+public class Confirmation {
+
+}

Added: trunk/samples/jbossesb/broker/src/main/java/org/jboss/soa/samples/jbossesb/loan/broker/Quote.java
===================================================================
--- trunk/samples/jbossesb/broker/src/main/java/org/jboss/soa/samples/jbossesb/loan/broker/Quote.java	                        (rev 0)
+++ trunk/samples/jbossesb/broker/src/main/java/org/jboss/soa/samples/jbossesb/loan/broker/Quote.java	2008-06-23 11:36:19 UTC (rev 61)
@@ -0,0 +1,69 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, JBoss Inc., and others contributors as indicated 
+ * by the @authors tag. All rights reserved. 
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors. 
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A 
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2008,
+ */
+package org.jboss.soa.samples.jbossesb.loan.broker;
+
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.Table;
+
+import org.jboss.soa.overlord.conversation.HibernateObject;
+
+ at Entity
+ at Table(name="T_QUOTE")
+public class Quote implements HibernateObject {
+	
+	private static final long serialVersionUID = 111113L;
+	
+	@Id @GeneratedValue
+	@Column(name="ID")
+	private long id;
+	
+	@Column(name="SUPPLIER")
+	private String supplier;
+	
+	@Column(name="QUOTE_VALUE")
+	private int quoteValue;
+
+	public long getId() {
+		return this.id;
+	}
+
+	public void setId(long id) {
+		this.id = id;
+	}
+
+	public String getSupplier() {
+		return supplier;
+	}
+
+	public void setSupplier(String supplier) {
+		this.supplier = supplier;
+	}
+
+	public int getQuoteValue() {
+		return quoteValue;
+	}
+
+	public void setQuoteValue(int quoteValue) {
+		this.quoteValue = quoteValue;
+	}
+}

Added: trunk/samples/jbossesb/broker/src/main/java/org/jboss/soa/samples/jbossesb/loan/broker/RequestForQuoteMain.java
===================================================================
--- trunk/samples/jbossesb/broker/src/main/java/org/jboss/soa/samples/jbossesb/loan/broker/RequestForQuoteMain.java	                        (rev 0)
+++ trunk/samples/jbossesb/broker/src/main/java/org/jboss/soa/samples/jbossesb/loan/broker/RequestForQuoteMain.java	2008-06-23 11:36:19 UTC (rev 61)
@@ -0,0 +1,27 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, JBoss Inc., and others contributors as indicated 
+ * by the @authors tag. All rights reserved. 
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors. 
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A 
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2008,
+ */
+package org.jboss.soa.samples.jbossesb.loan.broker;
+
+
+public class RequestForQuoteMain {
+	
+	
+	
+}

Added: trunk/samples/jbossesb/broker/src/main/java/org/jboss/soa/samples/jbossesb/loan/broker/Supplier.java
===================================================================
--- trunk/samples/jbossesb/broker/src/main/java/org/jboss/soa/samples/jbossesb/loan/broker/Supplier.java	                        (rev 0)
+++ trunk/samples/jbossesb/broker/src/main/java/org/jboss/soa/samples/jbossesb/loan/broker/Supplier.java	2008-06-23 11:36:19 UTC (rev 61)
@@ -0,0 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, JBoss Inc., and others contributors as indicated 
+ * by the @authors tag. All rights reserved. 
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors. 
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A 
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2008,
+ */
+package org.jboss.soa.samples.jbossesb.loan.broker;
+
+public class Supplier {
+
+}




More information about the overlord-commits mailing list