• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

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

 
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
 
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!