]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
updated jshop-ee-jar + made first calls
authorRoland Haeder <roland@mxchange.org>
Sat, 5 Sep 2015 14:59:27 +0000 (16:59 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 5 Sep 2015 14:59:27 +0000 (16:59 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

lib/jshop-ee-lib.jar
nbproject/genfiles.properties
src/java/org/mxchange/pizzaapplication/beans/controller/PizzaServiceWebBean.java
src/java/org/mxchange/pizzaapplication/beans/customer/PizzaServiceCustomerWebBean.java

index eb63ff547464cc498d29b187e04531ca8a1f0fc7..85b2d36bfcc6354d4bf3c8f62c384be8699d80b3 100644 (file)
Binary files a/lib/jshop-ee-lib.jar and b/lib/jshop-ee-lib.jar differ
index 206bd6493a5ae631a28e03a10ddf9d50ff4e9ad0..9a769e0075b4a631345ea0cf677a681cbc2fea96 100644 (file)
@@ -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.
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
index 159413a20977dcd90557659930facdc281419ca2..5154463bcbe22b3871e51a3ef3723588727b309f 100644 (file)
  */
 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
         */