• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reflection API

 
Girija Siva
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
Can we use reflection API in EJB 2.0
Thanks
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out 24.1.2 Programming restrictions of the EJB spec.
 
Girija Siva
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I saw that but... the LocalHome does not need EJBMetaDate() as it can use reflections... is the statement from HFEJB So was not sure if reflections can be used or not
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use most of the Reflection API, it's only part of it which is disallowed. You cannot enable the security permission java.lang.reflect.ReflectPermission. If the named permission target (suppressAccessChecks) is enabled, a class is allowed to use reflection to inspect, access, and modify protected and private members and methods in other classes. A bean could therefore yield sensitive information, which is a security risk.
 
Girija Siva
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Roger
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic