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
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 particula
On 8/22/07, Steve S <[EMAIL PROTECTED]> wrote:
> Keeping the session open and turning off lazy loading both have the same
> undesirable side effect of loading the entire object graph before returning
> a result. This can result in a very large amount of data being returned.
> What I was really hop
; > If you don't want to use spring, you can write your own servlet filter
> that
> > opens a Hibernate session coming in and closes it going out.
> >
> > Michael Davis
> > from sunny Ottawa
> >
> >
> > -Original Message-
> > From: Steve S
e your own servlet filter that
> opens a Hibernate session coming in and closes it going out.
>
> Michael Davis
> from sunny Ottawa
>
>
> -Original Message-
> From: Steve S [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 21, 2007 4:36 PM
> To: axis-user@ws.
oing out.
Michael Davis
from sunny Ottawa
-Original Message-
From: Steve S [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 21, 2007 4:36 PM
To: axis-user@ws.apache.org
Subject: Returning Hibernate detached objects in Axis2
Has anyone tried to return a Hibernate detached object in an Axis
I typically just use the getters to populate xml via databinding,
though you may have luck with JiBX - look at those docs on its main
site as they talk a bit about hibernate.
HTH,
Robert
On 8/21/07, Steve S <[EMAIL PROTECTED]> wrote:
> Has anyone tried to return a Hibernate detached object in an
Has anyone tried to return a Hibernate detached object in an Axis2 web
service? I have an object with lazy-loaded collections of objects. When I
try to call the web service, I get a LazyInitializationException because the
serializer (Axiom? StAX?) is trying to iterate over the collection. What I
ne