axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve S" <>
Subject Re: Returning Hibernate detached objects in Axis2
Date Wed, 22 Aug 2007 21:45:28 GMT
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


> <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:
> For additional commands, e-mail:

View raw message