]> 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 257e20d65767c84785665bcc863a86f88a8d844d..41f61484673a5c85557bc44be4daf057de3df8b8 100644 (file)
@@ -23,6 +23,7 @@ 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;
@@ -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