• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DAOs and EJBs

 
Anand Gondhiya
Ranch Hand
Posts: 155
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 33699
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic