I do have one other place where I'm using SessionScope for a lazy loading entity... which is kinda odd, now that I think about it, because it should have picked up the scope at the start of the request... and it fails with lazy initialization failed error if I remove that SessionScope...
I don't recall the exact AR version number, but I'm using the one before the 2.1 release. I was planning on upgrading it. Is there a better way of configuring AR programmatically ? That's what I saw everywhere else... On Aug 12, 6:53 pm, Markus Zywitza <[email protected]> wrote: > Do you have other scopes in use? TransactionScopes sometimes create > SessionScopes implicitly. > > You can also check by comparing to SessionScope.Current, which returns the > innermost scope. > > BTW: How old is that AR? hibernate.* properties aren't supported for more > than a year now... > > -Markus > > 2009/8/12 Miki Watts <[email protected]> > > > I'm getting a ScopeMachineryException "Tried to unregister a scope > > that is not the active one" in the dispose section of the > > sessionscope. I'm not creating or touching the sessionscope in the > > application in any other place. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
