wood burning stoves 2.0*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Q: EJB must not define class in package Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Q: EJB must not define class in package" Watch "Q: EJB must not define class in package" New topic
Author

Q: EJB must not define class in package

Yan Zhou
Ranch Hand

Joined: Sep 02, 2003
Posts: 137
What does it mean when the spec. says:

EJB must not define a class in a package?

Anyone has an example?
Thanks.
Yan
Shahfazal Mohammed
Ranch Hand

Joined: Jan 08, 2004
Posts: 41


As a Bean Provider, your deliverable is an ejb-jar file with your beans/interfaces/deployment-descriptor. This ejb-jar file can possibly be mixed with other ejb-jar's from the application-assembler, to better fit a domain, based on the requirements. And I guess that's why EJB spec does not recommend putting classes in packages.

HTH,

-Fazal.


-peace.
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
I would have thought that this is about disallowing the use of definePackage() and defineClass() of ClassLoader.


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Pourang Emami
Ranch Hand

Joined: Sep 21, 2002
Posts: 127
I read some where that defining beans in packages, will be a security hole.
If it is the case, is there any body who knows why and how?


Best Regards,<br />Pourang Emami
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Q: EJB must not define class in package