This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes EJB with DB Access Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB with DB Access" Watch "EJB with DB Access" New topic
Author

EJB with DB Access

Ahamed Sharif
Ranch Hand

Joined: Aug 24, 2003
Posts: 47
Hi,
I am new to EJB , which ejb bean communicate with DB Access and
how that flow should be look like. Any have good links and
sample source regarding ejb with DB access please send it to me.
I am using Mysql database.
OS 2000, jdk1.4 and App.Server JBoss.
Thanks,
Sharief.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
You have two choices:
1. Entity Beans
2. Session Beans + JDBC
I'd strongly suggest you start by reading some tutorials on Enterprise JavaBeans.
EJB Fundamentals
ejbtut.com


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Billy Tsai
Ranch Hand

Joined: May 23, 2003
Posts: 1304
use DAO pattern


BEA 8.1 Certified Administrator, IBM Certified Solution Developer For XML 1.1 and Related Technologies, SCJP, SCWCD, SCBCD, SCDJWS, SCJD, SCEA,
Oracle Certified Master Java EE 5 Enterprise Architect
 
jQuery in Action, 2nd edition
 
subject: EJB with DB Access