-->
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.  [ 5 posts ] 
Author Message
 Post subject: Remote VM presentation tier options
PostPosted: Thu Jan 29, 2004 4:12 pm 
Newbie

Joined: Thu Jan 29, 2004 3:52 pm
Posts: 16
Hi,

After looking through documentation, forum posts and discussions it is my impression that currently there is no solution that allows presentation tier in a remote vm to access instances of hibernate persistent classes, modify those instaces/model and synchronize back with server/backend tier in optimistic fashion.

I've found some relevant presentations and discussions regarding "detached objects", but these are only a viable option in a single vm environement?

Are these assumption correct and what are the options for presentation tier in a remote vm besides going with bad old DTO or VO or whatever they are called these days?

If there are no available options besides DTO/VO, are there any plans by Hibernate team to incorporate possible solutions in future Hibernate releases?


Regards,
Vladimir


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 29, 2004 4:15 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Not true. Detached objects can be serialized. Thats the whole point.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 29, 2004 4:46 pm 
Newbie

Joined: Thu Jan 29, 2004 3:52 pm
Posts: 16
Hi,

Is that also the case for detached objects that contain collection references to other persistent instances? Would AuctionItem/Bid example from your JAOO presenation on slide 47 work if persistent instances are modified in a remote vm and then changes persisted in session update call on the server side?

I got the impression that it would not work since that is what gloeglm seems to indicate in the recent post:
gloeglm wrote:
If you really have detatched objects (e.g. sending the objects to a swing application) you have to ensure the client side code does not hit any uninitialized collections, otherwise you get an Exception. If you are still in the server environment (e.g. Servlets, JSP) you should take a look at the Open Session in View pattern in the Wiki Community area.


Regards,
Vladimir


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 29, 2004 5:05 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
The only problem is if the collections are lazy loading collections which are uninitialized. Serializing initialized collections accross tiers is no problem. The problem is only if you access collections which would need a session to lazy load their content.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 29, 2004 5:17 pm 
Newbie

Joined: Thu Jan 29, 2004 3:52 pm
Posts: 16
Hi,

Excellent. Thanks for clearing this up.

Regards,
Vladimir


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.