• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Some Questions from Mock Exam

 
Vijaya laxmi
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to Spec we must not use java Reflection API on Enterprise bean.we have getEJBMetaData method to get more specific class information.This method is in EJBHome Not in EJBLocalHome.Now Tell me How can I achieve that functionality for local clients.
 
Dan T
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
on page 149 of HF-EJB, it says we are allowed to use Java reflection API for local clients
 
Will Hunt
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
interface EJBMetaData is intended to be used by the tools for obtaining the information about the bean. There is very little you can do systematically as a bean provider using that interface.

I guess in the book when they say there is Reflection API, for the container it is there but not for the bean provider.

You are right when you say Reflection API is denied in the spec, but that is for bean provider contract.

Hope this helps.
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
note that metadata related stuff is not part of the exam objectives...
 
Vijaya laxmi
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx a lot for everyone her.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic