Thread:
 Remote lazy loading 
 mmcgovern   03 Nov 2005, 17:07 
 Re: Remote lazy loading 
 mmcgovern   05 Nov 2005, 06:34 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: mmcgovern (05 Nov 2005, 06:34) Replies: 0, Views: 25793
Subject: Re: Remote lazy loading
POST QUESTIONS ON THE FORUM! COMMENTS HERE SHOULD ADD VALUE TO THE 
PAGE!On 03 Nov 2005 17:07, mmcgovern wrote:

>I'd like to add value.

>Yes every month someone does suggest that Hibernate should be able to
>do remote lazy loading. And the arguments against are valid.

>However I think that we need to look at this as a challenge. Look how
>far we have come in the last 10 years with Java and ORM.


>If I have a tiered platform with the client co-located with the
>server, things work nicely. But what if I need to move the client
tier 
>into a DMZ. I'd like to NOT have to make drastic changes to my
>application.

>There must be solutions to this because people are hand coding such
>things. What about an extension framework that supports a number of
>the most common, manually coded solutions. Optimistic locking is an
>example of a solution to a problem where you have made some
tradeoffs. 
>I'm sure there are a few solutions to this problem, with trade offs
>that many people would be willing to make - to get the benefits that
>come with it.

So I've got a client tier in the DMZ, therefore the although I'll need 
long-running session in the server tier it still corresponds to a UI 
event. All I need is for some AOP/CGLIB smarts in the client to talk 
to a SFSB to start/end my transaction and for all other session bean 
calls from my client to let the server-side CMT know about this 
special SFSB. In a read-only environment this would work - and even if 
I change things the magic AOP/CGLIB can let the SFSB know and it can 
handle things.

This can work - at least for this special case - but its a start. Can 
anyone make this happen?
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]