Hello Sky,

When my application launches, I create a queued task which constructs
my singleton PMF instance asynchronously.

My "getPMF()" method then uses this instance, and creates it at once
if it is not yet created for some reason.

This way, the creation of my PMF does not cause a delay to app start-
up. One tip though: my parallel processing would be useless if I
needed to exchange data with the datastore to show the app's first
page!

Cheers,

Ian


> Is there a way to instantiate it upon application launch?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to