From: Roland Haeder Date: Mon, 14 Sep 2015 06:27:31 +0000 (+0200) Subject: admin beans (and controllers) should use admin interfaces to avoid confusion. :) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5466bf214fbb0c9d2d82d6200c5d9f2a85604bd4;p=pizzaservice-war.git admin beans (and controllers) should use admin interfaces to avoid confusion. :) Signed-off-by:Roland Häder --- diff --git a/lib/jshop-ee-lib.jar b/lib/jshop-ee-lib.jar index fac6080c..4970b7f6 100644 Binary files a/lib/jshop-ee-lib.jar and b/lib/jshop-ee-lib.jar differ diff --git a/src/java/org/mxchange/pizzaapplication/beans/category/AdminCategoryWebBean.java b/src/java/org/mxchange/pizzaapplication/beans/category/AdminCategoryWebBean.java index b479817e..397f73b1 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/category/AdminCategoryWebBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/category/AdminCategoryWebBean.java @@ -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