Hi,
is this the correct way of hooking a PageRenderRequestFilter ? It works for
a few hours, then the app simply stops responding after a few thousands of
counts:
public class CountRequestFilter implements PageRenderRequestFilter {
final private RedisService redisService;
public CountRequestFilter(RedisService redisService) {
this.redisService = redisService;
}
public void handle(PageRenderRequestParameters
pageRenderRequestParameters, PageRenderRequestHandler
pageRenderRequestHandler)
throws IOException {
/* do some logging here */
pageRenderRequestHandler.handle(pageRenderRequestParameters);
}
}
in AppModule.java
binder.bind(RedisService.class, RedisServiceImpl.class);
@Inject
private RedisService redisService;
public void
contributePageRenderRequestHandler(OrderedConfiguration<PageRenderRequestFilter>
configuration)
{
configuration.add("CountRequestFilter", new
CountRequestFilter(redisService) );
}
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/PageRenderRequestFilter-tp5713578.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]