Web Container / GAE





web.xml

<listener> 
<listener-class>org.jboss.weld.environment.servlet.Listener</listener-class> 
</listener>


beans.xml

<?xml version="1.0" encoding="UTF-8"?> 
<beans xmlns="http://java.sun.com/xml/ns/javaee" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation=" 
http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/beans_1_0.xsd"> 
</beans>



Library



Compile
  • Weld 1.0.1
    • cdi-api.jar
    • weld-api.jar
    • weld-core.jar
    • weld-servlet.jar


Runtime
  • Weld 1.0.1
    • cdi-api.jar
    • weld-api.jar
    • weld-core.jar
    • weld-servlet.jar





Reference


Configuring JavaServer Faces 2.0 to run on the Google App Engine Using Eclipseyou may consider taking advantage of the capabilities offered by the Contexts and Dependency Injection (JSR-299) (CDI) framework (theJSR was referred to as "Web Beans" prior to January 26, 2009). CDI provides similarly named @ApplicationScoped, @SessionScoped, @RequestScoped annotations (part of thejavax.enterprise.context package) but uses a @Named annotation in favor of the JSF 2.0 @ManagedBean annotation. CDI also introduces the @ConversationScopedannotation which is familiar to Seam aficionados and provides a variable-length scope that can span requests but isn't as long-lived as either the Session or Application scope. If you are interested in incorporating the CDI framework into your App Engine project, have a look a the "Configuring JBoss Weld to Run with JavaServer Faces on the Google App Engine" after completing this tutorial.

Comments