• 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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown

Entity beans - EJB 2.1

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

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 ?

Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic