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;
/**
* Remote bean for categories
*/
- private final CategorySessionBeanRemote categoryBean;
+ private final AdminCategorySessionBeanRemote categoryBean;
/**
* Shop bean
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