• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MZ's notes-EJB limitation

 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

On page 10 of MZ's notes it says:
The enterprise bean must not attempt to define a class in a package.


What does this mean?
 
Alexey Saenko
Ranch Hand
Posts: 30
Chrome Eclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Duran,

I think that this is about unsafety of attempts to use Reflections API to define (get access to) package/class and so on.
 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh okay so 'define' means 'access' in Reflection. okay cool.So Reflection can't be used at all in beans then?
 
Alexey Saenko
Ranch Hand
Posts: 30
Chrome Eclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Physically, they can be used in beans, but it makes a hole in security of this application. Therefore they should not be used.
 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic