[jboss-svn-commits] JBL Code SVN: r8553 - labs/jbossesb/trunk/product/samples/quickstarts/helloworld_file_action/src/quickstart

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Dec 22 12:28:00 EST 2006


Author: estebanschifman
Date: 2006-12-22 12:27:58 -0500 (Fri, 22 Dec 2006)
New Revision: 8553

Removed:
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld_file_action/src/quickstart/Launcher.java
Log:
Replaced by StandAloneBootStrapper

Deleted: labs/jbossesb/trunk/product/samples/quickstarts/helloworld_file_action/src/quickstart/Launcher.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld_file_action/src/quickstart/Launcher.java	2006-12-22 17:23:53 UTC (rev 8552)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld_file_action/src/quickstart/Launcher.java	2006-12-22 17:27:58 UTC (rev 8553)
@@ -1,81 +0,0 @@
-package quickstart;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.apache.log4j.Logger;
-import org.jboss.soa.esb.listeners.gateway.GatewayListenerController;
-import org.jboss.soa.esb.listeners.message.EsbListenerController;
-import org.jboss.soa.esb.listeners.message.EsbListenerControllerFactory;
-
-
-public class Launcher {	
-	private static Log log = LogFactory.getLog(Launcher.class);
-	
-	private EsbListenerController	_esbListController;
-	private GatewayListenerController _gatewayController;
-	
-	
-	
-	private Logger _logger = Logger.getLogger(Launcher.class);
-	
-	public static void main (String args[]) throws Exception {
-		
-		log.info("args passed into Launcher: " + args.length);
-		for (int x=0; x<args.length; x++)
-			log.info("arg[" + x + "]=" + args[x]);
-		
-		
-		Launcher launcher = new Launcher();
-		
-		launcher.triggerListener(Long.valueOf(args[0]).longValue(), args[1], args[2]);
-	
-	}
-	
-	private void triggerListener(long runTime, String messageAwareConfigFile, 
-		String gatewayConfigFile) throws Exception{
-		try 
-        {
-								
-    		if (null != messageAwareConfigFile) {
-    			_logger.info("starting message aware listener with config file - " + 
-    					messageAwareConfigFile);
-    			_esbListController = EsbListenerControllerFactory.getInstance(messageAwareConfigFile);
-    			Thread.sleep(3000);
-    		}
-    		if (null != gatewayConfigFile) {
-    			_logger.info("starting gateway listener with config file - " + 
-    					gatewayConfigFile);
-    			_gatewayController = new GatewayListenerController(gatewayConfigFile);
-    			new Thread(_gatewayController).start();
-    			Thread.sleep(2000);
-    		}
-    		
-    		System.out.println("**Listener Ready**");
-    		
-//    		This code is used to automatically shutdown the listeners which
-//    		might be useful for automated testing purposes. It is not needed
-//    		in the quickstart samples.
-//    		_logger.info("going to sleep now for " + runTime + " milliseconds...");    		
-//    		Thread.sleep(runTime);
-//    		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);
-        	throw(e);
-        }
-        
-	
-	}		
-	
-
-}
\ No newline at end of file




More information about the jboss-svn-commits mailing list