Meaningless Drivel is fun!*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
Don't get me started about those stupid light bulbs.
 
subject: Q: EJB must not define class in package
 
Similar Threads
Question on EJB restrictions
what's meaning "The enterprise bean must not attempt to define a class in a package."
EJB programming restrictions - Question
doubt
Defining a class in a package