You still seem to talking about a client / service invokation across jvm's, and lazy loaded hibernate objects don't work like that. You may be able to get the effect you're looking for with pagination. Or slice and dice your objects in the same transaction - but that's not lazy loading. Or use some type of rich client framework like flex that supports web services. Or look at something along the lines of JSON in axis2.
So I see lots of options but lazy loading doesn't seem to be the right fit. However, another reply mentioned spring's OSIV which is the standard way of using lazy objects in a gui - though how that'd work in axis2 client / service invokation is the dragon you'd have to slay. I'd be curious to see how it'd work. HTH, Robert On 8/22/07, Steve S <[EMAIL PROTECTED]> wrote: > I can think of a use case. Let's say you have a batch process that slices > and dices data. You want to build a GUI to maintain certain master setup > data. Since the batch process runs in a single session, you want to be able > to use Hibernate's capabilities to slice and dice that data - in particular, > you build objects with children, then just save the object and let Hibernate > do the rest. But you don't want the object graph returned to the GUI > because you are only working with a small part of the object graph. > > Web services are being used as the transport between the GUI and the server. > > I may need to re-think my object definitions. It may be possible to solve > my problem by careful consideration of what I am linking and what I'm not. > > I am rather supprised that there isn't more discussion about dealing with > Hibernate detached objects in Axis - at least I havent found a good site > yet. > > Steve > > > > > <snip> > > > > Lazy loading hibernate AFAIK doesn't work across JVM's so I'm failing > > to see a use case for it in web services. Using hibernate interceptors > > or perhaps eventing would be one way to know if the collection was > > populated - but that's pretty off topic for this list. > > > > There are ways to prevent axiom from loading everything in memory via > > streaming it, while still getting the graph into the xml. Search the > > list if interested as the topic comes up sometimes. > > > > HTH, > > Robert > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
