• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help on EJB Programing Restrictions!!

 
Seenu Reddy
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJB Programing Restrictions
-----------------------------
The enterprise bean must not attempt to define a class in a package. This function is reserved for the EJB Container. Allowing the enterprise bean to perform this function would create a security hole.

Could you explain in detail, because i am confused.

Thanks,
Seenu
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Seenu R:
"Allowing the enterprise bean to perform this function would create a security hole."


It was this statement that convinced me that it was talking about "defining a class in a package" at runtime - by generating the JVM bytecodes in memory and then attempting to load the class - this would bypass any safeguards present in the J2EE deployment/verifier tools.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic