wood burning stoves*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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 ...


<i><br />Sun Certified Programmer for Java 2 Platform (SCJP)<br />Sun Certified Developer for Java 2 Platform (SCJD)<br />Sun Certified Web Component Developer for Java2 Platform, Enterprise Edition (SCWCD)<br />Sun Certified Business Component Developer for Java2 Platform, Enterprise Edition (SCBCD)<br />Sun Certified Enterprise Architect for J2EE (SCEA)<br />IBM Certified Enterprise Developer, WebSphere Studio V5.0<br /></i>
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
 
 
subject: Where to put DTOs, Where to archieve them , what's the professional sol ?
 
Similar Threads
linking webapp with ejb in ear
"NoClassDefFound Error" deploying EAR file
DAOs and EJBs
applet --jar confusion
jar & war files