This week's book giveaway is in the Programmer Certification forum. We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I read the abou the EJB programming restriction in the spec, and it's said :
"• The enterprise bean must not attempt to define a class in a package."
Does this mean we can't declare the bean class in a package as follow:
SCJP 5 (76%)
SCWCD 5 (86%)
SCBCD 5(70%)
--------------------
"The greatest glory in living lies not in never falling, but in raising every time we fall.".. Nelson Mandela
I've read the link you suggested me, so does this me the following line should never be included in a bean class
package xyz;
SCJP 5 (76%)
SCWCD 5 (86%)
SCBCD 5(70%)
--------------------
"The greatest glory in living lies not in never falling, but in raising every time we fall.".. Nelson Mandela
I've read the link you suggested me, so does this me the following line should never be included in a bean class
package xyz;
Putting a bean in a class is allowed. If it were not, that would be a big problem. If you check the link again, you'll see that "The enterprise bean must not attempt to define a class in a package" is about not using java.lang.ClassLoader's defineClass and definePackage methods.