]> git.mxchange.org Git - pizzaservice-war.git/blobdiff - src/java/org/mxchange/pizzaapplication/beans/checkout/CheckoutWebBean.java
Continued:
[pizzaservice-war.git] / src / java / org / mxchange / pizzaapplication / beans / checkout / CheckoutWebBean.java
index eedb20d5ce9987f4edf699734b7e0970249a4330..c85fdb0de378b66142eb260c004d3342202747d0 100644 (file)
@@ -16,7 +16,6 @@
  */
 package org.mxchange.pizzaapplication.beans.checkout;
 
-import java.text.MessageFormat;
 import java.util.List;
 import javax.annotation.PostConstruct;
 import javax.annotation.PreDestroy;
@@ -34,7 +33,6 @@ import javax.jms.Session;
 import javax.naming.Context;
 import javax.naming.InitialContext;
 import javax.naming.NamingException;
-import org.mxchange.jcoreee.beans.BaseFrameworkBean;
 import org.mxchange.jshopcore.model.basket.AddableBasketItem;
 import org.mxchange.jshopcore.model.customer.Customer;
 import org.mxchange.jshopcore.wrapper.CheckoutWrapper;
@@ -50,7 +48,7 @@ import org.mxchange.pizzaapplication.beans.receipt.ReceiptWebController;
  */
 @Named ("checkoutController")
 @SessionScoped
-public class CheckoutWebBean extends BaseFrameworkBean implements CheckoutWebController {
+public class CheckoutWebBean implements CheckoutWebController {
 
        /**
         * Serial number
@@ -109,7 +107,7 @@ public class CheckoutWebBean extends BaseFrameworkBean implements CheckoutWebCon
        @Override
        public String doCheckout () {
                // Trace message
-               this.getLogger().logTrace("doCheckout: CALLED!");
+               //this.getLogger().logTrace("doCheckout: CALLED!");
 
                // Are the beans set?
                if (null == this.basketController) {
@@ -123,13 +121,13 @@ public class CheckoutWebBean extends BaseFrameworkBean implements CheckoutWebCon
                // Are at least the required fields set?
                if (!this.customerController.isRequiredPersonalDataSet()) {
                        // Trace message
-                       this.getLogger().logTrace("doCheckout: Not all required fields are set, returning checkout2 ... - EXIT!");
+                       //this.getLogger().logTrace("doCheckout: Not all required fields are set, returning checkout2 ... - EXIT!");
 
                        // Not set, should not happen
                        return "checkout2"; //NOI18N
                } else if (this.basketController.isEmpty()) {
                        // Trace message
-                       this.getLogger().logTrace("doCheckout: basket is empty, returning empty_basket ... - EXIT!");
+                       //this.getLogger().logTrace("doCheckout: basket is empty, returning empty_basket ... - EXIT!");
 
                        // Nothing to order
                        return "empty_basket"; //NOI18N
@@ -139,13 +137,13 @@ public class CheckoutWebBean extends BaseFrameworkBean implements CheckoutWebCon
                this.setCustomer(this.customerController.createCustomerInstance());
 
                // Debug message
-               this.getLogger().logDebug(MessageFormat.format("doCheckout: customer={0}", this.getCustomer()));
+               //this.getLogger().logDebug(MessageFormat.format("doCheckout: customer={0}", this.getCustomer()));
 
                // Get ordered list
                List<AddableBasketItem> list = this.basketController.allItems();
 
                // Debug message
-               this.getLogger().logTrace(MessageFormat.format("doCheckout: list={0}", list));
+               //this.getLogger().logTrace(MessageFormat.format("doCheckout: list={0}", list));
 
                // Construct container
                WrapableCheckout wrapper = new CheckoutWrapper();
@@ -186,9 +184,6 @@ public class CheckoutWebBean extends BaseFrameworkBean implements CheckoutWebCon
 
        @PostConstruct
        public void init () {
-               // Call super init for getting resource bundle
-               super.genericInit();
-
                try {
                        // Get initial context
                        Context context = new InitialContext();