[overlord-commits] Overlord SVN: r29 - in trunk/samples/esb/purchasing: system/src/org/jboss/soa/overlord/conversation and 1 other directory.

overlord-commits at lists.jboss.org overlord-commits at lists.jboss.org
Mon Jun 16 12:22:15 EDT 2008


Author: jeff.yuchang
Date: 2008-06-16 06:21:52 -0400 (Mon, 16 Jun 2008)
New Revision: 29

Added:
   trunk/samples/esb/purchasing/system/src/org/jboss/soa/overlord/conversation/ClassLoaderUtil.java
Modified:
   trunk/samples/esb/purchasing/client/src/com/acme/services/buyer/BuyerClient.java
Log:
[SOAG-11]
* Add the missing file in last commit.


Modified: trunk/samples/esb/purchasing/client/src/com/acme/services/buyer/BuyerClient.java
===================================================================
--- trunk/samples/esb/purchasing/client/src/com/acme/services/buyer/BuyerClient.java	2008-06-14 05:27:44 UTC (rev 28)
+++ trunk/samples/esb/purchasing/client/src/com/acme/services/buyer/BuyerClient.java	2008-06-16 10:21:52 UTC (rev 29)
@@ -5,20 +5,17 @@
 import org.jboss.soa.esb.message.format.MessageFactory;
 import org.jboss.soa.esb.message.format.MessageType;
 import org.jboss.soa.esb.client.ServiceInvoker;
+import org.jboss.soa.esb.common.Configuration;
 
 public class BuyerClient {
-
-	public static void main(String[] args) {
-		BuyerClient client=new BuyerClient();
-		
-		client.run();
-	}
 	
+    private static Logger logger = Logger.getLogger(BuyerClient.class);
+    
+    private ServiceInvoker brokerInvoker; 
+	
     public BuyerClient() {
 
-		String regClass =
-			org.jboss.soa.esb.common.Configuration.getRegistryFactoryClass();	
-
+		String regClass = Configuration.getRegistryFactoryClass();	
 		System.setProperty("javax.xml.registry.ConnectionFactoryClass",
 							regClass);
 		
@@ -50,7 +47,10 @@
         }
     }
     
-    private static Logger logger = Logger.getLogger(BuyerClient.class);
-    
-    private ServiceInvoker brokerInvoker; 
+	public static void main(String[] args) {
+		BuyerClient client=new BuyerClient();
+		
+		client.run();
+	}
+
 }

Added: trunk/samples/esb/purchasing/system/src/org/jboss/soa/overlord/conversation/ClassLoaderUtil.java
===================================================================
--- trunk/samples/esb/purchasing/system/src/org/jboss/soa/overlord/conversation/ClassLoaderUtil.java	                        (rev 0)
+++ trunk/samples/esb/purchasing/system/src/org/jboss/soa/overlord/conversation/ClassLoaderUtil.java	2008-06-16 10:21:52 UTC (rev 29)
@@ -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.conversation;
+
+/**
+ * @author jeffyu
+ *
+ */
+public class ClassLoaderUtil {
+	
+	public static Class<?> loadClass(String className) throws ClassNotFoundException {
+		return Thread.currentThread().getContextClassLoader().loadClass(className);
+	}
+
+}




More information about the overlord-commits mailing list