• Post Reply Bookmark Topic Watch Topic
  • New Topic

question 19 HF page 665 (final exam)

 
Miki Muzsi
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The book says that Using reflection API shold be avoided to ensure bean portability across all EJB 2.0 containers.

I think the question is not clear, and strictly speaking it is wrong. Reading the spec I understand that you should not use reflection API in case you want to access information that the security rules of Java language make unavailable (see pg. 495).

But if I have a value bean, who's attributes are changing quite ofent, I see no reason why should't I use reflection to get it's public accessor methods.

Miki
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!