[jboss-dev-forums] [Design of EJB 3.0] - Validation of Complete EJB2.x Views: EJB3 or Metadata?

ALRubinger do-not-reply at jboss.com
Thu May 22 17:55:31 EDT 2008


Which component should be responsible for validating an EJB2.x View as dictated by EJBTHREE-1075?

The rules:

1) If EJBHome/EJBLocalHome is defined, at least one EJBObject/EJBLocalObject is defined.  
2) If one EJBObject/EJBLocalObject is defined, an EJBHome/EJBLocalHome is defined.
3) SLSB EJB2.x Home interface returns only valid remote interface (EJBObject) from "create" method
4) SLSB EJB2.x LocalHome interface returns only valid local interface (EJBLocalObject) from "create" method
5) SFSB EJB2.x Home interface returns only valid remote interfaces (EJBObject) from "create{METHOD}" methods
6) SFSB EJB2.x LocalHome interface returns only valid local interfaces (EJBLocalObject) from "create{METHOD}" methods

Currently this is done in EJB3 Core.  Should either move to Proxy or be handled by jboss-metadata.

Leaning towards EJB3 Proxy to test these conditions as they are EJB3 Spec Rules, though since jboss-metadata is already doing some checks I wonder if they should be placed together.

S,
ALR

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152830#4152830

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4152830



More information about the jboss-dev-forums mailing list