Hello all. I'm new to this group but I've been using GWT for a long
time.

I'm just implementing some really simple persistency between my GWT
app and the App Engine using RPC.

The App Engine tutorial guide says that creating a
PersistenceManagerFactory is expensive and should only be done once in
the lifetime of the app. So instantiate it like this:

public final class PMF {
    private static final PersistenceManagerFactory pmfInstance =
        JDOHelper.getPersistenceManagerFactory("transactions-
optional");

    private PMF() {}

    public static PersistenceManagerFactory get() {
        return pmfInstance;
    }
}


I find that the static pmfInstance only gets initialized on the VERY
first call to get(). This happens during the first ever RPC call.
Obviously once it's initialized it's good to go for all further RPC
calls, but the very first RPC call is dreadfully slow!

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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to