geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r881988 - in /geronimo/server/branches/2.2/plugins/openejb: geronimo-openejb/src/main/java/org/apache/geronimo/openejb/EjbDaemonGBean.java openejb/src/main/plan/plan.xml
Date Wed, 18 Nov 2009 23:04:08 GMT
Author: dblevins
Date: Wed Nov 18 23:04:08 2009
New Revision: 881988

URL: http://svn.apache.org/viewvc?rev=881988&view=rev
Log:
Added two new properties for the EJBd Server: secure, discoveryURI

Modified:
    geronimo/server/branches/2.2/plugins/openejb/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/EjbDaemonGBean.java
    geronimo/server/branches/2.2/plugins/openejb/openejb/src/main/plan/plan.xml

Modified: geronimo/server/branches/2.2/plugins/openejb/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/EjbDaemonGBean.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.2/plugins/openejb/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/EjbDaemonGBean.java?rev=881988&r1=881987&r2=881988&view=diff
==============================================================================
--- geronimo/server/branches/2.2/plugins/openejb/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/EjbDaemonGBean.java
(original)
+++ geronimo/server/branches/2.2/plugins/openejb/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/EjbDaemonGBean.java
Wed Nov 18 23:04:08 2009
@@ -35,6 +35,8 @@
     private int threads;
     private ServiceManager serviceManager;
 
+    private boolean secure;
+    private String discoveryURI = "ejb:ejbd://{bind}:{port}";
     private String multicastHost;
     private String clusterName;
     private int multicastPort;
@@ -109,6 +111,22 @@
         return new InetSocketAddress(host, port);
     }
 
+    public String getDiscoveryURI() {
+        return discoveryURI;
+    }
+
+    public void setDiscoveryURI(String discoveryURI) {
+        this.discoveryURI = discoveryURI;
+    }
+
+    public boolean isSecure() {
+        return secure;
+    }
+
+    public void setSecure(boolean secure) {
+        this.secure = secure;
+    }
+
     public void doStart() throws Exception {
         Properties properties = SystemInstance.get().getProperties();
         properties.setProperty("ejbd.bind", host);
@@ -117,6 +135,8 @@
         properties.setProperty("multicast.port", Integer.toString(multicastPort));
         properties.setProperty("multicast.disabled", Boolean.toString(!enableMulticast));
         properties.setProperty("multicast.group", clusterName);
+        properties.setProperty("ejbd.discovery", discoveryURI);
+        properties.setProperty("ejbd.secure", secure + "");
         if (threads > 0) {
             properties.setProperty("ejbd.threads", Integer.toString(threads));
         }

Modified: geronimo/server/branches/2.2/plugins/openejb/openejb/src/main/plan/plan.xml
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.2/plugins/openejb/openejb/src/main/plan/plan.xml?rev=881988&r1=881987&r2=881988&view=diff
==============================================================================
--- geronimo/server/branches/2.2/plugins/openejb/openejb/src/main/plan/plan.xml (original)
+++ geronimo/server/branches/2.2/plugins/openejb/openejb/src/main/plan/plan.xml Wed Nov 18
23:04:08 2009
@@ -88,11 +88,13 @@
     <gbean name="EJBNetworkService" class="org.apache.geronimo.openejb.EjbDaemonGBean">
         <attribute name="port">${PlanOpenEJBPort}</attribute>
         <attribute name="host">${PlanServerHostname}</attribute>
-        <attribute name="threads">20</attribute>
+        <attribute name="threads">200</attribute>
         <attribute name="multicastPort">${PlanOpenEJBMulticastPort}</attribute>
         <attribute name="multicastHost">${PlanOpenEJBMulticastHostname}</attribute>
         <attribute name="clusterName">cluster1</attribute>
         <attribute name="enableMulticast">true</attribute>
+        <attribute name="discoveryURI">ejb:ejbd://${PlanServerHostname}:${PlanServerPort}</attribute>
+        <attribute name="secure">false</attribute>
         <dependency>
             <name>OpenEjbSystem</name>
         </dependency>



Mime
View raw message