• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

CMP vs. BMP With Multiple Schemas

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am attempting to develop an entity bean that is required to map to different schemas that contain the same table names. In other words, our production database has one schema (creator), but our test database has multiple schemas. A table is defined in each schema to allow for testing at different levels.

Is it possible to map an EJB-CMP to such an environment, or am I limited to EJB-BMP?
 
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes it is; all you have to do is to deploy your bean multiple times, once for each database schema, using the sane bean and interface classes for each deployment. Actually WebLogic used to recommend a Read-Mostly pattern, where every bean was deployed twice: once for writing to database and once for reading only (as an aggressive caching strategy).
Regards.
 
snakes are really good at eating slugs. And you wouldn't think it, but so are tiny ads:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic