From: Roland Haeder Date: Fri, 18 Sep 2015 13:20:35 +0000 (+0200) Subject: moved interface WrapableReceipt to jshop-ee-lib + called EJB (no functionality yet) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0d9f93783c8c1d6fc36e832af1a86004d2f10edc;p=pizzaservice-war.git moved interface WrapableReceipt to jshop-ee-lib + called EJB (no functionality yet) Signed-off-by:Roland Häder --- diff --git a/lib/jshop-ee-lib.jar b/lib/jshop-ee-lib.jar index 0cb88359..0301ab7d 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/servlet/receipt/PdfReceiptServlet.java b/src/java/org/mxchange/pizzaapplication/servlet/receipt/PdfReceiptServlet.java index 252672b6..944bfd0c 100644 --- a/src/java/org/mxchange/pizzaapplication/servlet/receipt/PdfReceiptServlet.java +++ b/src/java/org/mxchange/pizzaapplication/servlet/receipt/PdfReceiptServlet.java @@ -26,6 +26,7 @@ import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.mxchange.jshopcore.model.receipt.ReceiptBeanRemote; +import org.mxchange.jshopcore.model.receipt.WrapableReceipt; /** * A servlet for a PDF receipt (official) @@ -42,7 +43,7 @@ public class PdfReceiptServlet extends HttpServlet { /** * Remote bean */ - private final ReceiptBeanRemote receipt; + private final ReceiptBeanRemote receiptBean; /** * Public constructor @@ -54,7 +55,7 @@ public class PdfReceiptServlet extends HttpServlet { Context context = new InitialContext(); // Set instance - this.receipt = (ReceiptBeanRemote) context.lookup("ejb/pdf-receipt"); + this.receiptBean = (ReceiptBeanRemote) context.lookup("ejb/pdf-receipt"); //NOI18N } catch (final NamingException e) { // Throw again throw new FaceletException(e); @@ -64,13 +65,16 @@ public class PdfReceiptServlet extends HttpServlet { @Override protected void doGet (final HttpServletRequest request, final HttpServletResponse response) throws ServletException, IOException { // Is the key set? - if (request.getParameter("key") == null) { + if (request.getParameter("key") == null) { //NOI18N // No more processing here super.doGet(request, response); return; } // Get PDF from bean + WrapableReceipt receipt = this.receiptBean.createReceiptFromAccessKey(request.getParameter("key")); //NOI18N + + // TODO Write it's content to response output } @Override