private void checkDescriptorConfiguration(final EJBClientDescriptorMetaData ejbClientDescriptorMetaData) throws DeploymentUnitProcessingException { final boolean profileDefined = ejbClientDescriptorMetaData.getProfile() != null; final boolean receiversDefined = (!ejbClientDescriptorMetaData.getRemotingReceiverConfigurations().isEmpty()) || (ejbClientDescriptorMetaData.isLocalReceiverExcluded() != null) || (ejbClientDescriptorMetaData.isLocalReceiverPassByValue() != null); if (profileDefined && receiversDefined) { throw EjbLogger.ROOT_LOGGER.profileAndRemotingEjbReceiversUsedTogether(); } }
.getAttachment(Attachments.EJB_CLIENT_METADATA); final boolean useLocalReceiver = ejbClientDescriptorMetaData == null || ejbClientDescriptorMetaData.isLocalReceiverExcluded() != Boolean.TRUE; if (useLocalReceiver && ! appClient) { builder.addDependency(AssociationService.SERVICE_NAME, AssociationService.class, new Injector<AssociationService>() {
final ServiceBuilder<RemotingProfileService> profileServiceBuilder = serviceTarget.addService(profileServiceName, profileService); if (ejbClientDescriptorMetaData.isLocalReceiverExcluded() != Boolean.TRUE) { final Boolean passByValue = ejbClientDescriptorMetaData.isLocalReceiverPassByValue(); profileServiceBuilder.addDependency(passByValue == Boolean.FALSE ? LocalTransportProvider.BY_REFERENCE_SERVICE_NAME : LocalTransportProvider.BY_VALUE_SERVICE_NAME, EJBTransportProvider.class, profileService.getLocalTransportProviderInjector());
if (!ejbClientDescriptorMetaData.isLocalReceiverExcluded()) { final Boolean passByValue = ejbClientDescriptorMetaData.isLocalReceiverPassByValue(); if (passByValue != null) {