You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Kaspar Fischer <fi...@inf.ethz.ch> on 2008/01/12 02:47:28 UTC

org.apache.tapestry.page-pool-min-idle

Hi there,

My website has, apart from a few seldomly accessed pages, one page,  
ArticlePage.html,
which is used for *all* articles in our backend DB. That is, there  
are more than 500
different (friendly) URLs

   /app/ArticlePage.html?id=1000
   /app/ArticlePage.html?id=1001
   ...

that all use the same page ArticlePage.html.

I am wondering whether I should, in this situation, increase

   org.apache.tapestry.page-pool-min-idle

in my hivemodule.xml? I guess I should set it to the "average" number  
of concurrent
users, right?

How would I do this?

<contribution configuration-id="hivemind.FactoryDefaults">
     <default symbol="org.apache.tapestry.page-pool-min-idle"  
value="4" />
</contribution>

Or do I have to use something like "InfrastructureOverrides"? The  
latter is used to
override the exception settings, see

   http://tapestry.apache.org/tapestry4.1/developmentguide/ 
exceptionpages.html

Many thanks,
Kaspar

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: org.apache.tapestry.page-pool-min-idle

Posted by Marcus Schulte <et...@googlemail.com>.
To override "FactoryDefaults" you must use another SymbolSource. Most of the
time this will be "ApplicationDefaults".

2008/1/18, Kaspar Fischer <fi...@inf.ethz.ch>:
>
>
> On 12.01.2008, at 02:47, Kaspar Fischer wrote:
> > How would I do this?
> >
> > <contribution configuration-id="hivemind.FactoryDefaults">
> >     <default symbol="org.apache.tapestry.page-pool-min-idle"
> > value="4" />
> > </contribution>
> >
> > Or do I have to use something like "InfrastructureOverrides"? The
> > latter is used to
> > override the exception settings, see
> >
> >   http://tapestry.apache.org/tapestry4.1/developmentguide/
> > exceptionpages.html
> >
>
> I've tried the former approach and it does not work:
>
>    Caused by: org.apache.hivemind.ApplicationRuntimeException:
> Element default (at jar:file:...tomcat/wtpwebapps/KC/WEB-INF/lib/
> tapestry-framework-4.1.3.jar!/META-INF/tapestry.page.xml, line 37,
> column 78) contains errors: Value for attribute
> 'symbol' ('org.apache.tapestry.page-pool-min-idle') duplicates a
> prior instance at context:/WEB-INF/hivemodule.xml, line 5, column 72.
> [jar:file...tomcat/wtpwebapps/KC/WEB-INF/lib/tapestry-
> framework-4.1.3.jar!/META-INF/tapestry.page.xml, line 37, column 78]
>         at org.apache.hivemind.impl.SchemaElement.validateAttributes
> (SchemaElement.java:185)
>         at org.apache.hivemind.impl.SchemaProcessorImpl.processElement
> (SchemaProcessorImpl.java:251)
>         at org.apache.hivemind.impl.SchemaProcessorImpl.processRootElement
> (SchemaProcessorImpl.java:235)
>
> So I have tried the latter approach (again in hivemodule.xml):
>
>   <contribution configuration-id="tapestry.InfrastructureOverrides">
>    <property name="org.apache.tapestry.page-pool-min-idle" value="4" />
>   </contribution>
>
> With this, no errors are reported. But maybe the configuration is
> just ignored?
> How can I verify the "page-pool-min-idle" property has been set?
>
> Thanks,
> Kaspar
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Marcus Schulte
http://marcus-schulte.blogspot.com

Re: org.apache.tapestry.page-pool-min-idle

Posted by Kaspar Fischer <fi...@inf.ethz.ch>.
On 12.01.2008, at 02:47, Kaspar Fischer wrote:
> How would I do this?
>
> <contribution configuration-id="hivemind.FactoryDefaults">
>     <default symbol="org.apache.tapestry.page-pool-min-idle"  
> value="4" />
> </contribution>
>
> Or do I have to use something like "InfrastructureOverrides"? The  
> latter is used to
> override the exception settings, see
>
>   http://tapestry.apache.org/tapestry4.1/developmentguide/ 
> exceptionpages.html
>

I've tried the former approach and it does not work:

   Caused by: org.apache.hivemind.ApplicationRuntimeException:  
Element default (at jar:file:...tomcat/wtpwebapps/KC/WEB-INF/lib/ 
tapestry-framework-4.1.3.jar!/META-INF/tapestry.page.xml, line 37,  
column 78) contains errors: Value for attribute  
'symbol' ('org.apache.tapestry.page-pool-min-idle') duplicates a  
prior instance at context:/WEB-INF/hivemodule.xml, line 5, column 72.  
[jar:file...tomcat/wtpwebapps/KC/WEB-INF/lib/tapestry- 
framework-4.1.3.jar!/META-INF/tapestry.page.xml, line 37, column 78]
	at org.apache.hivemind.impl.SchemaElement.validateAttributes 
(SchemaElement.java:185)
	at org.apache.hivemind.impl.SchemaProcessorImpl.processElement 
(SchemaProcessorImpl.java:251)
	at org.apache.hivemind.impl.SchemaProcessorImpl.processRootElement 
(SchemaProcessorImpl.java:235)

So I have tried the latter approach (again in hivemodule.xml):

  <contribution configuration-id="tapestry.InfrastructureOverrides">
   <property name="org.apache.tapestry.page-pool-min-idle" value="4" />
  </contribution>

With this, no errors are reported. But maybe the configuration is  
just ignored?
How can I verify the "page-pool-min-idle" property has been set?

Thanks,
Kaspar

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org