• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HFEJB page 149 does explain exactly this

Regards,
Darya
 
Warning! Way too comfortable! Do not sit! Try reading this tiny ad instead:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic