aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Where to put DTOs, Where to archieve them , what's the professional sol ? 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 "Where to put DTOs, Where to archieve them , what Watch "Where to put DTOs, Where to archieve them , what New topic
Author

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

Anand Gondhiya
Ranch Hand

Joined: Feb 24, 2004
Posts: 155
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

Joined: Nov 21, 2000
Posts: 264
Put DTO jar under application level and treat it as a utility jar ...


SCJP, SCJD, SCWCD, SCBCD, SCEA, IBM Certified Enterprise Developer, WebSphere Studio V5.0
Anand Gondhiya
Ranch Hand

Joined: Feb 24, 2004
Posts: 155
Do you mean to say that I have to put this jar in Web Tier ?

Could you give more details ?
Edy Yu
Ranch Hand

Joined: Nov 21, 2000
Posts: 264
No.

As a enterprise application, you would have this hirarchy:

-YOUR ENTERPRISE APP.EAR
- YOUR WEB.WAR
- YOUR EJB.JAR
- DTO.JAR
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Where to put DTOs, Where to archieve them , what's the professional sol ?