« Return to Thread: No Hibernate Session bound to thread

Re: No Hibernate Session bound to thread

by Brad Booth :: Rate this Message:

Reply to Author | View in Thread

The db operation, it basically provides a hibernate session outside a  
http request

Sent from my iPhone

On Jun 23, 2009, at 1:48 PM, ray211 <raystiegler@...> wrote:

>
> Stupid question please!
>
> Is the background-thread for the onMessage() of the DB write?
>
>
>
> Brad Booth wrote:
>>
>> The hibernate session is bound to the request, try the background-
>> thread plugin it solves this.
>>
>>
>> Sent from my iPhone
>>
>> On Jun 23, 2009, at 11:07 AM, ray211 <raystiegler@...> wrote:
>>
>>>
>>> Getting the following error:
>>> org.hibernate.HibernateException: No Hibernate Session bound to
>>> thread, and
>>> configuration does not allow creation of non-transactional one here
>>>
>>> My Grails service listens for JMS message.  Once received it writes
>>> that
>>> data to the database.  On the it.save() this exception is thrown.
>>>
>>> Any suggestions?
>>>
>>> Thaks!
>>> --
>>> View this message in context:
>>> http://www.nabble.com/No-Hibernate-Session-bound-to-thread-tp24169249p24169249.html
>>> Sent from the grails - dev mailing list archive at Nabble.com.
>>>
>>>
>>> ---
>>> ------------------------------------------------------------------
>>> To unsubscribe from this list, please visit:
>>>
>>>   http://xircles.codehaus.org/manage_email
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/No-Hibernate-Session-bound-to-thread-tp24169249p24174186.html
> Sent from the grails - dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: No Hibernate Session bound to thread