Author: pete.muir(a)jboss.org
Date: 2009-03-28 11:32:12 -0400 (Sat, 28 Mar 2009)
New Revision: 2246
Added:
examples/trunk/tomcat/WebContent/META-INF/
examples/trunk/tomcat/WebContent/META-INF/context.xml
Removed:
examples/trunk/tomcat/src/main/resources/META-INF/
Modified:
examples/trunk/tomcat/WebContent/WEB-INF/web.xml
examples/trunk/tomcat/pom.xml
examples/trunk/tomcat/src/main/java/org/jboss/webbeans/examples/numberguess/Game.java
Log:
WBX-10
Copied: examples/trunk/tomcat/WebContent/META-INF (from rev 2237,
examples/trunk/tomcat/src/main/resources/META-INF)
Added: examples/trunk/tomcat/WebContent/META-INF/context.xml
===================================================================
--- examples/trunk/tomcat/WebContent/META-INF/context.xml (rev 0)
+++ examples/trunk/tomcat/WebContent/META-INF/context.xml 2009-03-28 15:32:12 UTC (rev
2246)
@@ -0,0 +1,5 @@
+<Context>
+ <Resource name="app/Manager" auth="Container"
+ type="javax.inject.manager.Manager"
+ factory="org.jboss.webbeans.resources.ManagerObjectFactory"/>
+</Context>
Property changes on: examples/trunk/tomcat/WebContent/META-INF/context.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: examples/trunk/tomcat/WebContent/WEB-INF/web.xml
===================================================================
--- examples/trunk/tomcat/WebContent/WEB-INF/web.xml 2009-03-28 14:54:55 UTC (rev 2245)
+++ examples/trunk/tomcat/WebContent/WEB-INF/web.xml 2009-03-28 15:32:12 UTC (rev 2246)
@@ -33,4 +33,17 @@
<listener-class>org.jboss.webbeans.environment.tomcat.Listener</listener-class>
</listener>
+ <resource-env-ref>
+ <description>
+ Object factory for the JCDI Manager
+ </description>
+ <resource-env-ref-name>
+ app/Manager
+ </resource-env-ref-name>
+ <resource-env-ref-type>
+ javax.inject.manager.Manager
+ </resource-env-ref-type>
+ </resource-env-ref>
+
+
</web-app>
Modified: examples/trunk/tomcat/pom.xml
===================================================================
--- examples/trunk/tomcat/pom.xml 2009-03-28 14:54:55 UTC (rev 2245)
+++ examples/trunk/tomcat/pom.xml 2009-03-28 15:32:12 UTC (rev 2246)
@@ -40,7 +40,6 @@
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
- <scope>runtime</scope>
</dependency>
<dependency>
Modified:
examples/trunk/tomcat/src/main/java/org/jboss/webbeans/examples/numberguess/Game.java
===================================================================
---
examples/trunk/tomcat/src/main/java/org/jboss/webbeans/examples/numberguess/Game.java 2009-03-28
14:54:55 UTC (rev 2245)
+++
examples/trunk/tomcat/src/main/java/org/jboss/webbeans/examples/numberguess/Game.java 2009-03-28
15:32:12 UTC (rev 2246)
@@ -13,6 +13,7 @@
import javax.inject.AnnotationLiteral;
import javax.inject.Current;
import javax.inject.manager.Manager;
+import javax.naming.NamingException;
@Named
@SessionScoped
@@ -31,9 +32,7 @@
@Current Manager manager;
- public Game()
- {
- }
+ public Game() throws NamingException {}
public int getNumber()
{
Show replies by date