User: juha
Date: 00/09/24 08:21:51
Modified: src/resources/org/jboss/verifier DefaultMessages.properties
Log:
- Fixed some TODO's in the code.
- Implemented the RMI/IIOP type checking
- Implemented Entity home interface verification:
i) must extend EJBHome interface
ii) must follow RMI-IIOP rules and throw RemoteException
iii) each method defined in home must be either create or finder method
iv) return type of create(...) methods must be remote interface type
v) create(...) methods must have matching ejbCreates
vi) create(...) methods must throw all the exceptions of the matching
ejbCreate(...) and ejbPostCreate(...) methods
- Implemented Entuty remote interface verification
i) must extend EJBObject
ii) each method must follow RMI-IIOP type rules and throw RemoteException
iii) must have matching methods in the bean class
Revision Changes Path
1.6 +20 -2
jboss/src/resources/org/jboss/verifier/DefaultMessages.properties
Index: DefaultMessages.properties
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/resources/org/jboss/verifier/DefaultMessages.properties,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- DefaultMessages.properties 2000/09/12 01:51:49 1.5
+++ DefaultMessages.properties 2000/09/24 15:21:51 1.6
@@ -25,8 +25,8 @@
6.10.5.b = The method arguments in the remote interface must be of valid types for
RMI/IIOP.
6.10.5.c = The method return values in the remote interface must be of valid types
for RMI/IIOP.
6.10.5.d = The methods in the remote interface must include
java.rmi.RemoteException in their throws clause.
-6.10.5.e = The methods defined in the remote interface must have a matching method
in the bean's class with the same name.
-6.10.5.f = The methods defined in the remote interface must have a matching method
in the bean's class with the same number and types of arguments, and the same return
type.
+6.10.5.e = The methods defined in the remote interface must have a matching method
in the bean's class with the same name and same number and types of arguments.
+6.10.5.f = The methods defined in the remote interface must have a matching method
in the bean's class with the same return type.
6.10.5.g = All the exceptions defined in the throws clause of the matching method
of the session bean class must be defined in the throws clause of the method of the
remote interface.
6.10.6.a = A session bean's home interface must extend the javax.ejb.EJBHome
interface.
@@ -62,6 +62,24 @@
9.2.5.f = A finder method must not be declared as static.
9.2.5.g = The method argument types of a finder method must be legal types for
RMI/IIOP.
9.2.5.h = The finder method return type must be either the entity bean's primary
key type or an instance of the Enumeration or the Collection interface.
+
+9.2.7.a = Entity bean's remote interface must extend the javax.ejb.EJBObject
interface.
+9.2.7.b = The method arguments in the remote interface must be of valid types for
RMI/IIOP.
+9.2.7.c = The method return values in the remote interface must be of valid types
for RMI/IIOP.
+9.2.7.d = The methods in the remote interface must include
java.rmi.RemoteException in their throws clause.
+9.2.7.e = For each method defined in the remote interface, there must be a
matching method in the entity bean's class that has the same name and argument types.
+9.2.7.f = For each method defined in the remote interface, there must be a
matching method in the entity bean's class that has the same return type.
+9.2.7.g = All the exceptions defined in the throws clause of a matching method in
the entity bean's class must be defined in the throws clause of the method of the
remote interface.
+
+9.2.8.a = Entity bean's home interface must extend the javax.ejb.EJBHome
interface.
+9.2.8.b = The method arguments in the home interface must be of valid types for
RMI/IIOP.
+9.2.8.c = The method return values in the home interface must be of valid types
for RMI/IIOP.
+9.2.8.d = The methods in the home interface must include java.rmi.RemoteException
in their throws clause.
+9.2.8.e = Each method defined in the entity bean's home interface must be either
create or finder method.
+9.2.8.f = Each create(...) method in the entity bean's home interface must have a
matching ejbCreate(...) method in the entity bean's class.
+9.2.8.g = The return type for a create(...) method must be the entity bean's
remote interface type.
+9.2.8.h = All the exceptions defined in the throws clause of the matching
ejbCreate(...) and ejbPostCreate(...) methods of the enterprise bean class must be
included in the throws clause of a matching create(...) method.
+9.2.8.i = The throws clause of a create(...) method MUST include the
javax.ejb.CreateException.
9.2.9.a = The primary key class must be a legal Value Type in RMI-IIOP.
9.2.9.b = The primary key class must override equals().