• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

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.
 
Willie Smits can speak 40 languages. This tiny ad can speak only one:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic