[jboss-svn-commits] JBL Code SVN: r5624 - labs/jbossesb/trunk/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/web
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue Aug 8 22:14:38 EDT 2006
Author: daniel.brum at jboss.com
Date: 2006-08-08 22:14:37 -0400 (Tue, 08 Aug 2006)
New Revision: 5624
Added:
labs/jbossesb/trunk/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/web/Launcher.java
Log:
Launcher for WS - won't be needed once deployed properly inside a WAR and deployed to JBoss AS.
Copied: labs/jbossesb/trunk/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/web/Launcher.java (from rev 5602, labs/jbossesb/trunk/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/web/LaunchDummy.java)
===================================================================
--- labs/jbossesb/trunk/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/web/LaunchDummy.java 2006-08-08 14:57:05 UTC (rev 5602)
+++ labs/jbossesb/trunk/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/web/Launcher.java 2006-08-09 02:14:37 UTC (rev 5624)
@@ -0,0 +1,56 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY 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 along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.soa.esb.samples.loanbroker.web;
+
+import org.jboss.soa.esb.listeners.*;
+
+public class Launcher {
+
+ /**
+ * @param args
+ */
+ public static void main(String[] args) throws Exception
+ {
+ final String CONFIG_FILE = "conf/LoanBrokerConfig.xml";
+ String configFile=null;
+ if (args.length < 1) {
+ System.out.println("Going to use default path to config file:" + CONFIG_FILE);
+ configFile=CONFIG_FILE;
+ } else {
+ configFile=args[0];
+ }
+ System.out.println("Using configFile=" + configFile);
+ GpListener oProc = new GpListener(args[0]);
+ oProc.run();
+ GpListener.State oS = oProc.getState();
+
+ if (null!=oS.getException())
+ {
+ org.apache.log4j.Logger.getLogger(Launcher.class).error
+ ("GpListener <"+args[0]+"> FAILED\n",oS.getException());
+ }
+ System.exit(oS.getCompletionCode());
+
+ }
+
+}
More information about the jboss-svn-commits
mailing list