This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
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

Doubt: programming restriction

 
Mina Syal
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Specs says following:
� The enterprise bean must not attempt to define a class in a package.

Can anyone explain this more. As I don't understand this restriction we generaly define our classes under packages example: ...advice\src\headfirst\AdviceHome.class.

Thanks,
Mina.
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
 
Mina Syal
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Thanks for providing link... but I didn't get any satisfactory answer there... can you pls give me just one or two lines of explaination...

Thanks,
Mina.
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically, what this means is that you are not allowed to use the ClassLoader.defineClass() and ClassLoader.definePackage() methods within your bean classes. In other terms, you are not allowed to dynamically create new class definitions at runtime.
 
Mina Syal
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh gr8...

Thanks a lot :-)

Mina.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic