Hi George

I would use the ORM caching techniques for these cases. 

http://www.ehcache.org/documentation/

regards
Taha

On May 10, 2012, at 12:04 AM, George Christman wrote:

> Figured it out Thiago, I just needed to do the following. 
> 
>    private AutocompleteCache autocompleteCache;
> 
>    public Scheduler(Session session, AutocompleteCache autocompleteCache) {
>        this.session = session;
>        this.autocompleteCache = autocompleteCache;
>    }
> 
>                public void run() {
>                    List<ApplicationUser> users =
> session.createCriteria(ApplicationUser.class).list();
>                    autocompleteCache.store(users);
>                }
> 
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Cache-avaiable-to-all-user-sessions-tp5697890p5698177.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 

Reply via email to