From: Roland Haeder Date: Sat, 5 Sep 2015 14:59:27 +0000 (+0200) Subject: updated jshop-ee-jar + made first calls X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7143a7b243039a1ea1482551659e5dcd2320f3a7;p=pizzaservice-war.git updated jshop-ee-jar + made first calls Signed-off-by:Roland Häder --- diff --git a/lib/jshop-ee-lib.jar b/lib/jshop-ee-lib.jar index eb63ff54..85b2d36b 100644 Binary files a/lib/jshop-ee-lib.jar and b/lib/jshop-ee-lib.jar differ diff --git a/nbproject/genfiles.properties b/nbproject/genfiles.properties index 206bd649..9a769e00 100644 --- a/nbproject/genfiles.properties +++ b/nbproject/genfiles.properties @@ -1,4 +1,4 @@ -build.xml.data.CRC32=1edfee4e +build.xml.data.CRC32=e1e3912d build.xml.script.CRC32=82213886 build.xml.stylesheet.CRC32=651128d4@1.68.1.1 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. diff --git a/src/java/org/mxchange/pizzaapplication/beans/controller/PizzaServiceWebBean.java b/src/java/org/mxchange/pizzaapplication/beans/controller/PizzaServiceWebBean.java index 257e20d6..41f61484 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/controller/PizzaServiceWebBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/controller/PizzaServiceWebBean.java @@ -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 diff --git a/src/java/org/mxchange/pizzaapplication/beans/customer/PizzaServiceCustomerWebBean.java b/src/java/org/mxchange/pizzaapplication/beans/customer/PizzaServiceCustomerWebBean.java index 159413a2..5154463b 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/customer/PizzaServiceCustomerWebBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/customer/PizzaServiceCustomerWebBean.java @@ -16,9 +16,11 @@ */ package org.mxchange.pizzaapplication.beans.customer; +import javax.ejb.EJB; import javax.enterprise.context.SessionScoped; import javax.inject.Named; import org.mxchange.jcoreee.beans.BaseFrameworkBean; +import org.mxchange.jshopeelib.beans.remote.customer.CustomerSessionBeanRemote; /** * A customer bean which hides the customer instance @@ -33,6 +35,12 @@ public class PizzaServiceCustomerWebBean extends BaseFrameworkBean implements Cu */ private static final long serialVersionUID = 542145347916L; + /** + * Remote customer bean + */ + @EJB + private CustomerSessionBeanRemote customer; + /** * Default constructor */