[jboss-svn-commits] JBL Code SVN: r9075 - in labs/jbossesb/trunk/product: install and 1 other directory.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Jan 29 14:07:59 EST 2007
Author: kurt.stam at jboss.com
Date: 2007-01-29 14:07:59 -0500 (Mon, 29 Jan 2007)
New Revision: 9075
Modified:
labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/StandAloneBootStrapper.java
labs/jbossesb/trunk/product/install/build.xml
labs/jbossesb/trunk/product/install/deployment.properties-example
Log:
Changes for the standalone launcher.
Modified: labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/StandAloneBootStrapper.java
===================================================================
--- labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/StandAloneBootStrapper.java 2007-01-29 19:06:35 UTC (rev 9074)
+++ labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/StandAloneBootStrapper.java 2007-01-29 19:07:59 UTC (rev 9075)
@@ -25,6 +25,7 @@
import java.io.File;
import org.apache.log4j.Logger;
+import org.apache.log4j.xml.DOMConfigurator;
import org.jboss.soa.esb.ConfigurationException;
import org.jboss.soa.esb.listeners.config.ConfigurationController;
import org.jboss.soa.esb.listeners.gateway.GatewayListenerController;
@@ -42,6 +43,12 @@
public static void main (String[] args) throws Exception
{
+ System.out.println("+----------------------------------------------------------+");
+ System.out.println("| |");
+ System.out.println("| Starting JBossESB... |");
+ System.out.println("| |");
+ System.out.println("+----------------------------------------------------------+");
+
Exception eT = null;
if (args.length < 1)
{
@@ -53,6 +60,15 @@
StandAloneBootStrapper boot = null;
String configName = args[0];
+ File configFile = new File(configName);
+ if (configFile.exists()) {
+ System.out.println("Reading config from " + configFile.getAbsolutePath());
+ String loggerConfig = configFile.getParent() + "/log4j.xml";
+ DOMConfigurator.configure(loggerConfig);
+ } else {
+
+ }
+
long lSecondsToRun = 365 * 24 * 3600; // run for 1 year (is it enough
// ?)
if (args.length > 1) try
Modified: labs/jbossesb/trunk/product/install/build.xml
===================================================================
--- labs/jbossesb/trunk/product/install/build.xml 2007-01-29 19:06:35 UTC (rev 9074)
+++ labs/jbossesb/trunk/product/install/build.xml 2007-01-29 19:07:59 UTC (rev 9075)
@@ -202,4 +202,21 @@
</copy>
</target>
+ <!-- Standalone deployer and launcher -->
+ <target name="launcher.install" description="installs the jbosseb launcher">
+ <mkdir dir="${org.jboss.esb.standalone.home}"/>
+ <copy todir="${org.jboss.esb.standalone.home}" overwrite="true">
+ <fileset dir="launcher" includes="**/*" />
+ </copy>
+ <copy todir="${org.jboss.esb.standalone.home}/lib" overwrite="true">
+ <fileset dir="${org.jboss.esb.dist.lib}" includes="jbossesb*.jar"
+ excludes="jbossesb-dependencies.jar" />
+ </copy>
+ <copy todir="${org.jboss.esb.standalone.home}/lib/ext" overwrite="true" >
+ <fileset dir="${org.jboss.esb.dist.lib}/ext" includes="*.jar" />
+ </copy>
+ </target>
+
+
+
</project>
Modified: labs/jbossesb/trunk/product/install/deployment.properties-example
===================================================================
--- labs/jbossesb/trunk/product/install/deployment.properties-example 2007-01-29 19:06:35 UTC (rev 9074)
+++ labs/jbossesb/trunk/product/install/deployment.properties-example 2007-01-29 19:07:59 UTC (rev 9075)
@@ -21,4 +21,7 @@
# if at a later stage you don't want to redeploy the config anymore
# with every deploy, but rather the sar only (not the configuration)
# then uncomment the following
-#org.jboss.esb.config.saronly.set=true
\ No newline at end of file
+#org.jboss.esb.config.saronly.set=true
+
+# jbossesb standalone root directory
+org.jboss.esb.standalone.home=/jbossesb-4.0.GA
\ No newline at end of file
More information about the jboss-svn-commits
mailing list