• 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

Entity beans - EJB 2.1

 
author
Posts: 469
20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

If I have an entity bean A, B and C and I want to design my application such that the entity beans B and C implement a business interface X ( a case of interface inheritance). In this case:

Can entity bean A have an object of type X ( the interface implemented by B and C beans ) and at runtime an instance of B or C is created and assigned to the type X variable in entity bean A and when a method is invoked on A then its passed to the entity bean referenced by X ? Whats the best way to model this type of scenario using entity beans ?

thanks
Ashish
 
reply
    Bookmark Topic Watch Topic
  • New Topic