]> git.mxchange.org Git - jjobs-war.git/commitdiff
Used generic interface, not no longer existing own.
authorRoland Haeder <roland@mxchange.org>
Mon, 11 Apr 2016 15:07:57 +0000 (17:07 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 11 Apr 2016 15:07:57 +0000 (17:07 +0200)
src/java/org/mxchange/jjobs/beans/country/JobsCountryWebApplicationBean.java
src/java/org/mxchange/jjobs/converter/country/JobsCountryConverter.java

index 355d491adf987739dfc1d6016aede65d95916123..a39e2251afcedeca9e765f207c5ef2ce411bf37b 100644 (file)
@@ -26,7 +26,7 @@ import javax.naming.Context;
 import javax.naming.InitialContext;
 import javax.naming.NamingException;
 import org.mxchange.jcountry.data.Country;
-import org.mxchange.jcountry.data.JobsCountrySingletonBeanRemote;
+import org.mxchange.jcountry.data.CountrySingletonBeanRemote;
 
 /**
  * A country bean
@@ -45,7 +45,7 @@ public class JobsCountryWebApplicationBean implements JobsCountryWebApplicationC
        /**
         * Remote country EJB
         */
-       private JobsCountrySingletonBeanRemote countryBean;
+       private CountrySingletonBeanRemote countryBean;
 
        /**
         * List of all countries
@@ -62,7 +62,7 @@ public class JobsCountryWebApplicationBean implements JobsCountryWebApplicationC
                        Context context = new InitialContext();
 
                        // Try to lookup the bean
-                       this.countryBean = (JobsCountrySingletonBeanRemote) context.lookup("java:global/jjobs-ejb/country!org.mxchange.jcountry.data.JobsCountrySingletonBeanRemote"); //NOI18N
+                       this.countryBean = (CountrySingletonBeanRemote) context.lookup("java:global/jjobs-ejb/country!org.mxchange.jcountry.data.CountrySingletonBeanRemote"); //NOI18N
                } catch (final NamingException ex) {
                        // Continue to throw
                        throw new FaceletException(ex);
index 03c59780c304f9b865a65d7fcb93d65cb6d95c67..380624a920ff189a4494fb6b7038341dc0b10f15 100644 (file)
@@ -29,7 +29,7 @@ import javax.naming.NamingException;
 import org.mxchange.jcoreeelogger.beans.local.logger.Log;
 import org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal;
 import org.mxchange.jcountry.data.Country;
-import org.mxchange.jcountry.data.JobsCountrySingletonBeanRemote;
+import org.mxchange.jcountry.data.CountrySingletonBeanRemote;
 
 /**
  * Converter for country instance
@@ -42,7 +42,7 @@ public class JobsCountryConverter implements Converter {
        /**
         * Country bean
         */
-       private JobsCountrySingletonBeanRemote countryBean;
+       private CountrySingletonBeanRemote countryBean;
 
        /**
         * Logger instance
@@ -63,7 +63,7 @@ public class JobsCountryConverter implements Converter {
                        this.loggerBeanLocal = (LoggerBeanLocal) context.lookup("java:global/jcore-logger-ejb/logger!org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal"); //NOI18N
 
                        // ... and country bean
-                       this.countryBean = (JobsCountrySingletonBeanRemote) context.lookup("java:global/jjobs-ejb/country!org.mxchange.jcountry.data.JobsCountrySingletonBeanRemote"); //NOI18N
+                       this.countryBean = (CountrySingletonBeanRemote) context.lookup("java:global/jjobs-ejb/country!org.mxchange.jcountry.data.CountrySingletonBeanRemote"); //NOI18N
                } catch (final NamingException ex) {
                        // Continue to throw it
                        throw new RuntimeException(MessageFormat.format("context.lookup() failed: {0}", ex.getMessage()), ex); //NOI18N