• 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 Bean Component Reusability

 
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have some doubt on entity bean. How does a bean provider know the db schema in the operational environment when he builds an entity bean? CMP fields in the DD must match the column names of a table in a db schema, but a bean provider knows nothing about the table name and its columns name.

Suppose I from company X wear both bean assembler hat and deployer hat, given an off-the-shelf entity bean A from company Y, how can I incorporate entity bean A into my application. Note that the CMP fields do not match the fields of my table.
 
Ranch Hand
Posts: 379
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Joe Nguyen:
I have some doubt on entity bean. How does a bean provider know the db schema in the operational environment when he builds an entity bean? CMP fields in the DD must match the column names of a table in a db schema, but a bean provider knows nothing about the table name and its columns name.

Suppose I from company X wear both bean assembler hat and deployer hat, given an off-the-shelf entity bean A from company Y, how can I incorporate entity bean A into my application. Note that the CMP fields do not match the fields of my table.



It is responsibility of the Bean Deployer to map the cmp fields with the actual db fields, and to resolve any external references (i.e. datasources), by using vendor-specific tools.
 
reply
    Bookmark Topic Watch Topic
  • New Topic