Author: thobbs
Date: Thu Aug 26 13:07:38 2010
New Revision: 989663

URL: http://svn.apache.org/viewvc?rev=989663&view=rev
Log:
Added sample scripts to start JavaSpace and Transaction Manager.  Added 
Eclipse's bin dir to svn:ignore

Added:
    incubator/river/jtsk/trunk/examples/hello/config/jrmp-mahalo-group.config
    incubator/river/jtsk/trunk/examples/hello/config/jrmp-outrigger-group.config
    incubator/river/jtsk/trunk/examples/hello/config/mahalo.policy
    incubator/river/jtsk/trunk/examples/hello/config/outrigger.policy
    incubator/river/jtsk/trunk/examples/hello/config/start-mahalo-group.config
    
incubator/river/jtsk/trunk/examples/hello/config/start-outrigger-group.config
    incubator/river/jtsk/trunk/examples/hello/scripts/jrmp-mahalo-group.bat
    incubator/river/jtsk/trunk/examples/hello/scripts/jrmp-outrigger-group.bat
Modified:
    incubator/river/jtsk/trunk/   (props changed)

Propchange: incubator/river/jtsk/trunk/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Aug 26 13:07:38 2010
@@ -9,3 +9,4 @@ build
 qa_output.txt
 lib-dl
 dist
+bin

Added: incubator/river/jtsk/trunk/examples/hello/config/jrmp-mahalo-group.config
URL: 
http://svn.apache.org/viewvc/incubator/river/jtsk/trunk/examples/hello/config/jrmp-mahalo-group.config?rev=989663&view=auto
==============================================================================
--- incubator/river/jtsk/trunk/examples/hello/config/jrmp-mahalo-group.config 
(added)
+++ incubator/river/jtsk/trunk/examples/hello/config/jrmp-mahalo-group.config 
Thu Aug 26 13:07:38 2010
@@ -0,0 +1,18 @@
+import net.jini.core.entry.Entry;
+import net.jini.lookup.entry.Name;
+import net.jini.lookup.entry.Comment;
+
+com.sun.jini.mahalo{
+
+       name = "Transaction Service (Mahalo)";
+       
+       initialLookupAttributes=new Entry[]{    new Name(name)};
+       
+       initialLookupGroups=new String []{
+               "nonsecure.hello.example.jini.sun.com"
+       };
+
+       serverExporter= new net.jini.jrmp.JrmpExporter();
+       
+}
+

Added: 
incubator/river/jtsk/trunk/examples/hello/config/jrmp-outrigger-group.config
URL: 
http://svn.apache.org/viewvc/incubator/river/jtsk/trunk/examples/hello/config/jrmp-outrigger-group.config?rev=989663&view=auto
==============================================================================
--- 
incubator/river/jtsk/trunk/examples/hello/config/jrmp-outrigger-group.config 
(added)
+++ 
incubator/river/jtsk/trunk/examples/hello/config/jrmp-outrigger-group.config 
Thu Aug 26 13:07:38 2010
@@ -0,0 +1,18 @@
+import net.jini.core.entry.Entry;
+import net.jini.lookup.entry.Name;
+import net.jini.lookup.entry.Comment;
+
+com.sun.jini.outrigger{
+
+       name = "Java Space (Outrigger)";
+       
+       initialLookupAttributes=new Entry[]{    new Name(name)};
+       
+       initialLookupGroups=new String []{
+               "nonsecure.hello.example.jini.sun.com"
+       };
+
+       serverExporter= new net.jini.jrmp.JrmpExporter();
+       
+}
+

Added: incubator/river/jtsk/trunk/examples/hello/config/mahalo.policy
URL: 
http://svn.apache.org/viewvc/incubator/river/jtsk/trunk/examples/hello/config/mahalo.policy?rev=989663&view=auto
==============================================================================
--- incubator/river/jtsk/trunk/examples/hello/config/mahalo.policy (added)
+++ incubator/river/jtsk/trunk/examples/hello/config/mahalo.policy Thu Aug 26 
13:07:38 2010
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/* Security policy for non-secure Reggie */
+
+/* Grant all permissions to our classes */
+grant codeBase "file:..${/}..${/}lib${/}*" {
+    permission java.security.AllPermission;
+};
+
+grant codeBase "file:lib${/}*" {
+    permission java.security.AllPermission;
+};

Added: incubator/river/jtsk/trunk/examples/hello/config/outrigger.policy
URL: 
http://svn.apache.org/viewvc/incubator/river/jtsk/trunk/examples/hello/config/outrigger.policy?rev=989663&view=auto
==============================================================================
--- incubator/river/jtsk/trunk/examples/hello/config/outrigger.policy (added)
+++ incubator/river/jtsk/trunk/examples/hello/config/outrigger.policy Thu Aug 
26 13:07:38 2010
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/* Security policy for non-secure Reggie */
+
+/* Grant all permissions to our classes */
+grant codeBase "file:..${/}..${/}lib${/}*" {
+    permission java.security.AllPermission;
+};
+
+grant codeBase "file:lib${/}*" {
+    permission java.security.AllPermission;
+};

Added: 
incubator/river/jtsk/trunk/examples/hello/config/start-mahalo-group.config
URL: 
http://svn.apache.org/viewvc/incubator/river/jtsk/trunk/examples/hello/config/start-mahalo-group.config?rev=989663&view=auto
==============================================================================
--- incubator/river/jtsk/trunk/examples/hello/config/start-mahalo-group.config 
(added)
+++ incubator/river/jtsk/trunk/examples/hello/config/start-mahalo-group.config 
Thu Aug 26 13:07:38 2010
@@ -0,0 +1,45 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/* Configuration file for starting non-secure Mahalo */
+
+import com.sun.jini.config.ConfigUtil;
+import com.sun.jini.start.NonActivatableServiceDescriptor;
+import com.sun.jini.start.ServiceDescriptor;
+
+com.sun.jini.start {
+
+    private static codebase =
+       ConfigUtil.concat(
+           new Object[] { 
+               "http://";, ConfigUtil.getHostName(), ":8080/mahalo-dl.jar",
+               " ",
+                "http://";, ConfigUtil.getHostName(), ":8080/jsk-dl.jar" } );
+
+    private static policy = "config${/}mahalo.policy";
+    private static classpath = "..${/}..${/}lib${/}mahalo.jar";
+    private static config = "config${/}jrmp-mahalo-group.config";
+
+    static serviceDescriptors = new ServiceDescriptor[] {
+       new NonActivatableServiceDescriptor(
+           codebase, policy, classpath,
+           "com.sun.jini.mahalo.TransientMahaloImpl",
+           new String[] { config })
+    };
+
+}//end com.sun.jini.start 

Added: 
incubator/river/jtsk/trunk/examples/hello/config/start-outrigger-group.config
URL: 
http://svn.apache.org/viewvc/incubator/river/jtsk/trunk/examples/hello/config/start-outrigger-group.config?rev=989663&view=auto
==============================================================================
--- 
incubator/river/jtsk/trunk/examples/hello/config/start-outrigger-group.config 
(added)
+++ 
incubator/river/jtsk/trunk/examples/hello/config/start-outrigger-group.config 
Thu Aug 26 13:07:38 2010
@@ -0,0 +1,45 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/* Configuration file for starting non-secure Outrigger */
+
+import com.sun.jini.config.ConfigUtil;
+import com.sun.jini.start.NonActivatableServiceDescriptor;
+import com.sun.jini.start.ServiceDescriptor;
+
+com.sun.jini.start {
+
+    private static codebase =
+       ConfigUtil.concat(
+           new Object[] { 
+               "http://";, ConfigUtil.getHostName(), ":8080/outrigger-dl.jar",
+               " ",
+                "http://";, ConfigUtil.getHostName(), ":8080/jsk-dl.jar" } );
+
+    private static policy = "config${/}outrigger.policy";
+    private static classpath = "..${/}..${/}lib${/}outrigger.jar";
+    private static config = "config${/}jrmp-outrigger-group.config";
+
+    static serviceDescriptors = new ServiceDescriptor[] {
+       new NonActivatableServiceDescriptor(
+           codebase, policy, classpath,
+           "com.sun.jini.outrigger.TransientOutriggerImpl",
+           new String[] { config })
+    };
+
+}//end com.sun.jini.start 

Added: incubator/river/jtsk/trunk/examples/hello/scripts/jrmp-mahalo-group.bat
URL: 
http://svn.apache.org/viewvc/incubator/river/jtsk/trunk/examples/hello/scripts/jrmp-mahalo-group.bat?rev=989663&view=auto
==============================================================================
--- incubator/river/jtsk/trunk/examples/hello/scripts/jrmp-mahalo-group.bat 
(added)
+++ incubator/river/jtsk/trunk/examples/hello/scripts/jrmp-mahalo-group.bat Thu 
Aug 26 13:07:38 2010
@@ -0,0 +1,23 @@
+...@rem /*
+...@rem Licensed to the Apache Software Foundation (ASF) under one
+...@rem or more contributor license agreements.  See the NOTICE file
+...@rem distributed with this work for additional information
+...@rem regarding copyright ownership. The ASF licenses this file
+...@rem to you under the Apache License, Version 2.0 (the
+...@rem "License"); you may not use this file except in compliance
+...@rem with the License. You may obtain a copy of the License at
+...@rem 
+...@rem      http://www.apache.org/licenses/LICENSE-2.0
+...@rem 
+...@rem Unless required by applicable law or agreed to in writing, software
+...@rem distributed under the License is distributed on an "AS IS" BASIS,
+...@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
implied.
+...@rem See the License for the specific language governing permissions and
+...@rem limitations under the License.
+...@rem */
+
+...@rem Batch file to run JRMP Mahalo
+
+java -Djava.security.policy=config\policy.all ^
+     -jar ..\..\lib\start.jar ^
+     config\start-mahalo-group.config

Added: 
incubator/river/jtsk/trunk/examples/hello/scripts/jrmp-outrigger-group.bat
URL: 
http://svn.apache.org/viewvc/incubator/river/jtsk/trunk/examples/hello/scripts/jrmp-outrigger-group.bat?rev=989663&view=auto
==============================================================================
--- incubator/river/jtsk/trunk/examples/hello/scripts/jrmp-outrigger-group.bat 
(added)
+++ incubator/river/jtsk/trunk/examples/hello/scripts/jrmp-outrigger-group.bat 
Thu Aug 26 13:07:38 2010
@@ -0,0 +1,23 @@
+...@rem /*
+...@rem Licensed to the Apache Software Foundation (ASF) under one
+...@rem or more contributor license agreements.  See the NOTICE file
+...@rem distributed with this work for additional information
+...@rem regarding copyright ownership. The ASF licenses this file
+...@rem to you under the Apache License, Version 2.0 (the
+...@rem "License"); you may not use this file except in compliance
+...@rem with the License. You may obtain a copy of the License at
+...@rem 
+...@rem      http://www.apache.org/licenses/LICENSE-2.0
+...@rem 
+...@rem Unless required by applicable law or agreed to in writing, software
+...@rem distributed under the License is distributed on an "AS IS" BASIS,
+...@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
implied.
+...@rem See the License for the specific language governing permissions and
+...@rem limitations under the License.
+...@rem */
+
+...@rem Batch file to run JRMP Outrigger
+
+java -Djava.security.policy=config\policy.all ^
+     -jar ..\..\lib\start.jar ^
+     config\start-outrigger-group.config


Reply via email to