You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Nathan Beemer <na...@gmail.com> on 2009/08/17 01:54:57 UTC
IEngineService blocks all other Page access
I have an IEngineService implementation that simply has
Thread.sleep(30000); in the service() implementation.
I have a simple Page with a ServiceLink that calls this IEngineService.
When I click the ServiceLink which causes Thread.sleep() to be
invoked, ALL other Page access blocks until the service() method in
IEngineService returns, even from other clients.
Is the service() method supposed to block other access? Is this a
known bug in Tapestry 4.1 ?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: IEngineService blocks all other Page access
Posted by Andreas Andreou <an...@di.uoa.gr>.
i think locking happens in a filter... look for DisableCacheFilter or similar
On Tue, Aug 18, 2009 at 5:56 AM, Nathan Beemer<be...@ksu.edu> wrote:
> Out of curiosity... is this due to some synchronized collection(s) that back
> the cache?
> they block until the RequestCycle is over in order to empty them as per the
> org.apache.tapestry.disable-caching directive.. thus all other Page access
> which can use the cache must wait?
>
>
> On Sun, Aug 16, 2009 at 8:12 PM, Andreas Andreou <an...@di.uoa.gr> wrote:
>
>> see if you have
>> org.apache.tapestry.disable-caching set to true
>>
>> It is possible that this might be causing that
>>
>> On Mon, Aug 17, 2009 at 2:54 AM, Nathan Beemer<na...@gmail.com>
>> wrote:
>> >
>> > I have an IEngineService implementation that simply has
>> Thread.sleep(30000);
>> > in the service() implementation.
>> >
>> > I have a simple Page with a ServiceLink that calls this IEngineService.
>> >
>> > When I click the ServiceLink which causes Thread.sleep() to be invoked,
>> ALL
>> > other Page access blocks until the service() method in IEngineService
>> > returns, even from other clients.
>> >
>> > Is the service() method supposed to block other access? Is this a known
>> bug
>> > in Tapestry 4.1 ?
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> > For additional commands, e-mail: users-help@tapestry.apache.org
>> >
>> >
>>
>>
>>
>> --
>> Andreas Andreou - andyhot@apache.org - http://blog.andyhot.gr
>> Tapestry / Tacos developer
>> Open Source / JEE Consulting
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
--
Andreas Andreou - andyhot@apache.org - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: IEngineService blocks all other Page access
Posted by Nathan Beemer <be...@ksu.edu>.
Out of curiosity... is this due to some synchronized collection(s) that back
the cache?
they block until the RequestCycle is over in order to empty them as per the
org.apache.tapestry.disable-caching directive.. thus all other Page access
which can use the cache must wait?
On Sun, Aug 16, 2009 at 8:12 PM, Andreas Andreou <an...@di.uoa.gr> wrote:
> see if you have
> org.apache.tapestry.disable-caching set to true
>
> It is possible that this might be causing that
>
> On Mon, Aug 17, 2009 at 2:54 AM, Nathan Beemer<na...@gmail.com>
> wrote:
> >
> > I have an IEngineService implementation that simply has
> Thread.sleep(30000);
> > in the service() implementation.
> >
> > I have a simple Page with a ServiceLink that calls this IEngineService.
> >
> > When I click the ServiceLink which causes Thread.sleep() to be invoked,
> ALL
> > other Page access blocks until the service() method in IEngineService
> > returns, even from other clients.
> >
> > Is the service() method supposed to block other access? Is this a known
> bug
> > in Tapestry 4.1 ?
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
>
> --
> Andreas Andreou - andyhot@apache.org - http://blog.andyhot.gr
> Tapestry / Tacos developer
> Open Source / JEE Consulting
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: IEngineService blocks all other Page access
Posted by Nathan Beemer <na...@gmail.com>.
it was indeed set to true. and it was indeed causing the blocking
many thanks!
On Aug 16, 2009, at 8:12 PM, Andreas Andreou wrote:
> see if you have
> org.apache.tapestry.disable-caching set to true
>
> It is possible that this might be causing that
>
> On Mon, Aug 17, 2009 at 2:54 AM, Nathan
> Beemer<na...@gmail.com> wrote:
>>
>> I have an IEngineService implementation that simply has
>> Thread.sleep(30000);
>> in the service() implementation.
>>
>> I have a simple Page with a ServiceLink that calls this
>> IEngineService.
>>
>> When I click the ServiceLink which causes Thread.sleep() to be
>> invoked, ALL
>> other Page access blocks until the service() method in IEngineService
>> returns, even from other clients.
>>
>> Is the service() method supposed to block other access? Is this a
>> known bug
>> in Tapestry 4.1 ?
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
>
>
> --
> Andreas Andreou - andyhot@apache.org - http://blog.andyhot.gr
> Tapestry / Tacos developer
> Open Source / JEE Consulting
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: IEngineService blocks all other Page access
Posted by Andreas Andreou <an...@di.uoa.gr>.
see if you have
org.apache.tapestry.disable-caching set to true
It is possible that this might be causing that
On Mon, Aug 17, 2009 at 2:54 AM, Nathan Beemer<na...@gmail.com> wrote:
>
> I have an IEngineService implementation that simply has Thread.sleep(30000);
> in the service() implementation.
>
> I have a simple Page with a ServiceLink that calls this IEngineService.
>
> When I click the ServiceLink which causes Thread.sleep() to be invoked, ALL
> other Page access blocks until the service() method in IEngineService
> returns, even from other clients.
>
> Is the service() method supposed to block other access? Is this a known bug
> in Tapestry 4.1 ?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Andreas Andreou - andyhot@apache.org - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org