Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Imitations to the EJB Model

 
sanjeevmehra mehra
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
regarding Imitations to the EJB Model my book says that, developer should not use io, thread, awt, native, this, security etc., because either this is the job of container or not allowed. (that's fine)
But it also says Your bean must not attempt to define a class in a package.. I am not able to get this point.

I would appreciate your comments/suggestions regarding the above (bold) statement.


Thanks & regards,
Sanjeev.
[ September 15, 2004: Message edited by: sanjeevmehra mehra ]
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please have a look at the following discussion which handles the same topic:
http://www.coderanch.com/t/159862/java-EJB-SCBCD/certification/EJB-Programming-Restriction
 
sanjeevmehra mehra
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
as per discussions on the mentioned links, it is believed that this is regarding ClassLoader.defineClass() and ClassLoader.definePackage(). But in limitations it is clearly saying the working with classLoader & JVM is not allowed and mentioning, "The enterprise bean must not attempt to define a class in a package.�, this as a separate point.

All believe that it is regarding classLoder, so I have no option to left
.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic