Java Reference
In-Depth Information
Listing 4-10. The code for PMF.java
package com.appirio;
import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManagerFactory;
public final class PMF {
private static final PersistenceManagerFactory pmfInstance =
JDOHelper.getPersistenceManagerFactory("transactions-optional");
private PMF() {}
public static PersistenceManagerFactory get() {
return pmfInstance;
}
}
Spring MVC
Spring MVC is one of the more popular frameworks and is fully compatible with
App Engine. The only modification you may have to make is if you are using Spring
Forms, in which case you'll need to register custom editors for your properties.
In this section you're going to set up a quick Spring application to show the best
practices and configuration to run on App Engine.
To get started, create a new Web Application Project and paste the following jar
files from the Spring distribution into your /WEB-INB/lib directory. You'll also need to
add the files to your build path.
spring-web.jar
spring-webmvc.jar
spring-core.jar
spring-beans.jar
spring-context.jar
standard.jar
jstl.jar
commons-logging.jar
 
Search WWH ::




Custom Search