Originally posted by Brenda Kwok:
Do you know what does the statement in http://java.boot.by/bcd-guide/ch01s03.html mean?
"The enterprise bean must not attempt to define a class in a package."
(The second last)
Thanks.
Brenda
Hi Brenda!
This is a restriction to use the method of ClassLoader :
, int, int)]http://java.sun.com/j2se/1.4.2/docs/api/java/lang/ClassLoader.html#defineClass(java.lang.String, byte[], int, int) which is consistent with other restrictions about using a class loader in your EJBs. The
EJB Container is responsible for maintaining runtime environment, and it loads classes itself, applying security restrictions. If you violate these rules, the runtime environment will not be compliant.
This restriction is not about prohibiting to use packages for your EJB classes.
regards,
MZ