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

EPractice Lab review quiz 3: dispatched entity and EJB interact with the db ?

 
Himai Minh
Ranch Hand
Posts: 1361
7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Which component can be used as model component that directly interact with database?
Given answer: dispatched entity.

My choice : Singleton EJB.
I think EJB can also interact with the DB.
In the below reference, the EJB can use java.sql.DriverManager and java.sql.Connection to interact with the database.
Reference:
http://www.tutorialspoint.com/ejb/ejb_access_database.htm
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic