From c63a39e24dfba53268522c7b845fdfaba102d181 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Tue, 5 Apr 2016 14:20:28 +0200 Subject: [PATCH] Continued a bit: - changed JNDI lookup to portable (long) version - renamed some interfaces to naming scheme - updated jar(s) --- lib/juser-lib.jar | Bin 5111 -> 5111 bytes ... => JobsAddressbookSessionBeanRemote.java} | 2 +- .../addressbook/AddressbookIdValidator.java | 10 +++++----- .../jjobs/validator/user/UserIdValidator.java | 2 +- ...> JobsSmsProviderSingletonBeanRemote.java} | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) rename src/org/mxchange/jjobs/model/addressbook/{AddressbookSessionBeanRemote.java => JobsAddressbookSessionBeanRemote.java} (97%) rename src/org/mxchange/jphone/phonenumbers/smsprovider/{AddressbookSmsProviderSingletonBeanRemote.java => JobsSmsProviderSingletonBeanRemote.java} (92%) diff --git a/lib/juser-lib.jar b/lib/juser-lib.jar index 89275c5218b48c3842588289e939ade13098c570..fdf6c73fa2eb69e4712ec404e9017de768b943d5 100644 GIT binary patch delta 238 zcmeya{#~6nz?+$ci-CcIf#F6`>qK4+=IcPpVm`BDcI(7j@?h$Z28f!h&S(UtV;C*K z^mIlykmAV?812BcB9kLnJeA27L~mZow1EjEu{na3ml@2+;9zG4OBHcHWM&51H#v;o z0<3o;zdcy*Wqy4y%_;z~!$H6a%x@L&0Mi!)!ocb^1^vKum0%!P{G6aKn3fZ&0E^EQ O$^+9}!W9tx!bJez<5I!^ delta 238 zcmeya{#~6nz?+$ci-CcIfnnpcmWjL?%o~7|#e6VzOCC)90Siu6XEXwFC&w^afa&Rs zZeaQWqaB!5WO4-4sZ6#Ydh=4I4NPE01S>Byn32K34q+5=KV)VG+BZ3jA7a)-etWRq z%l!IanpFTI?jYa<=C=xXfawbYVPINQ&<{*k2?m1cbArBLT280}OwSa`1Jhi>5Pqw0 F5da~0Tp|Df diff --git a/src/org/mxchange/jjobs/model/addressbook/AddressbookSessionBeanRemote.java b/src/org/mxchange/jjobs/model/addressbook/JobsAddressbookSessionBeanRemote.java similarity index 97% rename from src/org/mxchange/jjobs/model/addressbook/AddressbookSessionBeanRemote.java rename to src/org/mxchange/jjobs/model/addressbook/JobsAddressbookSessionBeanRemote.java index 1aa31b3..6cd5780 100644 --- a/src/org/mxchange/jjobs/model/addressbook/AddressbookSessionBeanRemote.java +++ b/src/org/mxchange/jjobs/model/addressbook/JobsAddressbookSessionBeanRemote.java @@ -30,7 +30,7 @@ import org.mxchange.jusercore.model.user.User; * @author Roland Haeder */ @Remote -public interface AddressbookSessionBeanRemote extends Serializable { +public interface JobsAddressbookSessionBeanRemote extends Serializable { /** * Some getter for an address book instance from given id number. If the diff --git a/src/org/mxchange/jjobs/validator/addressbook/AddressbookIdValidator.java b/src/org/mxchange/jjobs/validator/addressbook/AddressbookIdValidator.java index 2a08538..475986e 100644 --- a/src/org/mxchange/jjobs/validator/addressbook/AddressbookIdValidator.java +++ b/src/org/mxchange/jjobs/validator/addressbook/AddressbookIdValidator.java @@ -25,12 +25,12 @@ import javax.faces.validator.ValidatorException; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; -import org.mxchange.jjobs.exceptions.AddressbookNotFoundException; -import org.mxchange.jjobs.model.addressbook.Addressbook; -import org.mxchange.jjobs.model.addressbook.AddressbookSessionBeanRemote; import org.mxchange.jcoreee.validator.number.BaseLongValidator; import org.mxchange.jcoreeelogger.beans.local.logger.Log; import org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal; +import org.mxchange.jjobs.exceptions.AddressbookNotFoundException; +import org.mxchange.jjobs.model.addressbook.Addressbook; +import org.mxchange.jjobs.model.addressbook.JobsAddressbookSessionBeanRemote; /** * A validator for address book id verification @@ -48,7 +48,7 @@ public class AddressbookIdValidator extends BaseLongValidator { /** * Remote bean */ - private AddressbookSessionBeanRemote addressbookBean; + private JobsAddressbookSessionBeanRemote addressbookBean; /** * Logger instance @@ -69,7 +69,7 @@ public class AddressbookIdValidator extends BaseLongValidator { this.loggerBeanLocal = (LoggerBeanLocal) context.lookup("java:global/jcore-logger-ejb/logger!org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal"); //NOI18N // ... and user controller - this.addressbookBean = (AddressbookSessionBeanRemote) context.lookup("java:global/addressbook-ejb/addressbook!org.mxchange.addressbook.model.addressbook.AddressbookSessionBeanRemote"); //NOI18N + this.addressbookBean = (JobsAddressbookSessionBeanRemote) context.lookup("java:global/addressbook-ejb/addressbook!org.mxchange.addressbook.model.addressbook.JobsAddressbookSessionBeanRemote"); //NOI18N } catch (final NamingException ex) { // Continue to throw it throw new RuntimeException("context.lookup() failed.", ex); //NOI18N diff --git a/src/org/mxchange/jjobs/validator/user/UserIdValidator.java b/src/org/mxchange/jjobs/validator/user/UserIdValidator.java index 8d0a4db..f653b2a 100644 --- a/src/org/mxchange/jjobs/validator/user/UserIdValidator.java +++ b/src/org/mxchange/jjobs/validator/user/UserIdValidator.java @@ -78,7 +78,7 @@ public class UserIdValidator extends BaseLongValidator implements Validator { this.loggerBeanLocal = (LoggerBeanLocal) context.lookup("java:global/jcore-logger-ejb/logger!org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal"); //NOI18N // ... and user controller - this.userBean = (UserSessionBeanRemote) context.lookup("java:global/juser-ejb/user!org.mxchange.jusercore.model.user.UserSessionBeanRemote"); //NOI18N + this.userBean = (UserSessionBeanRemote) context.lookup("java:global/jjobs-ejb/user!org.mxchange.jusercore.model.user.UserSessionBeanRemote"); //NOI18N } catch (final NamingException ex) { // Continue to throw it throw new RuntimeException("context.lookup() failed.", ex); //NOI18N diff --git a/src/org/mxchange/jphone/phonenumbers/smsprovider/AddressbookSmsProviderSingletonBeanRemote.java b/src/org/mxchange/jphone/phonenumbers/smsprovider/JobsSmsProviderSingletonBeanRemote.java similarity index 92% rename from src/org/mxchange/jphone/phonenumbers/smsprovider/AddressbookSmsProviderSingletonBeanRemote.java rename to src/org/mxchange/jphone/phonenumbers/smsprovider/JobsSmsProviderSingletonBeanRemote.java index b804700..4659a0b 100644 --- a/src/org/mxchange/jphone/phonenumbers/smsprovider/AddressbookSmsProviderSingletonBeanRemote.java +++ b/src/org/mxchange/jphone/phonenumbers/smsprovider/JobsSmsProviderSingletonBeanRemote.java @@ -26,7 +26,7 @@ import javax.ejb.Remote; * @author Roland Haeder */ @Remote -public interface AddressbookSmsProviderSingletonBeanRemote extends Serializable { +public interface JobsSmsProviderSingletonBeanRemote extends Serializable { /** * All registered SMS providers -- 2.39.5