This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How does container know which database to use?

 
Kalle Anka
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been reading the SCBCD by Paul Sanghera plus some tutorials on the net. But I still dont understand how the EJB container knows which database managementsystem to use (mySQL, Oracle, MSaccess etc). Nowhere in the book is ther any information about it... some tutorials claims that you have to do it manually (?) with relationDB or that u could use ODBC data source.

To add to my confusion, I managed to successfully develop entity beans where I use tables but where I dont specifiy any database. And the data that I put in is persistant to server shutdown... But where this information got stored is a mystery. At least it didnt get into my mySQL database system (the only DBMS in my computer).

hopeful that someone will clear this mystery!
Kalle
 
Jesus Angeles
Ranch Hand
Posts: 2068
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the book on scbcd most likely focused on everything at least before deployment, which is vendor-dependent. the scbcd exam is vendor-independent developer topics.

you can find a book that includes deployment.

your missing link is quite a small thing; youll resolve that in 5 minutes.

some books are: practical j2ee dev by igor livshin, ejb kickstart, ejb in 21 days

your problem shows a good thing in ejb; the developer wont need to know which database it will eventually use; the deployer role will do that. but as you are doing all yourself(you are the developer/assembler/deployer/sys ad), then you need to know deployment too.
 
Jesus Angeles
Ranch Hand
Posts: 2068
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
by the way, you already have a container? most likely that container has it corresponding deployment utility tool

for java Ri, you have deploytool, i think
for websphere, it has its own, imbedded in the ide wsad
 
Kalle Anka
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx Jesus!

I found out yesterday where you specify the database...apparently Orion comes with HSQLDB which is also the default database.

Thanx for all your tips on EJB books. I will definitly buy one. Perhaps the practical j2ee. I also just found out by another thread in this forum that the book Mastering EJB by Floyd Marinescu (?) is available freely on the net. Gonna check it out as well.

=)
Kalle
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic