[overlord-commits] Overlord SVN: r203 - in cdl/trunk: runtime/jbossesb/src/main/java/org/jboss/soa/overlord/conversation and 18 other directories.

overlord-commits at lists.jboss.org overlord-commits at lists.jboss.org
Tue Jul 29 08:27:41 EDT 2008


Author: jeff.yuchang
Date: 2008-07-29 08:27:41 -0400 (Tue, 29 Jul 2008)
New Revision: 203

Added:
   cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/jbossesb/util/ClassLoaderUtil.java
   cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/jbossesb/util/HibernateUtil.java
   cdl/trunk/samples/jbossesb/creditAgency/
   cdl/trunk/samples/jbossesb/creditAgency/build.xml
   cdl/trunk/samples/jbossesb/creditAgency/pom.xml
   cdl/trunk/samples/jbossesb/creditAgency/src/
   cdl/trunk/samples/jbossesb/creditAgency/src/main/
   cdl/trunk/samples/jbossesb/creditAgency/src/main/java/
   cdl/trunk/samples/jbossesb/creditAgency/src/main/java/com/
   cdl/trunk/samples/jbossesb/creditAgency/src/main/java/com/acme/
   cdl/trunk/samples/jbossesb/creditAgency/src/main/java/com/acme/services/
   cdl/trunk/samples/jbossesb/creditAgency/src/main/java/com/acme/services/creditAgency/
   cdl/trunk/samples/jbossesb/creditAgency/src/main/java/com/acme/services/creditAgency/CreditAgencyPurchase.java
   cdl/trunk/samples/jbossesb/creditAgency/src/main/java/com/acme/services/creditAgency/SetCreditCheckInvalidMessageAction.java
   cdl/trunk/samples/jbossesb/creditAgency/src/main/java/com/acme/services/creditAgency/SetCreditCheckResponseMessageAction.java
   cdl/trunk/samples/jbossesb/creditAgency/src/main/resources/
   cdl/trunk/samples/jbossesb/creditAgency/src/main/resources/META-INF/
   cdl/trunk/samples/jbossesb/creditAgency/src/main/resources/META-INF/deployment.xml
   cdl/trunk/samples/jbossesb/creditAgency/src/main/resources/META-INF/jboss-esb.xml
   cdl/trunk/samples/jbossesb/creditAgency/src/main/resources/hibernate.cfg.xml
   cdl/trunk/samples/jbossesb/creditAgency/src/main/resources/jbmq-queue-service.xml
   cdl/trunk/samples/jbossesb/creditAgency/src/main/resources/log4j.xml
Removed:
   cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/conversation/ClassLoaderUtil.java
   cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/conversation/HibernateUtil.java
   cdl/trunk/samples/jbossesb/purchasing/src/main/java/com/acme/services/creditAgency/
Modified:
   cdl/trunk/pom.xml
   cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/conversation/SessionManager.java
   cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/jbossesb/actions/ConversationAction.java
   cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/jbossesb/actions/IfAction.java
   cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/jbossesb/actions/SetStateAction.java
   cdl/trunk/samples/jbossesb/purchasing/pom.xml
   cdl/trunk/samples/jbossesb/purchasing/src/main/resources/META-INF/deployment.xml
   cdl/trunk/samples/jbossesb/purchasing/src/main/resources/META-INF/jboss-esb.xml
   cdl/trunk/samples/jbossesb/purchasing/src/main/resources/hibernate.cfg.xml
   cdl/trunk/samples/jbossesb/purchasing/src/main/resources/jbmq-queue-service.xml
   cdl/trunk/samples/pom.xml
Log:
[SOAG-29] First initial to break the creditAgency and purchase, not work yet.



Modified: cdl/trunk/pom.xml
===================================================================
--- cdl/trunk/pom.xml	2008-07-28 17:31:19 UTC (rev 202)
+++ cdl/trunk/pom.xml	2008-07-29 12:27:41 UTC (rev 203)
@@ -28,7 +28,7 @@
 	</developers>
 	<modules>
 		<module>runtime</module>
-		<!--module>samples</module-->
+		<module>samples</module>
 	</modules>
 
 	<properties>

Deleted: cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/conversation/ClassLoaderUtil.java
===================================================================
--- cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/conversation/ClassLoaderUtil.java	2008-07-28 17:31:19 UTC (rev 202)
+++ cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/conversation/ClassLoaderUtil.java	2008-07-29 12:27:41 UTC (rev 203)
@@ -1,32 +0,0 @@
-/*
- * 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.overlord.conversation;
-
-/**
- * @author jeffyu
- *
- */
-public class ClassLoaderUtil {
-	
-	public static Class<?> loadClass(String className) throws ClassNotFoundException {
-		return Thread.currentThread().getContextClassLoader().loadClass(className);
-	}
-
-}

Deleted: cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/conversation/HibernateUtil.java
===================================================================
--- cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/conversation/HibernateUtil.java	2008-07-28 17:31:19 UTC (rev 202)
+++ cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/conversation/HibernateUtil.java	2008-07-29 12:27:41 UTC (rev 203)
@@ -1,69 +0,0 @@
-/*
- * 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.overlord.conversation;
-
-import org.hibernate.HibernateException;
-import org.hibernate.Session;
-import org.hibernate.SessionFactory;
-import org.hibernate.cfg.AnnotationConfiguration;
-
-
-public class HibernateUtil {
-	
-	private static SessionFactory sessionFactory;
-	
-	private static final ThreadLocal<Session> session = new ThreadLocal<Session>();
-	
-	static {
-		try {
-			sessionFactory = new AnnotationConfiguration().configure().buildSessionFactory();
-		} catch (Throwable t) {
-			throw new ExceptionInInitializerError(t);
-		}
-	}
-	
-	public static SessionFactory getSessionFactory() {
-		return sessionFactory;
-	}
-	
-	public static void shutdown() {
-		if (getSessionFactory() != null) {
-			getSessionFactory().close();
-		}
-	}
-	
-	public static synchronized Session currentSession() throws HibernateException {
-		Session s = session.get();
-		if (s == null) {
-			s = sessionFactory.openSession();
-			session.set(s);
-		}
-		return s;
-	}
-	
-	public static void closeSession() throws HibernateException {
-		Session s = session.get();
-		if (s!= null) {
-			s.close();
-		}
-		session.set(null);
-	}
-
-}

Modified: cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/conversation/SessionManager.java
===================================================================
--- cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/conversation/SessionManager.java	2008-07-28 17:31:19 UTC (rev 202)
+++ cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/conversation/SessionManager.java	2008-07-29 12:27:41 UTC (rev 203)
@@ -28,6 +28,8 @@
 import org.jboss.soa.esb.message.Message;
 import org.jboss.soa.overlord.jbossesb.actions.MessageProperties;
 import org.jboss.soa.overlord.jbossesb.actions.Service;
+import org.jboss.soa.overlord.jbossesb.util.ClassLoaderUtil;
+import org.jboss.soa.overlord.jbossesb.util.HibernateUtil;
 import org.mvel.MVEL;
 
 /**

Modified: cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/jbossesb/actions/ConversationAction.java
===================================================================
--- cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/jbossesb/actions/ConversationAction.java	2008-07-28 17:31:19 UTC (rev 202)
+++ cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/jbossesb/actions/ConversationAction.java	2008-07-29 12:27:41 UTC (rev 203)
@@ -31,14 +31,14 @@
 import org.jboss.soa.esb.client.ServiceInvoker;
 import org.jboss.soa.esb.helpers.ConfigTree;
 import org.jboss.soa.esb.message.Message;
-import org.jboss.soa.overlord.conversation.ClassLoaderUtil;
-import org.jboss.soa.overlord.conversation.HibernateUtil;
 import org.jboss.soa.overlord.conversation.Identity;
 import org.jboss.soa.overlord.conversation.IdentityType;
 import org.jboss.soa.overlord.conversation.ScheduleItem;
 import org.jboss.soa.overlord.conversation.Session;
 import org.jboss.soa.overlord.conversation.SessionManager;
 import org.jboss.soa.overlord.conversation.SessionStatus;
+import org.jboss.soa.overlord.jbossesb.util.ClassLoaderUtil;
+import org.jboss.soa.overlord.jbossesb.util.HibernateUtil;
 import org.jboss.soa.overlord.jbossesb.util.MessageUtil;
 import org.jboss.soa.overlord.jbossesb.util.XMLUtils;
 

Modified: cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/jbossesb/actions/IfAction.java
===================================================================
--- cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/jbossesb/actions/IfAction.java	2008-07-28 17:31:19 UTC (rev 202)
+++ cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/jbossesb/actions/IfAction.java	2008-07-29 12:27:41 UTC (rev 203)
@@ -37,7 +37,6 @@
 		super(config);
 	}
 	
-	@SuppressWarnings(value="unchecked")
 	public Message handle(Message message) throws Exception{
 		Session session=getSession(message);
 		

Modified: cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/jbossesb/actions/SetStateAction.java
===================================================================
--- cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/jbossesb/actions/SetStateAction.java	2008-07-28 17:31:19 UTC (rev 202)
+++ cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/jbossesb/actions/SetStateAction.java	2008-07-29 12:27:41 UTC (rev 203)
@@ -22,9 +22,9 @@
 import org.apache.log4j.Logger;
 import org.jboss.soa.esb.helpers.ConfigTree;
 import org.jboss.soa.esb.message.Message;
-import org.jboss.soa.overlord.conversation.ClassLoaderUtil;
 import org.jboss.soa.overlord.conversation.Session;
 import org.jboss.soa.overlord.conversation.SessionManager;
+import org.jboss.soa.overlord.jbossesb.util.ClassLoaderUtil;
 import org.jboss.soa.overlord.jbossesb.util.XMLUtils;
 import org.mvel.MVEL;
 import org.w3c.dom.Element;

Added: cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/jbossesb/util/ClassLoaderUtil.java
===================================================================
--- cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/jbossesb/util/ClassLoaderUtil.java	                        (rev 0)
+++ cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/jbossesb/util/ClassLoaderUtil.java	2008-07-29 12:27:41 UTC (rev 203)
@@ -0,0 +1,32 @@
+/*
+ * 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.overlord.jbossesb.util;
+
+/**
+ * @author jeffyu
+ *
+ */
+public class ClassLoaderUtil {
+	
+	public static Class<?> loadClass(String className) throws ClassNotFoundException {
+		return Thread.currentThread().getContextClassLoader().loadClass(className);
+	}
+
+}

Added: cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/jbossesb/util/HibernateUtil.java
===================================================================
--- cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/jbossesb/util/HibernateUtil.java	                        (rev 0)
+++ cdl/trunk/runtime/jbossesb/src/main/java/org/jboss/soa/overlord/jbossesb/util/HibernateUtil.java	2008-07-29 12:27:41 UTC (rev 203)
@@ -0,0 +1,74 @@
+/*
+ * 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.overlord.jbossesb.util;
+
+import org.hibernate.HibernateException;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.cfg.AnnotationConfiguration;
+import org.hibernate.cfg.Configuration;
+
+/**
+ * @author jeffyu
+ * 
+ */
+public class HibernateUtil {
+	
+	private static SessionFactory sessionFactory;
+	
+	private static final ThreadLocal<Session> session = new ThreadLocal<Session>();
+	
+	static {
+		try {
+			Configuration configuration = new AnnotationConfiguration().configure();
+			sessionFactory = configuration.buildSessionFactory();
+		} catch (Throwable t) {
+			throw new ExceptionInInitializerError(t);
+		}
+	}
+	
+	public static SessionFactory getSessionFactory() {
+		return sessionFactory;
+	}
+	
+	public static void shutdown() {
+		if (getSessionFactory() != null) {
+			getSessionFactory().close();
+		}
+	}
+	
+	public static synchronized Session currentSession() throws HibernateException {
+		Session s = session.get();
+		if (s == null) {
+			s = sessionFactory.openSession();
+			session.set(s);
+		}
+		return s;
+	}
+	
+	public static void closeSession() throws HibernateException {
+		Session s = session.get();
+		if (s!= null) {
+			s.close();
+		}
+		session.set(null);
+	}
+
+}

Added: cdl/trunk/samples/jbossesb/creditAgency/build.xml
===================================================================
--- cdl/trunk/samples/jbossesb/creditAgency/build.xml	                        (rev 0)
+++ cdl/trunk/samples/jbossesb/creditAgency/build.xml	2008-07-29 12:27:41 UTC (rev 203)
@@ -0,0 +1,38 @@
+<project name="purchasing" 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: cdl/trunk/samples/jbossesb/creditAgency/pom.xml
===================================================================
--- cdl/trunk/samples/jbossesb/creditAgency/pom.xml	                        (rev 0)
+++ cdl/trunk/samples/jbossesb/creditAgency/pom.xml	2008-07-29 12:27:41 UTC (rev 203)
@@ -0,0 +1,121 @@
+<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">
+	<modelVersion>4.0.0</modelVersion>
+	<groupId>org.jboss.soa.overlord.cdl.samples</groupId>
+	<artifactId>jbossesb-creditAgency</artifactId>
+	<version>1.0-SNAPSHOT</version>
+	<packaging>jboss-esb</packaging>
+	<name>Overlord::CDL::Samples::CreditAgency</name>
+	<url>http://www.jboss.org/overlord</url>
+	
+	<parent>
+		<groupId>org.jboss.soa.overlord.cdl</groupId>
+		<artifactId>samples</artifactId>
+		<version>1.0-SNAPSHOT</version>
+	</parent>
+
+		<dependencies>	
+			<dependency>
+				<groupId>log4j</groupId>
+				<artifactId>log4j</artifactId>
+				<version>1.2.14</version>
+			</dependency>
+			<dependency>
+				<groupId>org.jboss.soa.overlord.cdl</groupId>
+				<artifactId>runtime-jbossesb</artifactId>
+				<version>1.0-SNAPSHOT</version>
+			</dependency>
+
+		    <dependency>
+			    <groupId>org.hibernate</groupId>
+			    <artifactId>hibernate-commons-annotations</artifactId>
+			    <version>${hibernate-commons-annotations}</version>
+		    </dependency>
+
+		    <dependency>
+			    <groupId>org.hibernate</groupId>
+			    <artifactId>hibernate-tools</artifactId>
+			    <version>${hibernate-tools-version}</version>
+				<scope>provided</scope>
+		    </dependency>
+
+			<dependency>
+			    <groupId>hsqldb</groupId>
+				<artifactId>hsqldb</artifactId>
+				<version>${hsqldb-version}</version>
+			</dependency>
+			
+			<dependency>
+				<groupId>mysql</groupId>
+				<artifactId>mysql-connector-java</artifactId>
+				<version>5.0.5</version>
+			</dependency>
+
+		</dependencies>
+
+		<build>
+		    <finalName>creditAgency</finalName>
+		    <plugins>
+		      <plugin>
+			<groupId>org.apache.maven.plugins</groupId>
+			<artifactId>maven-antrun-plugin</artifactId>
+			<executions>
+             <!--export schemas to database -->
+			  <execution>
+			    <id>schemaexport</id>
+			    <phase>compile</phase>
+			    <configuration>
+			      <tasks>
+				<taskdef name="hibernatetool" classname="org.hibernate.tool.ant.HibernateToolTask" 
+					 classpathref="maven.compile.classpath"/>
+                                <hibernatetool destdir=".">
+				<classpath>
+					<pathelement path="maven.compile.classpath" />
+				</classpath>
+				<annotationconfiguration configurationfile="target/classes/hibernate.cfg.xml" />
+				<hbm2ddl
+					create="true"
+					drop="true"
+					export="true"
+					outputfilename="purchasing-ddl.sql"
+					delimiter=";"
+					format="true"/>
+				</hibernatetool>
+			      </tasks>
+			    </configuration>
+			    <goals>
+			      <goal>run</goal>
+			    </goals>
+			  </execution>
+
+			  <!--Deploy esb artifact to JBoss AS/ESB -->
+			  <execution>
+			    <id>deploy</id>
+			    <phase>install</phase>
+			    <configuration>
+			      <tasks>
+				   <copy file="target/creditAgency.esb" todir="${deploy.dir}" overwrite="true" />
+			      </tasks>
+			    </configuration>
+			    <goals>
+			      <goal>run</goal>
+			    </goals>
+			  </execution>
+
+			</executions>
+		      </plugin>		      
+		    </plugins>
+		</build>
+	
+	<reporting>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-surefire-report-plugin</artifactId>
+			</plugin>
+	    </plugins>
+	</reporting>
+	
+</project>
+

Added: cdl/trunk/samples/jbossesb/creditAgency/src/main/java/com/acme/services/creditAgency/CreditAgencyPurchase.java
===================================================================
--- cdl/trunk/samples/jbossesb/creditAgency/src/main/java/com/acme/services/creditAgency/CreditAgencyPurchase.java	                        (rev 0)
+++ cdl/trunk/samples/jbossesb/creditAgency/src/main/java/com/acme/services/creditAgency/CreditAgencyPurchase.java	2008-07-29 12:27:41 UTC (rev 203)
@@ -0,0 +1,57 @@
+/*
+ * 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 com.acme.services.creditAgency;
+
+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;
+import org.jboss.soa.overlord.jbossesb.actions.Service;
+
+ at Service(name="{http://www.jboss.org/overlord/purchase}CreditAgency", conversationType="overlord.cdl.samples.purchasing at CreditAgency",root=true)
+ at Entity
+ at Table(name="T_CA_PURCHASE")
+public class CreditAgencyPurchase implements HibernateObject {
+	
+	@Id @GeneratedValue
+	@Column(name="ID")
+	private long id;
+	
+	public boolean isCreditValid() {
+		boolean ret=false;
+		
+		ret = true;
+		
+		System.out.println("IS CREDIT VALID? "+ret);
+		
+		return(ret);
+	}
+
+	public long getId() {
+		return this.id;
+	}
+
+	public void setId(long id) {
+		this.id = id;
+	}
+}

Added: cdl/trunk/samples/jbossesb/creditAgency/src/main/java/com/acme/services/creditAgency/SetCreditCheckInvalidMessageAction.java
===================================================================
--- cdl/trunk/samples/jbossesb/creditAgency/src/main/java/com/acme/services/creditAgency/SetCreditCheckInvalidMessageAction.java	                        (rev 0)
+++ cdl/trunk/samples/jbossesb/creditAgency/src/main/java/com/acme/services/creditAgency/SetCreditCheckInvalidMessageAction.java	2008-07-29 12:27:41 UTC (rev 203)
@@ -0,0 +1,52 @@
+/*
+ * 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 com.acme.services.creditAgency;
+
+import org.apache.log4j.Logger;
+import org.jboss.soa.esb.actions.AbstractActionLifecycle;
+import org.jboss.soa.esb.helpers.ConfigTree;
+import org.jboss.soa.esb.message.Message;
+import org.jboss.soa.overlord.jbossesb.util.XMLUtils;
+import org.w3c.dom.Node;
+
+public class SetCreditCheckInvalidMessageAction extends AbstractActionLifecycle {
+	
+	private static Logger logger = Logger.getLogger(SetCreditCheckInvalidMessageAction.class);
+	
+	private ConfigTree config;
+	
+	public SetCreditCheckInvalidMessageAction(ConfigTree config) {
+		this.config = config;
+	}
+	
+	public Message process(Message message) throws Exception{
+		
+		Node node = XMLUtils.getNode((String)message.getBody().get());
+		String idValue = node.getAttributes().getNamedItem("id").getNodeValue();
+		message.getBody().add("<CreditCheckInvalid id=\"" + idValue +"\"></CreditCheckInvalid>");
+
+		logger.info("Updated credit message: "+message);
+
+		return(message);
+	}
+	
+}
+
+

Added: cdl/trunk/samples/jbossesb/creditAgency/src/main/java/com/acme/services/creditAgency/SetCreditCheckResponseMessageAction.java
===================================================================
--- cdl/trunk/samples/jbossesb/creditAgency/src/main/java/com/acme/services/creditAgency/SetCreditCheckResponseMessageAction.java	                        (rev 0)
+++ cdl/trunk/samples/jbossesb/creditAgency/src/main/java/com/acme/services/creditAgency/SetCreditCheckResponseMessageAction.java	2008-07-29 12:27:41 UTC (rev 203)
@@ -0,0 +1,53 @@
+/*
+ * 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 com.acme.services.creditAgency;
+
+import org.apache.log4j.Logger;
+import org.jboss.soa.esb.actions.AbstractActionLifecycle;
+import org.jboss.soa.esb.helpers.ConfigTree;
+import org.jboss.soa.esb.message.Message;
+import org.jboss.soa.overlord.jbossesb.util.XMLUtils;
+import org.w3c.dom.Node;
+
+public class SetCreditCheckResponseMessageAction extends AbstractActionLifecycle {
+	
+	private static Logger logger = Logger.getLogger(SetCreditCheckResponseMessageAction.class);
+	
+	private ConfigTree config;
+	
+	public SetCreditCheckResponseMessageAction(ConfigTree config) {
+		this.config = config;
+	}
+	
+	public Message process(Message message) throws Exception{
+		
+		Node node = XMLUtils.getNode((String)message.getBody().get());
+		String idValue = node.getAttributes().getNamedItem("id").getNodeValue();
+		message.getBody().add("<CreditCheckResponse id=\"" + idValue +"\"></CreditCheckResponse>");
+		
+		logger.info("Updated credit message: "+message.getBody().get() +"' by thread of " + Thread.currentThread().getName());
+
+		return(message);
+	}
+	
+
+}
+
+

Added: cdl/trunk/samples/jbossesb/creditAgency/src/main/resources/META-INF/deployment.xml
===================================================================
--- cdl/trunk/samples/jbossesb/creditAgency/src/main/resources/META-INF/deployment.xml	                        (rev 0)
+++ cdl/trunk/samples/jbossesb/creditAgency/src/main/resources/META-INF/deployment.xml	2008-07-29 12:27:41 UTC (rev 203)
@@ -0,0 +1,11 @@
+<jbossesb-deployment>
+  <depends>jboss.esb.gen.destination:service=Queue,name=esb-creditAgency</depends>
+  <depends>jboss.esb.gen.destination:service=Queue,name=esb-creditAgency1</depends>
+  <depends>jboss.esb.gen.destination:service=Queue,name=esb-creditAgency2</depends>
+  <loader-repository>
+      org.jboss.soa.overlord.creditAgency:loader=creditAgency
+      <loader-repository-config>
+         java2ParentDelegaton=false
+      </loader-repository-config>
+  </loader-repository>
+</jbossesb-deployment>

Added: cdl/trunk/samples/jbossesb/creditAgency/src/main/resources/META-INF/jboss-esb.xml
===================================================================
--- cdl/trunk/samples/jbossesb/creditAgency/src/main/resources/META-INF/jboss-esb.xml	                        (rev 0)
+++ cdl/trunk/samples/jbossesb/creditAgency/src/main/resources/META-INF/jboss-esb.xml	2008-07-29 12:27:41 UTC (rev 203)
@@ -0,0 +1,129 @@
+<?xml version = "1.0" encoding = "UTF-8"?>
+<!--
+  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,
+-->
+<jbossesb xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd" 
+	parameterReloadSecs="5000">
+
+	<providers>
+		<jms-provider name="JBossMQ" connection-factory="ConnectionFactory" 
+					jndi-context-factory="org.jnp.interfaces.NamingContextFactory"
+					jndi-URL="localhost">
+			<jms-bus busid="CreditAgencyService">
+				<jms-message-filter dest-type="QUEUE" dest-name="queue/esb-creditAgency" />
+			</jms-bus>
+			<jms-bus busid="CreditAgencyService1">
+				<jms-message-filter dest-type="QUEUE" dest-name="queue/esb-creditAgency1" />
+			</jms-bus>
+			<jms-bus busid="CreditAgencyService2">
+				<jms-message-filter dest-type="QUEUE" dest-name="queue/esb-creditAgency2" />
+			</jms-bus>
+		</jms-provider>
+
+	</providers>
+	<services>    
+		<service category="PurchaseGoods.CreditAgency" name="CreditAgency.main" description="">
+			<listeners>
+				<jms-listener name="CreditAgencyServiceListener"
+							  busidref="CreditAgencyService"
+							  maxThreads="1"/>							  
+			</listeners>
+			<actions mep="OneWay">
+				<action class="org.jboss.soa.overlord.jbossesb.actions.CreateSessionAction"
+							process="process" name="c1">
+					<property name="session" value="com.acme.services.creditAgency.CreditAgencyPurchase" />
+				</action>
+				<action class="org.jboss.soa.overlord.jbossesb.actions.ReceiveMessageAction"
+							process="process" name="c2">
+					<property name="operation" value="checkCredit" />
+					<property name="messageType" value="CreditCheckRequest" />
+					<property name="clientEPR" value="broker" />
+					<property name="identities" >
+						<identity type="primary" >
+							<token name="id" locator="//@id" />
+						</identity>
+					</property>
+				</action>			
+				<action class="org.jboss.soa.overlord.jbossesb.actions.IfAction"
+							process="process" name="c3">
+					<property name="paths">
+						<if decision-method="isCreditValid"
+								service-category="PurchaseGoods.CreditAgency"
+								service-name="CreditAgency.decision1"
+								immediate="true" />
+						<else service-category="PurchaseGoods.CreditAgency"
+								service-name="CreditAgency.decision2"
+								immediate="true" />
+					</property>				
+				</action>
+			</actions>
+		</service>
+
+		<service category="PurchaseGoods.CreditAgency" name="CreditAgency.decision1" description="">
+			<listeners>
+				<jms-listener name="CreditAgencyServiceListener1"
+							  busidref="CreditAgencyService1"
+							  maxThreads="1"/>							  
+			</listeners>
+			<actions mep="OneWay">
+				<action class="com.acme.services.creditAgency.SetCreditCheckResponseMessageAction"
+							process="process" name="d2">
+				</action>
+				<action class="org.jboss.soa.overlord.jbossesb.actions.SendMessageAction"
+							process="process" name="d3">
+					<property name="session" value="com.acme.services.creditAgency.CreditAgencyPurchase" />
+					<property name="operation" value="checkCredit" />
+					<property name="messageType" value="CreditCheckResponse" />
+					<property name="clientEPR" value="broker" />
+					<property name="identities" >
+						<identity type="primary" >
+							<token name="id" locator="//@id" />
+						</identity>
+					</property>
+				</action>
+			</actions>
+		</service>
+
+		<service category="PurchaseGoods.CreditAgency" name="CreditAgency.decision2" description="">
+			<listeners>
+				<jms-listener name="CreditAgencyServiceListener"
+							  busidref="CreditAgencyService2"
+							  maxThreads="1"/>							  
+			</listeners>
+			<actions mep="OneWay">
+				<action class="com.acme.services.creditAgency.SetCreditCheckInvalidMessageAction"
+							process="process" name="e2">
+				</action>
+				<action class="org.jboss.soa.overlord.jbossesb.actions.SendMessageAction"
+							process="process" name="e3">
+					<property name="session" value="com.acme.services.creditAgency.CreditAgencyPurchase" />
+					<property name="operation" value="checkCredit" />
+					<property name="messageType" value="CreditCheckInvalid" />
+					<property name="clientEPR" value="broker" />
+					<property name="identities" >
+						<identity type="primary" >
+							<token name="id" locator="//@id" />
+						</identity>
+					</property>
+				</action>
+			</actions>
+		</service>
+	</services>
+			
+</jbossesb>

Added: cdl/trunk/samples/jbossesb/creditAgency/src/main/resources/hibernate.cfg.xml
===================================================================
--- cdl/trunk/samples/jbossesb/creditAgency/src/main/resources/hibernate.cfg.xml	                        (rev 0)
+++ cdl/trunk/samples/jbossesb/creditAgency/src/main/resources/hibernate.cfg.xml	2008-07-29 12:27:41 UTC (rev 203)
@@ -0,0 +1,79 @@
+<!DOCTYPE hibernate-configuration SYSTEM
+"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
+<!--
+  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,
+  @author JBoss Inc.
+-->
+<hibernate-configuration>
+	<session-factory>
+		<!--property name="hibernate.connection.driver_class">
+			org.gjt.mm.mysql.Driver
+		</property>
+		<property name="hibernate.connection.url">
+			jdbc:mysql://localhost:3306/cdl
+		</property>
+		<property name="hibernate.connection.username">
+			root
+		</property>
+		<property name="hibernate.connection.password">
+			jeff
+		</property>
+		<property name="hibernate.dialect">
+			org.hibernate.dialect.MySQL5Dialect
+		</property-->
+		
+		<property name="hibernate.connection.driver_class">
+			org.hsqldb.jdbcDriver
+		</property>
+		<property name="hibernate.connection.url">
+			jdbc:hsqldb:hsql://localhost
+		</property>
+		<property name="hibernate.connection.username">
+			sa
+		</property>
+		<property name="hibernate.dialect">
+			org.hibernate.dialect.HSQLDialect
+		</property>
+		
+		<!-- Use the C3P0 connection pool provider -->
+		<property name="hibernate.c3p0.min_size">5</property>
+		<property name="hibernate.c3p0.max_size">20</property>
+		<property name="hibernate.c3p0.timeout">300</property>
+		<property name="hibernate.c3p0.max_statements">50</property>
+		<property name="hibernate.c3p0.idle_test_period">3000</property>
+		
+		<property name="current_session_context_class">thread</property>
+		<property name="hibernate.connection.isolation">4</property>
+		
+		<!-- Show and print nice SQL on stdout -->
+		<property name="show_sql">false</property>
+		<property name="format_sql">true</property>
+		
+		<!-- List of annotationed classes (Internal conversation class)-->
+		<mapping class="org.jboss.soa.overlord.conversation.Session" />
+		<mapping class="org.jboss.soa.overlord.conversation.ScheduleItem"/>
+		<mapping class="org.jboss.soa.overlord.conversation.JoinState"/>
+		<mapping class="org.jboss.soa.overlord.conversation.Identity"/>
+		<mapping class="org.jboss.soa.overlord.conversation.EPRWrapper"/>
+		
+		<!-- List of Business State class -->
+		<mapping class="com.acme.services.creditAgency.CreditAgencyPurchase" />
+		
+	</session-factory>
+</hibernate-configuration>

Added: cdl/trunk/samples/jbossesb/creditAgency/src/main/resources/jbmq-queue-service.xml
===================================================================
--- cdl/trunk/samples/jbossesb/creditAgency/src/main/resources/jbmq-queue-service.xml	                        (rev 0)
+++ cdl/trunk/samples/jbossesb/creditAgency/src/main/resources/jbmq-queue-service.xml	2008-07-29 12:27:41 UTC (rev 203)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+<mbean code="org.jboss.mq.server.jmx.Queue"
+	 name="jboss.esb.gen.destination:service=Queue,name=esb-creditAgency">
+  <depends optional-attribute-name="DestinationManager">
+  	jboss.mq:service=DestinationManager
+  </depends>
+</mbean>
+<mbean code="org.jboss.mq.server.jmx.Queue"
+	 name="jboss.esb.gen.destination:service=Queue,name=esb-creditAgency1">
+  <depends optional-attribute-name="DestinationManager">
+  	jboss.mq:service=DestinationManager
+  </depends>
+</mbean>
+<mbean code="org.jboss.mq.server.jmx.Queue"
+	 name="jboss.esb.gen.destination:service=Queue,name=esb-creditAgency2">
+  <depends optional-attribute-name="DestinationManager">
+  	jboss.mq:service=DestinationManager
+  </depends>
+</mbean>
+
+</server>

Added: cdl/trunk/samples/jbossesb/creditAgency/src/main/resources/log4j.xml
===================================================================
--- cdl/trunk/samples/jbossesb/creditAgency/src/main/resources/log4j.xml	                        (rev 0)
+++ cdl/trunk/samples/jbossesb/creditAgency/src/main/resources/log4j.xml	2008-07-29 12:27:41 UTC (rev 203)
@@ -0,0 +1,126 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- ===================================================================== -->
+<!--                                                                       -->
+<!--  Log4j Configuration                                                  -->
+<!--                                                                       -->
+<!-- ===================================================================== -->
+
+<!--
+   | For more configuration infromation and examples see the Jakarta Log4j
+   | owebsite: http://jakarta.apache.org/log4j
+ -->
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
+
+   <!-- ================================= -->
+   <!-- Preserve messages in a local file -->
+   <!-- ================================= -->
+
+   <!-- A time/date based rolling appender -->
+   <appender name="FILE" class="org.apache.log4j.FileAppender">
+      <!--errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/-->
+      <param name="File" value="./creditAgency.log"/>
+      <param name="Append" value="false"/>
+
+      <!-- Rollover at midnight each day -->
+      <param name="DatePattern" value="'.'yyyy-MM-dd"/>
+
+      <!-- Rollover at the top of each hour
+      <param name="DatePattern" value="'.'yyyy-MM-dd-HH"/>
+      -->
+
+      <layout class="org.apache.log4j.PatternLayout">
+         <!-- The default pattern: Date Priority [Category] Message\n -->
+         <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
+
+         <!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
+         <param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x) %m%n"/>
+          -->
+      </layout>
+   </appender>
+
+
+   <!-- ============================== -->
+   <!-- Append messages to the console -->
+   <!-- ============================== -->
+
+   <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+      <!--errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/-->
+      <param name="Target" value="System.out"/>
+
+      <layout class="org.apache.log4j.PatternLayout">
+         <!-- The default pattern: Date Priority [Category] Message\n -->
+         <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
+      </layout>
+   </appender>
+
+   
+   <!-- ================ -->
+   <!-- Limit categories -->
+   <!-- ================ -->
+
+   <!-- Limit the org.apache category to INFO as its DEBUG is verbose -->
+   <category name="org.apache">
+      <priority value="INFO"/>
+   </category>
+
+   <!-- Limit the org.jboss.serial (jboss-serialization) to INFO as its DEBUG is verbose -->
+   <category name="org.jboss.serial">
+      <priority value="INFO"/>
+   </category>
+
+   <!-- Limit the org.jgroups category to WARN as its INFO is verbose -->
+   <category name="org.jgroups">
+      <priority value="WARN"/>
+   </category>
+
+   <!-- Limit the jacorb category to WARN as its INFO is verbose -->
+   <category name="jacorb">
+      <priority value="WARN"/>
+   </category>
+   
+
+   <!-- Limit the JSR77 categories -->
+   <category name="org.jboss.management">
+      <priority value="INFO"/>
+   </category>
+
+   <!-- Limit Axis based webservice category -->
+   <category name="org.jboss.webservice">
+      <priority value="DEBUG"/>
+   </category>
+   <category name="org.jboss.axis">
+      <priority value="INFO"/>
+   </category>
+
+   <category name="org.milyn">
+      <priority value="INFO"/>
+   </category>
+   <category name="org.milyn.delivery.SmooksXML">
+      <priority value="INFO"/>
+   </category>
+   <category name="org.milyn.delivery.serialize.Serializer">
+      <priority value="INFO"/>
+   </category>
+   <category name="org.milyn.cdr.XMLConfigDigester">
+      <priority value="INFO"/>
+   </category>
+	
+	<category name="org.jboss.soa.overlord">
+		<priority value="DEBUG" />
+	</category>
+
+   <!-- ======================= -->
+   <!-- Setup the Root category -->
+   <!-- ======================= -->
+
+   <root>
+      <priority value="INFO" />
+      <appender-ref ref="CONSOLE"/>
+      <appender-ref ref="FILE"/>
+   </root>
+
+
+</log4j:configuration>

Modified: cdl/trunk/samples/jbossesb/purchasing/pom.xml
===================================================================
--- cdl/trunk/samples/jbossesb/purchasing/pom.xml	2008-07-28 17:31:19 UTC (rev 202)
+++ cdl/trunk/samples/jbossesb/purchasing/pom.xml	2008-07-29 12:27:41 UTC (rev 203)
@@ -61,7 +61,7 @@
 			<groupId>org.apache.maven.plugins</groupId>
 			<artifactId>maven-antrun-plugin</artifactId>
 			<executions>
-                          <!--export schemas to database -->
+             <!--export schemas to database -->
 			  <execution>
 			    <id>schemaexport</id>
 			    <phase>compile</phase>

Modified: cdl/trunk/samples/jbossesb/purchasing/src/main/resources/META-INF/deployment.xml
===================================================================
--- cdl/trunk/samples/jbossesb/purchasing/src/main/resources/META-INF/deployment.xml	2008-07-28 17:31:19 UTC (rev 202)
+++ cdl/trunk/samples/jbossesb/purchasing/src/main/resources/META-INF/deployment.xml	2008-07-29 12:27:41 UTC (rev 203)
@@ -8,7 +8,10 @@
   <depends>jboss.esb.gen.destination:service=Queue,name=esb-broker5</depends>
   <depends>jboss.esb.gen.destination:service=Queue,name=esb-broker6</depends>
   <depends>jboss.esb.gen.destination:service=Queue,name=esb-broker7</depends>
-  <depends>jboss.esb.gen.destination:service=Queue,name=esb-creditAgency</depends>
-  <depends>jboss.esb.gen.destination:service=Queue,name=esb-creditAgency1</depends>
-  <depends>jboss.esb.gen.destination:service=Queue,name=esb-creditAgency2</depends>
+  <loader-repository>
+     org.jboss.soa.overlord.purchasing:loader=purchasing
+      <loader-repository-config>
+         java2ParentDelegaton=true
+      </loader-repository-config>    
+  </loader-repository>
 </jbossesb-deployment>

Modified: cdl/trunk/samples/jbossesb/purchasing/src/main/resources/META-INF/jboss-esb.xml
===================================================================
--- cdl/trunk/samples/jbossesb/purchasing/src/main/resources/META-INF/jboss-esb.xml	2008-07-28 17:31:19 UTC (rev 202)
+++ cdl/trunk/samples/jbossesb/purchasing/src/main/resources/META-INF/jboss-esb.xml	2008-07-29 12:27:41 UTC (rev 203)
@@ -49,15 +49,6 @@
 			<jms-bus busid="BrokerService7">
 				<jms-message-filter dest-type="QUEUE" dest-name="queue/esb-broker7"/>
 			</jms-bus>
-			<jms-bus busid="CreditAgencyService">
-				<jms-message-filter dest-type="QUEUE" dest-name="queue/esb-creditAgency" />
-			</jms-bus>
-			<jms-bus busid="CreditAgencyService1">
-				<jms-message-filter dest-type="QUEUE" dest-name="queue/esb-creditAgency1" />
-			</jms-bus>
-			<jms-bus busid="CreditAgencyService2">
-				<jms-message-filter dest-type="QUEUE" dest-name="queue/esb-creditAgency2" />
-			</jms-bus>
 		</jms-provider>
 
 	</providers>
@@ -267,93 +258,6 @@
 				</action>
 			</actions>
 		</service>
-
-		<service category="PurchaseGoods.CreditAgency" name="CreditAgency.main" description="">
-			<listeners>
-				<jms-listener name="BrokerServiceListener"
-							  busidref="CreditAgencyService"
-							  maxThreads="1"/>							  
-			</listeners>
-			<actions mep="OneWay">
-				<action class="org.jboss.soa.overlord.jbossesb.actions.CreateSessionAction"
-							process="process" name="c1">
-					<property name="session" value="com.acme.services.creditAgency.CreditAgencyPurchase" />
-				</action>
-				<action class="org.jboss.soa.overlord.jbossesb.actions.ReceiveMessageAction"
-							process="process" name="c2">
-					<property name="operation" value="checkCredit" />
-					<property name="messageType" value="CreditCheckRequest" />
-					<property name="clientEPR" value="broker" />
-					<property name="identities" >
-						<identity type="primary" >
-							<token name="id" locator="//@id" />
-						</identity>
-					</property>
-				</action>			
-				<action class="org.jboss.soa.overlord.jbossesb.actions.IfAction"
-							process="process" name="c3">
-					<property name="paths">
-						<if decision-method="isCreditValid"
-								service-category="PurchaseGoods.CreditAgency"
-								service-name="CreditAgency.decision1"
-								immediate="true" />
-						<else service-category="PurchaseGoods.CreditAgency"
-								service-name="CreditAgency.decision2"
-								immediate="true" />
-					</property>				
-				</action>
-			</actions>
-		</service>
-
-		<service category="PurchaseGoods.CreditAgency" name="CreditAgency.decision1" description="">
-			<listeners>
-				<jms-listener name="BrokerServiceListener"
-							  busidref="CreditAgencyService1"
-							  maxThreads="1"/>							  
-			</listeners>
-			<actions mep="OneWay">
-				<action class="com.acme.services.creditAgency.SetCreditCheckResponseMessageAction"
-							process="process" name="d2">
-				</action>
-				<action class="org.jboss.soa.overlord.jbossesb.actions.SendMessageAction"
-							process="process" name="d3">
-					<property name="session" value="com.acme.services.creditAgency.CreditAgencyPurchase" />
-					<property name="operation" value="checkCredit" />
-					<property name="messageType" value="CreditCheckResponse" />
-					<property name="clientEPR" value="broker" />
-					<property name="identities" >
-						<identity type="primary" >
-							<token name="id" locator="//@id" />
-						</identity>
-					</property>
-				</action>
-			</actions>
-		</service>
-
-		<service category="PurchaseGoods.CreditAgency" name="CreditAgency.decision2" description="">
-			<listeners>
-				<jms-listener name="BrokerServiceListener"
-							  busidref="CreditAgencyService2"
-							  maxThreads="1"/>							  
-			</listeners>
-			<actions mep="OneWay">
-				<action class="com.acme.services.creditAgency.SetCreditCheckInvalidMessageAction"
-							process="process" name="e2">
-				</action>
-				<action class="org.jboss.soa.overlord.jbossesb.actions.SendMessageAction"
-							process="process" name="e3">
-					<property name="session" value="com.acme.services.creditAgency.CreditAgencyPurchase" />
-					<property name="operation" value="checkCredit" />
-					<property name="messageType" value="CreditCheckInvalid" />
-					<property name="clientEPR" value="broker" />
-					<property name="identities" >
-						<identity type="primary" >
-							<token name="id" locator="//@id" />
-						</identity>
-					</property>
-				</action>
-			</actions>
-		</service>
 	</services>
 			
 </jbossesb>

Modified: cdl/trunk/samples/jbossesb/purchasing/src/main/resources/hibernate.cfg.xml
===================================================================
--- cdl/trunk/samples/jbossesb/purchasing/src/main/resources/hibernate.cfg.xml	2008-07-28 17:31:19 UTC (rev 202)
+++ cdl/trunk/samples/jbossesb/purchasing/src/main/resources/hibernate.cfg.xml	2008-07-29 12:27:41 UTC (rev 203)
@@ -74,7 +74,6 @@
 		
 		<!-- List of Business State class -->
 		<mapping class="com.acme.services.broker.PurchaseGoods" />
-		<mapping class="com.acme.services.creditAgency.CreditAgencyPurchase" />
 		
 	</session-factory>
 </hibernate-configuration>

Modified: cdl/trunk/samples/jbossesb/purchasing/src/main/resources/jbmq-queue-service.xml
===================================================================
--- cdl/trunk/samples/jbossesb/purchasing/src/main/resources/jbmq-queue-service.xml	2008-07-28 17:31:19 UTC (rev 202)
+++ cdl/trunk/samples/jbossesb/purchasing/src/main/resources/jbmq-queue-service.xml	2008-07-29 12:27:41 UTC (rev 203)
@@ -55,23 +55,5 @@
   	jboss.mq:service=DestinationManager
   </depends>
 </mbean>
-<mbean code="org.jboss.mq.server.jmx.Queue"
-	 name="jboss.esb.gen.destination:service=Queue,name=esb-creditAgency">
-  <depends optional-attribute-name="DestinationManager">
-  	jboss.mq:service=DestinationManager
-  </depends>
-</mbean>
-<mbean code="org.jboss.mq.server.jmx.Queue"
-	 name="jboss.esb.gen.destination:service=Queue,name=esb-creditAgency1">
-  <depends optional-attribute-name="DestinationManager">
-  	jboss.mq:service=DestinationManager
-  </depends>
-</mbean>
-<mbean code="org.jboss.mq.server.jmx.Queue"
-	 name="jboss.esb.gen.destination:service=Queue,name=esb-creditAgency2">
-  <depends optional-attribute-name="DestinationManager">
-  	jboss.mq:service=DestinationManager
-  </depends>
-</mbean>
 
 </server>

Modified: cdl/trunk/samples/pom.xml
===================================================================
--- cdl/trunk/samples/pom.xml	2008-07-28 17:31:19 UTC (rev 202)
+++ cdl/trunk/samples/pom.xml	2008-07-29 12:27:41 UTC (rev 203)
@@ -24,8 +24,8 @@
 
 
 	<modules>
-		<module>jbossesb/purchasing</module>
-		<module>jbossesb/broker</module>
+		<!--module>jbossesb/purchasing</module>
+		<module>jbossesb/broker</module-->
 	</modules>
 
    <build>




More information about the overlord-commits mailing list