Mercurial > hg > blitz_condensed
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3dc0c5604566 |
---|---|
1 import com.sun.jini.start.ServiceDescriptor; | |
2 import com.sun.jini.start.NonActivatableServiceDescriptor; | |
3 import com.sun.jini.config.ConfigUtil; | |
4 | |
5 // Starts up Blitz in non-activatable mode with an embedded httpd to save | |
6 // starting it up separately from the command-line. Several people suggested | |
7 // this change: Ussama Baggili, Olaf Bergner. | |
8 // | |
9 com.sun.jini.start { | |
10 private static codebasePort = "8081"; | |
11 | |
12 private static codebase = ConfigUtil.concat(new Object[] { | |
13 "http://", ConfigUtil.getHostName(), ":", codebasePort, "/", | |
14 "blitz-dl.jar"}); | |
15 | |
16 // Should be updated by installer | |
17 // JINI 2.0 libs should be in this directory | |
18 private static jiniRoot = "/Users/dan/jini/jini2_1/lib/"; | |
19 | |
20 // Should be edited to point at the directory containing the je.jar | |
21 // a version of which can be found in the dbjava directory of the | |
22 // distribution | |
23 // | |
24 private static dbLib = "dbjava/je.jar"; | |
25 | |
26 // The directory where you installed Blitz | |
27 // | |
28 private static blitzRoot = "/Users/dan/src/jini/blitz_2fcs/"; | |
29 | |
30 private static blitzLib = ConfigUtil.concat(new Object[] { | |
31 blitzRoot, "lib/" | |
32 }); | |
33 | |
34 private static otherLib = ConfigUtil.concat(new Object[] { | |
35 blitzRoot, "thirdpartylib/" | |
36 }); | |
37 | |
38 private static separator = System.getProperty("path.separator"); | |
39 | |
40 static classpath = ConfigUtil.concat(new Object[] { | |
41 jiniRoot, "jsk-lib.jar", | |
42 separator, jiniRoot, "sun-util.jar", separator, dbLib, separator, | |
43 otherLib, "backport-util-concurrent50.jar", | |
44 separator, blitzLib, "blitz.jar"}); | |
45 | |
46 private static config = ConfigUtil.concat(new Object[] { | |
47 blitzRoot, "config/blitz.config"}); | |
48 | |
49 private static policy = ConfigUtil.concat(new Object[] { | |
50 blitzRoot, "config/policy.all"}); | |
51 | |
52 static serviceDescriptors = new ServiceDescriptor[] { | |
53 // httpd | |
54 new NonActivatableServiceDescriptor( | |
55 "", | |
56 policy, | |
57 ConfigUtil.concat(new Object[] {jiniRoot, "tools.jar"}), | |
58 "com.sun.jini.tool.ClassServer", | |
59 new String[]{"-port", | |
60 codebasePort, | |
61 "-dir", | |
62 blitzLib, | |
63 "-verbose"}), | |
64 | |
65 // Blitz | |
66 new NonActivatableServiceDescriptor( | |
67 codebase, policy, classpath, | |
68 "org.dancres.blitz.remote.BlitzServiceImpl", | |
69 new String[] { config } | |
70 )}; | |
71 } |