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
/**
* Remote country EJB
*/
- private JobsCountrySingletonBeanRemote countryBean;
+ private CountrySingletonBeanRemote countryBean;
/**
* List of all countries
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);
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
/**
* Country bean
*/
- private JobsCountrySingletonBeanRemote countryBean;
+ private CountrySingletonBeanRemote countryBean;
/**
* Logger instance
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