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;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import org.mxchange.jcoreee.beans.BaseFrameworkBean;
-import org.mxchange.jshop.beans.shop.ShopSessionBeanRemote;
import org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException;
import org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException;
import org.mxchange.jshopcore.model.category.Category;
import org.mxchange.jshopcore.model.product.Product;
+import org.mxchange.jshopeelib.beans.remote.shop.ShopSessionBeanRemote;
/**
* Main application class
/**
* Remote bean
*/
+ @EJB
private final ShopSessionBeanRemote remote;
/**
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