diff config/start-trans-blitz_with_httpd21.config @ 0:3dc0c5604566

Initial checkin of blitz 2.0 fcs - no installer yet.
author Dan Creswell <dan.creswell@gmail.com>
date Sat, 21 Mar 2009 11:00:06 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/config/start-trans-blitz_with_httpd21.config	Sat Mar 21 11:00:06 2009 +0000
@@ -0,0 +1,71 @@
+import com.sun.jini.start.ServiceDescriptor;
+import com.sun.jini.start.NonActivatableServiceDescriptor;
+import com.sun.jini.config.ConfigUtil;
+
+// Starts up Blitz in non-activatable mode with an embedded httpd to save
+// starting it up separately from the command-line.  Several people suggested
+// this change:  Ussama Baggili, Olaf Bergner.
+//
+com.sun.jini.start {
+        private static codebasePort = "8081";
+
+        private static codebase = ConfigUtil.concat(new Object[] {
+            "http://", ConfigUtil.getHostName(), ":", codebasePort, "/",
+            "blitz-dl.jar"});
+
+        // Should be updated by installer
+        // JINI 2.0 libs should be in this directory
+        private static jiniRoot = "/Users/dan/jini/jini2_1/lib/";
+
+        // Should be edited to point at the directory containing the je.jar
+        // a version of which can be found in the dbjava directory of the
+	    // distribution
+        //
+        private static dbLib = "dbjava/je.jar";
+
+        // The directory where you installed Blitz
+        //
+        private static blitzRoot = "/Users/dan/src/jini/blitz_2fcs/";
+
+        private static blitzLib = ConfigUtil.concat(new Object[] {
+                                    blitzRoot, "lib/"
+                                  });
+
+        private static otherLib = ConfigUtil.concat(new Object[] {
+                                    blitzRoot, "thirdpartylib/"
+                                  });
+
+        private static separator = System.getProperty("path.separator");
+
+        static classpath = ConfigUtil.concat(new Object[] {
+            jiniRoot, "jsk-lib.jar",
+            separator, jiniRoot, "sun-util.jar", separator, dbLib, separator,
+			otherLib, "backport-util-concurrent50.jar",
+            separator, blitzLib, "blitz.jar"});
+
+        private static config = ConfigUtil.concat(new Object[] {
+            blitzRoot, "config/blitz.config"});
+
+        private static policy = ConfigUtil.concat(new Object[] {
+            blitzRoot, "config/policy.all"});
+
+        static serviceDescriptors = new ServiceDescriptor[] {
+                 // httpd
+                 new NonActivatableServiceDescriptor(
+                 "",
+                 policy,
+                 ConfigUtil.concat(new Object[] {jiniRoot, "tools.jar"}),
+                 "com.sun.jini.tool.ClassServer",
+                 new String[]{"-port",
+                 codebasePort,
+    			 "-dir", 
+                 blitzLib,
+		    	 "-verbose"}),
+
+                 // Blitz
+                 new NonActivatableServiceDescriptor(
+                        codebase, policy, classpath,
+                        "org.dancres.blitz.remote.BlitzServiceImpl",
+                         new String[] { config }
+        )};
+}