You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Howard Lewis Ship <hl...@gmail.com> on 2012/06/01 15:21:49 UTC

Re: T5 and Redis

I don't know the Redis/Jedis API, but you probably want to close the
connection you open explicitly.

See http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/ioc/services/PerthreadManager.html#addThreadCleanupListener(org.apache.tapestry5.ioc.services.ThreadCleanupListener)

I would tend to add a method annotated with @PostConstruct that
injects the PerthreadManager as the place to register the listener,
i.e.,

  @PostConstruct
  public void registerForCleanup(PerthreadManager manager) {
    manager.addThreadCleanupListener(new ThreadCleanupListener() { ... });
  }

On Thu, May 31, 2012 at 4:29 AM, Angelo C. <an...@gmail.com> wrote:
> Jedis has a pool, maybe it can be implemented as Hibernate.
>
> Is there anybody using Redis with T5 and how? Thanks
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/T5-and-Redis-tp5713546p5713552.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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