• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why DON'T we need EJBMetaData with javax.ejb.EJBLocalHome?

 
Darya Akbari
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I wonder why one does NOT need EJBMetaData with the local home interface. While the remote home interface javax.ejb.EJBHome has a getEJBMetaData method I miss this method in the local home interface.

To me it doesn't matter whether I am remote or local. Or better I don't see why EJBMetaData depends on being remote or being local. Isn't EJBMetaData the meta data of the container created bean be it remote OR local?

Any hints

Regards,
Darya
 
jeff mutonho
Ranch Hand
Posts: 271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The info that you get from EJBMetaData, you can get directly using Java's Reflection API since the client is running in the same VM(i.e it is local) as the bean.It's no use having to support EJBMetaData with locals, because Java's Reflection API is sufficient to get you all the info that you would get using EJBMetaData...

jeff mutonho
SCJP
 
Darya Akbari
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jeff,

Java's Reflection API sounds reasonable.

Thanks,
Darya
 
Darya Akbari
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HFEJB page 149 does explain exactly this

Regards,
Darya
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic