Skip to content

Commit

Permalink
WBX-10
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuir committed Mar 28, 2009
1 parent 4cf4d05 commit 4b67e3f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
5 changes: 5 additions & 0 deletions tomcat/WebContent/META-INF/context.xml
@@ -0,0 +1,5 @@
<Context>
<Resource name="app/Manager" auth="Container"
type="javax.inject.manager.Manager"
factory="org.jboss.webbeans.resources.ManagerObjectFactory"/>
</Context>
13 changes: 13 additions & 0 deletions tomcat/WebContent/WEB-INF/web.xml
Expand Up @@ -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>
1 change: 0 additions & 1 deletion tomcat/pom.xml
Expand Up @@ -40,7 +40,6 @@
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
<scope>runtime</scope>
</dependency>

<dependency>
Expand Down
Expand Up @@ -13,6 +13,7 @@
import javax.inject.AnnotationLiteral;
import javax.inject.Current;
import javax.inject.manager.Manager;
import javax.naming.NamingException;

@Named
@SessionScoped
Expand All @@ -31,9 +32,7 @@ public class Game implements Serializable

@Current Manager manager;

public Game()
{
}
public Game() throws NamingException {}

public int getNumber()
{
Expand Down

0 comments on commit 4b67e3f

Please sign in to comment.