import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
+import org.mxchange.jfinancials.beans.financial.model.receipt.FinancialsReceiptWebRequestBean;
import org.mxchange.jfinancials.beans.financial.model.receipt.FinancialsReceiptWebRequestController;
import org.mxchange.jfinancials.exceptions.receipt.ReceiptNotFoundException;
import org.mxchange.jfinancials.model.receipt.BillableReceipt;
final Context initial = new InitialContext();
// Lookup EJB
- RECEIPT_CONTROLLER = (FinancialsReceiptWebRequestController) initial.lookup("java:module/receiptController!org.mxchange.jfinancials.beans.financial.model.receipt.FinancialsReceiptWebRequestController");
+ RECEIPT_CONTROLLER = (FinancialsReceiptWebRequestController) initial.lookup(String.format("java:module/%s", FinancialsReceiptWebRequestBean.class.getSimpleName())); //NOI18N
} catch (final NamingException ex) {
// Throw it again
- throw new ConverterException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup backing bean", ex.getMessage()), ex);
+ throw new ConverterException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup backing bean", ex.getMessage()), ex); //NOI18N
}
}