-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Collocated Architecture
PostPosted: Sun Aug 21, 2005 9:02 am 
Newbie

Joined: Mon Aug 08, 2005 4:16 pm
Posts: 15
Hi,

I use Hibernate in a collocated architecture where the web, service and data access layers are located on the same JVM. The architecture I have chosen allows the domain layer to span across the web, service and data layers. The data layer is responsible for storing/loading the domain objects, service layer responsible for transaction demarcation and some minimal business logic and the web layer is responsible for displaying the domain layer. I have chosen not to use data transfer objects in the web layer to increase productivity and avoid the pain of writing DTO assemblers for converting domian objects to DTOs back and froth.

However, I have faced significant resistence within the team about not using data transfer objects and using the domain objects in the view layer. My opinion is that the domain layer is the reusable asset and can be used in the service, view and integration layers. This is applicable even in a distributed envronment where the persistence framework can support attached and detached mode operations. So, in a collocated environment this becomes more less of an issue.

I need to substantiate this decison in my software architecture document. Could someone kindly point me to links stating the same point.

Any help would be highly appreciated.

Ta
Abu Mariam


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 23, 2005 11:01 am 
Beginner
Beginner

Joined: Mon Apr 12, 2004 6:33 pm
Posts: 35
I totally agree with your position.

If your domain objects contain only data and no business logic then in fact they are already DTOs. I don't see any objection is passing these objects to different layers in your application.

I am afraid the DTO idea is an anti pattern developed to work around the limitations of the EJB model.

Save yoruself a lot of work and pass around those domain objects!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.