This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv 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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB with DB Access" Watch "EJB with DB Access" New topic

EJB with DB Access

Ahamed Sharif
Ranch Hand

Joined: Aug 24, 2003
Posts: 47
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.
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
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

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
I agree. Here's the link:
subject: EJB with DB Access
It's not a secret anymore!