Ryan,

I'd suggest that you post some of your hibernate code
here [1] with the same question.  You'll get a lot
better Hibernate support there.

That said, one important thing to keep in mind from
the Flex perspective is your service interface.  You
should design the integration point as a
course-grained service that does as much work on the
server as possible (instead of lots and lots of
service calls, wrap all that logic behind one clean
service point).  This is a fairly well known pattern
for web services.

I have seen services before that exposed lots of
CRUD/database operations that don't provide a clean
layering in the application and caused serious pain
when integrating with Flex (imagine lots of
synchronous calls... possible, but painful).

hope that helps,

~harris


[1] http://forum.hibernate.org/


--- Ryan Scott Jones <[EMAIL PROTECTED]> wrote:
> Hi Steve,
> 
>  
> 
> Thanks for the help.  I have all of my collections
> mapped as lazy="false".
> Everything I've tried ends with:
> 
>  
> 
> - could not initialize proxy - the owning Session
> was closed
> 
> org.hibernate.LazyInitializationException: could not
> initialize proxy - the
> owning Session was closed
> 
>  
> 
> Any idea what I might be forgetting?
> 
>  
> 
> Ryan
> 
>  
> 
>   _____  
> 
> From: Steven Shaw [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, April 12, 2005 7:22 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Hibernate
> 
>  
> 
> You will want to watch your server log closely as
> you probably are getting
> errors in there about lazy instantiation. Putting
> lazy="true" in your
> mapping file does not guarantee that the association
> will be instantiated.
> It depends in max-fetch-depth and perhaps other
> things. You could try using
> Hibernate.initialize(<collection>) to ensure it is
> initialised before
> allowing AMF to get at it.
> 
> Steve.
> 
> 
> 
>   _____  
> 
> Yahoo! Groups Links
> 
> *     To visit your group on the web, go to:
> http://groups.yahoo.com/group/flexcoders/
>   
> *     To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
<mailto:[EMAIL PROTECTED]>
> 
>   
> *     Your use of Yahoo! Groups is subject to the Yahoo!
> <http://docs.yahoo.com/info/terms/>  Terms of
> Service. 
> 
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to