From: Roland Haeder Date: Mon, 11 Apr 2016 15:07:57 +0000 (+0200) Subject: Used generic interface, not no longer existing own. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b989b49c06fef5d68554c867ae50f5b3bbaaf79b;p=jjobs-war.git Used generic interface, not no longer existing own. --- diff --git a/src/java/org/mxchange/jjobs/beans/country/JobsCountryWebApplicationBean.java b/src/java/org/mxchange/jjobs/beans/country/JobsCountryWebApplicationBean.java index 355d491a..a39e2251 100644 --- a/src/java/org/mxchange/jjobs/beans/country/JobsCountryWebApplicationBean.java +++ b/src/java/org/mxchange/jjobs/beans/country/JobsCountryWebApplicationBean.java @@ -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); diff --git a/src/java/org/mxchange/jjobs/converter/country/JobsCountryConverter.java b/src/java/org/mxchange/jjobs/converter/country/JobsCountryConverter.java index 03c59780..380624a9 100644 --- a/src/java/org/mxchange/jjobs/converter/country/JobsCountryConverter.java +++ b/src/java/org/mxchange/jjobs/converter/country/JobsCountryConverter.java @@ -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