]> git.mxchange.org Git - pizzaservice-war.git/blobdiff - src/java/org/mxchange/pizzaapplication/beans/controller/PizzaServiceWebBean.java
updated jshop-ee-jar + made first calls
[pizzaservice-war.git] / src / java / org / mxchange / pizzaapplication / beans / controller / PizzaServiceWebBean.java
index 6949560f3bbff26f167305b189e40c277d72b625..41f61484673a5c85557bc44be4daf057de3df8b8 100644 (file)
@@ -23,17 +23,18 @@ import java.sql.SQLException;
 import java.util.Deque;
 import java.util.Iterator;
 import javax.annotation.PostConstruct;
+import javax.ejb.EJB;
 import javax.enterprise.context.SessionScoped;
 import javax.faces.FacesException;
 import javax.inject.Named;
 import javax.naming.InitialContext;
 import javax.naming.NamingException;
 import org.mxchange.jcoreee.beans.BaseFrameworkBean;
-import org.mxchange.jshop.beans.shop.ShopSessionBeanRemote;
 import org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException;
 import org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException;
 import org.mxchange.jshopcore.model.category.Category;
 import org.mxchange.jshopcore.model.product.Product;
+import org.mxchange.jshopeelib.beans.remote.shop.ShopSessionBeanRemote;
 
 /**
  * Main application class
@@ -51,6 +52,7 @@ public class PizzaServiceWebBean extends BaseFrameworkBean implements PizzaWebBe
        /**
         * Remote bean
         */
+       @EJB
        private final ShopSessionBeanRemote remote;
 
        /**
@@ -73,7 +75,7 @@ public class PizzaServiceWebBean extends BaseFrameworkBean implements PizzaWebBe
                InitialContext context = new InitialContext();
 
                // Try to lookup the bean
-               this.remote = (ShopSessionBeanRemote) context.lookup("ejb/stateless-shop");
+               this.remote = (ShopSessionBeanRemote) context.lookup("ejb/stateless-shop"); //NOI18N
        }
 
        @Override