8 Replies Latest reply on May 26, 2008 2:59 AM by Emanuel Muckenhuber

    Validation of Complete EJB2.x Views: EJB3 or Metadata?

    Andrew Rubinger Master

      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