• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How container talks to DB?

 
Vladas Razas
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
  • 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?
 
Mikalai Zaikin
Ranch Hand
Posts: 3371
12
  • Mark post as helpful
  • send pies
  • 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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic