gdamour 2005/12/21 09:21:55
Modified: modules/openejb-builder/src/schema openejb-jar-2.0.xsd
Log:
GERONIMO-1397 Clustering of SFSB
First step of many others to add the clustering of SFSB.
This check-in adds the following features:
* definition of an EJBClusterManager, which abstracts an EJB Cluster node;
* this EJB cluster node is a standard GBean (the default or
WADI implementation is DefaultEJBClusterManager);
* in an openejb-jar.xml DD, a SFSB can declare a reference to this node via
the ejb-cluster-reference element;
* when the SFSB container is started, the EJB cluster node notifies
the cluster that it is running a specific SFSB container;
* when a clustered SFSB InstanceContext is created, an array of nodes running
the container of this SFSB is associated to the InstanceContext. Note that
this array of nodes is updated upon start-up of a clustered SFSB container or
upon node failure;
* this array of nodes capable of running the created SFSB is propagated to
clients. Actually, this array is propagated at each EJB invocation.
Revision Changes Path
1.8 +11 -0
openejb/modules/openejb-builder/src/schema/openejb-jar-2.0.xsd
Index: openejb-jar-2.0.xsd
===================================================================
RCS file:
/home/projects/openejb/scm/openejb/modules/openejb-builder/src/schema/openejb-jar-2.0.xsd,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- openejb-jar-2.0.xsd 21 Nov 2005 23:45:41 -0000 1.7
+++ openejb-jar-2.0.xsd 21 Dec 2005 14:21:55 -0000 1.8
@@ -108,6 +108,16 @@
<xs:attribute name="inverseClassloading" type="xs:boolean"
use="optional"/>
</xs:complexType>
+ <xs:complexType name="ejb-cluster-referenceType">
+ <xs:choice>
+ <xs:element name="target-name" type="xs:string"/>
+ <!--
+ TODO add support for this type of locator.
+ <xs:group ref="naming:objectNameGroup"/>
+ -->
+ </xs:choice>
+ </xs:complexType>
+
<!-- session bean section-->
<xs:complexType name="session-beanType">
<xs:sequence>
@@ -115,6 +125,7 @@
<xs:element name="jndi-name" type="xs:string" minOccurs="0"
maxOccurs="unbounded"/>
<xs:element name="local-jndi-name" type="xs:string"
minOccurs="0" maxOccurs="unbounded"/>
<xs:group ref="openejb:tssGroup" minOccurs="0"/>
+ <xs:element name="ejb-cluster-reference"
type="openejb:ejb-cluster-referenceType" minOccurs="0"/>
<xs:group ref="naming:jndiEnvironmentRefsGroup"/>
<xs:element name="web-service-address" type="xs:string"
minOccurs="0"/>