grails-events-push icon indicating copy to clipboard operation
grails-events-push copied to clipboard

hibernate session not bound to thread

Open halfbaked opened this issue 12 years ago • 2 comments

something for the wish list Stephane....

on two separate occassions I ran into no hibernate session bound to the thread problems. I can plop a DomainClass.withTransaction { -> closure in there which can kind of fix them but if it wasn't required that would be nice. The two occassions are:

  • In the browser filter if I need to verify whether I can send the event to the client or not, I need to pull in other objects
  • In the JSON rendering, I use custom renderers for domain objects, and again pull in associated data via hibernate - if that makes sense

halfbaked avatar Nov 09 '12 20:11 halfbaked

Working on a pull request for this here. Hopefully I should have something to show soon.

halfbaked avatar Nov 15 '12 14:11 halfbaked

thanks a lot, I'll have a look soon, I've spent tough times the last couple of month sorry for the delay :)

On Thu, Nov 15, 2012 at 2:50 PM, halfbaked [email protected] wrote:

Working on a pull request for this here. Hopefully I should have something to show soon.

— Reply to this email directly or view it on GitHubhttps://github.com/smaldini/grails-events-push/issues/20#issuecomment-10410811.

Stéphane MALDINI

smaldini avatar Nov 15 '12 21:11 smaldini