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;
/**
* 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