[jboss-svn-commits] JBL Code SVN: r8476 - labs/jbossesb/trunk/product/samples/trailblazer/esb/src/org/jboss/soa/esb/samples/trailblazer/util

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Dec 20 22:40:06 EST 2006


Author: daniel.brum at jboss.com
Date: 2006-12-20 22:40:05 -0500 (Wed, 20 Dec 2006)
New Revision: 8476

Modified:
   labs/jbossesb/trunk/product/samples/trailblazer/esb/src/org/jboss/soa/esb/samples/trailblazer/util/Launcher.java
Log:
removed non Config way of launching listeners - commented out only for now

Modified: labs/jbossesb/trunk/product/samples/trailblazer/esb/src/org/jboss/soa/esb/samples/trailblazer/util/Launcher.java
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer/esb/src/org/jboss/soa/esb/samples/trailblazer/util/Launcher.java	2006-12-21 03:38:28 UTC (rev 8475)
+++ labs/jbossesb/trunk/product/samples/trailblazer/esb/src/org/jboss/soa/esb/samples/trailblazer/util/Launcher.java	2006-12-21 03:40:05 UTC (rev 8476)
@@ -77,54 +77,54 @@
 		
 		
 	}
+	//USING THE NEW CONFIG CONTROLLER METHOS - NOT NEEDED ANYMORE
+//	private void triggerListener(long runTime, String messageAwareConfigFile, String gatewayConfigFile) throws Exception{
+//		try 
+//        {
+//			//setupRegistry();
+//			runBeforeAllTests();
+//			
+//			
+//    		if (null != messageAwareConfigFile) {
+//    			_logger.info("starting message aware listener with config file - " + messageAwareConfigFile);
+//    			_esbListController = EsbListenerControllerFactory.getInstance(messageAwareConfigFile);
+//    		}
+//    		
+//    		if (null != gatewayConfigFile) {
+//    			_logger.info("starting gateway listener with config file - " + gatewayConfigFile);
+//    			_gatewayController = new GatewayListenerController(gatewayConfigFile);
+//    			new Thread(_gatewayController).start();
+//    			Thread.sleep(4000);
+//    		}
+//
+//    		//Only shutdown the ESB services if specified
+//    		if (runTime > 0) {
+//	    		_logger.info("going to sleep now for " + runTime + " seconds...");    		
+//	    		Thread.sleep(runTime*1000);
+//	    		if (null != messageAwareConfigFile) {
+//	    			_logger.info("shutting down message aware listener...");
+//	    			_esbListController.requestEnd();
+//	    		}
+//	    		
+//	    		if (null != gatewayConfigFile) {
+//	    			_logger.info("shutting down gateway listener...");
+//	    			_gatewayController.requestEnd();
+//	    		}
+//    		}
+//    		    	
+//        }
+//        catch (Exception e) { 
+//        	_logger.error(e);
+//        	e.printStackTrace();
+//        	throw(e);
+//        }
+//        finally { 
+//        	Launcher.runAfterAllTests(); 
+//        	}
+//	
+//
+//	}
 	
-	private void triggerListener(long runTime, String messageAwareConfigFile, String gatewayConfigFile) throws Exception{
-		try 
-        {
-			//setupRegistry();
-			runBeforeAllTests();
-			
-			
-    		if (null != messageAwareConfigFile) {
-    			_logger.info("starting message aware listener with config file - " + messageAwareConfigFile);
-    			_esbListController = EsbListenerControllerFactory.getInstance(messageAwareConfigFile);
-    		}
-    		
-    		if (null != gatewayConfigFile) {
-    			_logger.info("starting gateway listener with config file - " + gatewayConfigFile);
-    			_gatewayController = new GatewayListenerController(gatewayConfigFile);
-    			new Thread(_gatewayController).start();
-    			Thread.sleep(4000);
-    		}
-
-    		//Only shutdown the ESB services if specified
-    		if (runTime > 0) {
-	    		_logger.info("going to sleep now for " + runTime + " seconds...");    		
-	    		Thread.sleep(runTime*1000);
-	    		if (null != messageAwareConfigFile) {
-	    			_logger.info("shutting down message aware listener...");
-	    			_esbListController.requestEnd();
-	    		}
-	    		
-	    		if (null != gatewayConfigFile) {
-	    			_logger.info("shutting down gateway listener...");
-	    			_gatewayController.requestEnd();
-	    		}
-    		}
-    		    	
-        }
-        catch (Exception e) { 
-        	_logger.error(e);
-        	e.printStackTrace();
-        	throw(e);
-        }
-        finally { 
-        	Launcher.runAfterAllTests(); 
-        	}
-	
-
-	}
-	
 protected static void runBeforeAllTests() throws Exception{	
 	//System.setProperty("com.arjuna.common.util.propertyservice.verbosePropertyManager", "on");
 	String baseDir="";




More information about the jboss-svn-commits mailing list