]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
admin beans (and controllers) should use admin interfaces to avoid confusion. :)
authorRoland Haeder <roland@mxchange.org>
Mon, 14 Sep 2015 06:27:31 +0000 (08:27 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 14 Sep 2015 06:27:31 +0000 (08:27 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

lib/jshop-ee-lib.jar
src/java/org/mxchange/pizzaapplication/beans/category/AdminCategoryWebBean.java

index fac6080cdeacdaef5a41108ed84a5b97bf72ac37..4970b7f66dac5d9e4d671cb65bb80c2b782786a0 100644 (file)
Binary files a/lib/jshop-ee-lib.jar and b/lib/jshop-ee-lib.jar differ
index b479817e8669ea14b17e7fee56bf2d1264938d30..397f73b13871ab2c5a21ec94f2503035f78f9f5e 100644 (file)
@@ -25,8 +25,8 @@ import javax.naming.NamingException;
 import org.mxchange.jcoreee.beans.BaseFrameworkBean;
 import org.mxchange.jshopcore.exceptions.CannotAddCategoryException;
 import org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException;
+import org.mxchange.jshopcore.model.category.AdminCategorySessionBeanRemote;
 import org.mxchange.jshopcore.model.category.Category;
-import org.mxchange.jshopcore.model.category.CategorySessionBeanRemote;
 import org.mxchange.jshopcore.model.category.ProductCategory;
 import org.mxchange.pizzaapplication.beans.controller.ShopWebController;
 
@@ -46,7 +46,7 @@ public class AdminCategoryWebBean extends BaseFrameworkBean implements AdminCate
        /**
         * Remote bean for categories
         */
-       private final CategorySessionBeanRemote categoryBean;
+       private final AdminCategorySessionBeanRemote categoryBean;
 
        /**
         * Shop bean
@@ -74,7 +74,7 @@ public class AdminCategoryWebBean extends BaseFrameworkBean implements AdminCate
                InitialContext context = new InitialContext();
 
                // Try to lookup the bean
-               this.categoryBean = (CategorySessionBeanRemote) context.lookup("ejb/stateless-category"); //NOI18N
+               this.categoryBean = (AdminCategorySessionBeanRemote) context.lookup("ejb/stateless-admin-category"); //NOI18N
        }
 
        @Override