]> git.mxchange.org Git - pizzaservice-war.git/blobdiff - src/java/org/mxchange/pizzaapplication/beans/customer/PizzaCustomerWebSessionBean.java
Fixed wrong EJB name
[pizzaservice-war.git] / src / java / org / mxchange / pizzaapplication / beans / customer / PizzaCustomerWebSessionBean.java
index 6b3b64b52c457ae97bd6e85f4d322c9ce461984f..69b8c420e5ce4e9cb8ce85d175a9c02a5c67f993 100644 (file)
@@ -26,11 +26,11 @@ import org.mxchange.jcontacts.contact.Contact;
 import org.mxchange.jcontacts.contact.UserContact;
 import org.mxchange.jcontacts.contact.gender.Gender;
 import org.mxchange.jcountry.data.Country;
+import org.mxchange.jcustomercore.model.customer.Customer;
+import org.mxchange.jcustomercore.model.customer.CustomerSessionBeanRemote;
 import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
 import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
 import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
-import org.mxchange.jshopcore.model.customer.Customer;
-import org.mxchange.jshopcore.model.customer.CustomerSessionBeanRemote;
 import org.mxchange.jshopcore.model.customer.ShopCustomer;
 
 /**
@@ -131,7 +131,7 @@ public class PizzaCustomerWebSessionBean implements PizzaCustomerWebSessionContr
                        Context context = new InitialContext();
 
                        // Try to lookup
-                       this.customerBean = (CustomerSessionBeanRemote) context.lookup("ejb/stateless-customer");
+                       this.customerBean = (CustomerSessionBeanRemote) context.lookup("java:global/jshop-ejb/shop_customer!org.mxchange.jcustomercore.model.customer.CustomerSessionBeanRemote"); //NOI18N
                } catch (final NamingException e) {
                        // Throw again
                        throw new FaceletException(e);
@@ -293,4 +293,5 @@ public class PizzaCustomerWebSessionBean implements PizzaCustomerWebSessionContr
        public boolean isRequiredPersonalDataSet () {
                return ((this.getGender() != null) && (this.getFirstName() != null) && (this.getFamilyName() != null) && (this.getStreet() != null) && (this.getHouseNumber() != null) && (this.getZipCode() != null) && (this.getCity() != null));
        }
+
 }