wood burning stoves 2.0*
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
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: 1297
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: EJB with DB Access
 
Similar Threads
EJB with Data Base Access
CMP vs BMP - Performance
Transaction Rollback Exception
How to call database stored procedures using EJB ??
J2EE