Josh Canfield [mailto:joshcanfi...@gmail.com]
> Sent: 22 July 2010 16:25
> To: Tapestry users
> Subject: Re: non thread safe access to session
>
>> I do however have some buried code where I force a transaction to commit
> to allow me to assign some non-customer facing entity keys in ba
[mailto:joshcanfi...@gmail.com]
> Sent: 22 July 2010 16:25
> To: Tapestry users
> Subject: Re: non thread safe access to session
>
>> I do however have some buried code where I force a transaction to commit
> to allow me to assign some non-customer facing entity keys in batches, to
o thread safety
issues. I'm going to rearrange it to make it more service based. I think
this is just down to bad coding practice.
Regards,
Jim.
-Original Message-
From: Josh Canfield [mailto:joshcanfi...@gmail.com]
Sent: 22 July 2010 16:25
To: Tapestry users
Subject: Re: non thread sa
l do it. Thanks for the tips guys.
>
> Regards,
> Jim.
>
> -Original Message-
> From: Jonathan Barker [mailto:jonathan.theit...@gmail.com]
> Sent: 22 July 2010 02:31
> To: Tapestry users
> Subject: Re: non thread safe access to session
>
> Jim,
>
>
m.
-Original Message-
From: Jonathan Barker [mailto:jonathan.theit...@gmail.com]
Sent: 22 July 2010 02:31
To: Tapestry users
Subject: Re: non thread safe access to session
Jim,
I have vague recollections of hitting this before.
IIRC, each hibernate object knows the Session that it is as
.
>
> Regards,
> Jim.
>
> -Original Message-
> From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com]
> Sent: 21 July 2010 18:22
> To: Tapestry users
> Subject: Re: non thread safe access to session
>
> On Wed, 21 Jul 2010 13:58:15 -0300, Jim O'
le data creation, I found I was
> getting some "non thread safe access to session" type messages when I
> launched a second user session and hit the same scratch page. This doesn't
> happen if I mark the relevant method in service A as synchronized, but this
> brings with it a
eiredo [mailto:thiag...@gmail.com]
Sent: 21 July 2010 18:22
To: Tapestry users
Subject: Re: non thread safe access to session
On Wed, 21 Jul 2010 13:58:15 -0300, Jim O'Callaghan
wrote:
> Hi Thiago,
Hi, Jim!
> I'm talking about the hibernate session - I'm injecting it into
On Wed, 21 Jul 2010 13:58:15 -0300, Jim O'Callaghan
wrote:
Hi Thiago,
Hi, Jim!
I'm talking about the hibernate session - I'm injecting it into the
constructor of Service B at bind time. I thought Tapestry would treat
the service as a thread safe singleton and control access to method
gards,
Jim.
-Original Message-
From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com]
Sent: 21 July 2010 17:38
To: Tapestry users
Subject: Re: non thread safe access to session
Are you talking about Tapestry sessions or Hibernate sessions? Hibernate
sessions should never be used a
Are you talking about Tapestry sessions or Hibernate sessions? Hibernate
sessions should never be used at the same time by more than one thread.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnolo
bind
time. I have service A called in a finite loop in the setup (@SetupRender)
method of a scratch page I use for some dev testing. To cut a long story
short, when playing around with the sample data creation, I found I was
getting some "non thread safe access to session" type messa
12 matches
Mail list logo