aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes DAOs and EJBs 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 "DAOs and EJBs" Watch "DAOs and EJBs" New topic
Author

DAOs and EJBs

Anand Gondhiya
Ranch Hand

Joined: Feb 24, 2004
Posts: 155
Hi All,

I use Weblogic 8 , Win 2000 , Struts , EJB ( Bean Managed persistence- BMP ), design patterns like DAOs(Data Access Objects) and Data Transfer Objects/Value Objects ( DTOs/ VOs). IDE is Eclipse.

Now I have three Projects in the App.

1. NEA -> It's got JSPs , Struts Classes.
2. NEA_EJB -> Entity Beans with BMP + DAOs
3. NEA_DTO -> seperate project containng DTOs which is being used by NEA_EJB.

Is it a professional attitude to put DAOs and EJBs together in one JAR file ???

Thanks
-Anand.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29249
    
139

Anand,
Yes, it is fine to put the DAOs and EJBs in the same project. Both are in the data transfer layer. It would be even better to put them behind a stateless session bean. That abstracts the client from even knowing what technology you are using for db access.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: DAOs and EJBs
 
Similar Threads
Data to Entity Beans
diff b/w threetier and mvc
Understanding a DAO v Service seperation...
app design
DTO and ActionForm