• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where to put DTOs, Where to archieve them , what's the professional sol ?

 
Anand Gondhiya
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use WL 8 on Microsoft 2000.

I use EJB 2.0 and Struts 1.1.

I have three projects

NEA ( web app : contains Jsps and ActionForm/Action classes)
NEA_DTO 9 (Contains Data Transfer objects)
NEA_EJB.

I made three Archives:
NEA -> NEA.war Successfully Deployed
NEA_DTO -> NEA_DTO.jar couldn't deploy
NEA_EJB -> NEA_EJB.jar couldn't deploy.

As DTO working between two tiers, I don't know where to put them. i.e where to archieve them

Please tell me the best practices......Thanks a lot
-Anand.
 
Edy Yu
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Put DTO jar under application level and treat it as a utility jar ...
 
Anand Gondhiya
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean to say that I have to put this jar in Web Tier ?

Could you give more details ?
 
Edy Yu
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No.

As a enterprise application, you would have this hirarchy:

-YOUR ENTERPRISE APP.EAR
- YOUR WEB.WAR
- YOUR EJB.JAR
- DTO.JAR
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic