So if I understand you correctly, should I be doing this in my scheduler
class?

@Inject
private AutocompleteCache autocompleteCache;

                public void run() {
                    List<ApplicationUser> users =
session.createCriteria(ApplicationUser.class).list();
                    autocompleteCache.store(users);
                }

Rather than instantiating the AutocompleteCache like below. 

                public void run() {
                    List<ApplicationUser> users =
session.createCriteria(ApplicationUser.class).list();
                    
                    AutocompleteCache autocompleteCache = new
AutocompleteCacheImpl();
                    autocompleteCache.store(users);
                }


What I meant by I'm unable to inject the object into my page and retrieve
the results is I'm unable to retrieve the results initially populated by my
task scheduler. Population is done outside of the users session and I'm
trying to retrieve the results by calling the .find method within the user
session, however the cache at this point appears to be null. 

Thanks Thiago. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Cache-avaiable-to-all-user-sessions-tp5697890p5698146.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