• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

How container talks to DB?

 
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What are requirements to DB so container can store entity beans there? Is it enough if DB has JDBC driver? And then I can use it with any container? Or usually containers do support only few selected databases?
In example I have my own "persistant store". I paint with my finger on the wall. But this is not yet known to world method to store data. So if I make my fingerpainting JDBC driver is that enough?
This leads me to another idea why I don't make Bean Manager Persistence entity beans. I can fingerpaint inside my bean. But I have no idea how it will work with CMT which only transaction management method entity beans support How does BMP lives together with CMT?
 
Bartender
Posts: 3768
39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi, Vladas.
I think that these details are *not* on test objectives, so you won't be asked about such deep details.
About EJB Container <-> DB interoperability : IFAIR from my experience for each EJB container there is some set of suported DBs, since container have to know many details (remeber, even when you use CMP, and you don't see SQL code, EJB container still have a deal with SQL code at low level, so at least, EJB container should know SQL synthax for particular DB), and simple JDBC driver is not enough.
Cheers!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic