[seam-commits] Seam SVN: r11038 - examples/trunk/servlet-booking/src/main/java/org/jboss/seam/examples/booking.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Fri May 29 10:50:59 EDT 2009


Author: pete.muir at jboss.org
Date: 2009-05-29 10:50:59 -0400 (Fri, 29 May 2009)
New Revision: 11038

Modified:
   examples/trunk/servlet-booking/src/main/java/org/jboss/seam/examples/booking/BeanLookup.java
   examples/trunk/servlet-booking/src/main/java/org/jboss/seam/examples/booking/HelloWorld.java
Log:
make example compile

Modified: examples/trunk/servlet-booking/src/main/java/org/jboss/seam/examples/booking/BeanLookup.java
===================================================================
--- examples/trunk/servlet-booking/src/main/java/org/jboss/seam/examples/booking/BeanLookup.java	2009-05-29 14:14:49 UTC (rev 11037)
+++ examples/trunk/servlet-booking/src/main/java/org/jboss/seam/examples/booking/BeanLookup.java	2009-05-29 14:50:59 UTC (rev 11038)
@@ -2,9 +2,10 @@
 
 import java.util.logging.Level;
 import java.util.logging.Logger;
+
+import javax.enterprise.inject.spi.BeanManager;
 import javax.faces.bean.ManagedBean;
 import javax.faces.bean.RequestScoped;
-import javax.inject.manager.Manager;
 import javax.naming.InitialContext;
 import javax.naming.NamingException;
 
@@ -14,7 +15,7 @@
    public void lookupManager() {
       try {
          InitialContext ic = new InitialContext();
-         Manager manager = (Manager) ic.lookup("java:comp/env/app/Manager");
+         BeanManager manager = (BeanManager) ic.lookup("java:comp/env/app/Manager");
          if (manager != null) {
             Logger logger = Logger.getLogger(BeanLookup.class.getName());
             logger.log(Level.INFO, "JCDI manager: " + manager.toString());

Modified: examples/trunk/servlet-booking/src/main/java/org/jboss/seam/examples/booking/HelloWorld.java
===================================================================
--- examples/trunk/servlet-booking/src/main/java/org/jboss/seam/examples/booking/HelloWorld.java	2009-05-29 14:14:49 UTC (rev 11037)
+++ examples/trunk/servlet-booking/src/main/java/org/jboss/seam/examples/booking/HelloWorld.java	2009-05-29 14:50:59 UTC (rev 11038)
@@ -1,15 +1,15 @@
 package org.jboss.seam.examples.booking;
 
-import javax.annotation.Named;
-import javax.inject.Current;
-import javax.inject.manager.Manager;
-import javax.context.RequestScoped;
+import javax.enterprise.context.RequestScoped;
+import javax.enterprise.inject.Current;
+import javax.enterprise.inject.Named;
+import javax.enterprise.inject.spi.BeanManager;
 
 @Named
 @RequestScoped
 public class HelloWorld {
 
-   private @Current Manager manager;
+   private @Current BeanManager manager;
 
    public void sayHello() {
        System.out.println("Hello! Here is the manager that I found: " + manager);




More information about the seam-commits mailing list