]> git.mxchange.org Git - pizzaservice-war.git/blobdiff - src/java/org/mxchange/pizzaapplication/converter/fax/PizzaFaxNumberConverter.java
Please cherry-pick:
[pizzaservice-war.git] / src / java / org / mxchange / pizzaapplication / converter / fax / PizzaFaxNumberConverter.java
index 1e031fca9c36ce805b3695e95318bc1ba4b2da24..e93f91aee7821523ab7b43889dac91fab6039661 100644 (file)
@@ -49,10 +49,10 @@ public class PizzaFaxNumberConverter implements Converter<DialableFaxNumber> {
                if (PHONE_BEAN == null) {
                        try {
                                // Not yet, attempt lookup
-                               Context initial = new InitialContext();
+                               final Context initial = new InitialContext();
 
                                // Lookup EJB
-                               PHONE_BEAN = (PhoneSessionBeanRemote) initial.lookup("java:global/jfinancials-ejb/phone!org.mxchange.jphone.phonenumbers.phone.PhoneSessionBeanRemote");
+                               PHONE_BEAN = (PhoneSessionBeanRemote) initial.lookup("java:global/jfinancials-ejb/phone!org.mxchange.jphone.model.phonenumbers.phone.PhoneSessionBeanRemote");
                        } catch (final NamingException ex) {
                                // Throw it again
                                throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup EJB", ex.getMessage()), ex);
@@ -76,7 +76,7 @@ public class PizzaFaxNumberConverter implements Converter<DialableFaxNumber> {
 
                try {
                        // Try to parse the value as long
-                       Long faxNumberId = Long.valueOf(submittedValue);
+                       final Long faxNumberId = Long.valueOf(submittedValue);
 
                        // Log message
                        // @TODO Not possible here: this.loggerBeanLocal.logDebug(MessageFormat.format("{0}.getAsObject: faxNumberId={1}", this.getClass().getSimpleName(), faxNumberId)); //NOI18N