@Override public ViewConfiguration createViewConfiguration(final Class<?> viewClass, final ComponentConfiguration componentConfiguration, final ProxyFactory<?> proxyFactory) { return new EJBViewConfiguration(viewClass, componentConfiguration, getServiceName(), proxyFactory, getMethodIntf()); }
remoteFactory = new RemoteViewManagedReferenceFactory(earApplicationName, moduleDescription.getModuleName(), moduleDescription.getDistinctName(), componentDescription.getComponentName(), description.getViewClassName(), componentDescription.isStateful(), viewClassLoader, appclient); final ServiceName serviceName = description.getServiceName(); resolvedViewName = serviceName;
this.ejbHome = home == null ? null : home.getServiceName(); final EJBViewDescription ejbObject = ejbComponentDescription.getEjbRemoteView(); this.ejbObject = ejbObject == null ? null : ejbObject.getServiceName(); final EJBViewDescription ejbLocalObject = ejbComponentDescription.getEjbLocalView(); this.ejbLocalObject = ejbLocalObject == null ? null : ejbLocalObject.getServiceName(); this.applicationName = componentConfiguration.getApplicationName(); this.earApplicationName = componentConfiguration.getComponentDescription().getModuleDescription().getEarApplicationName();
final ServiceBuilder<EjbIIOPService> builder = serviceTarget.addService(componentDescription.getServiceName().append(EjbIIOPService.SERVICE_NAME), service); builder.addDependency(componentDescription.getCreateServiceName(), EJBComponent.class, service.getEjbComponentInjectedValue()); builder.addDependency(homeView.getServiceName(), ComponentView.class, service.getHomeView()); builder.addDependency(remoteView.getServiceName(), ComponentView.class, service.getRemoteView()); builder.addDependency(CorbaORBService.SERVICE_NAME, ORB.class, service.getOrb()); builder.addDependency(POARegistry.SERVICE_NAME, POARegistry.class, service.getPoaRegistry());
@Override public void configureDependency(final ServiceBuilder<?> serviceBuilder, final ViewService service) throws DeploymentUnitProcessingException { serviceBuilder.addDependency(createdView.getServiceName(), ComponentView.class, factory.getViewToCreate()); } });
@Override public void configureDependency(final ServiceBuilder<?> serviceBuilder, final ViewService service) throws DeploymentUnitProcessingException { serviceBuilder.addDependency(createdView.getServiceName(), ComponentView.class, interceptorFactory.getViewToCreate()); } });
@Override public ViewConfiguration createViewConfiguration(final Class<?> viewClass, final ComponentConfiguration componentConfiguration, final ProxyFactory<?> proxyFactory) { return new EJBViewConfiguration(viewClass, componentConfiguration, getServiceName(), proxyFactory, getMethodIntf()); }
ejbLocalObjectView = local == null ? null : local.getServiceName(); final EJBViewDescription remote = sessionBeanComponentDescription.getEjbRemoteView(); ejbObjectview = remote == null ? null : remote.getServiceName(); this.clustering = sessionBeanComponentDescription.getClustering();
private static EJBEndpoint newEjbEndpoint(final PortComponentMetaData portComponentMD, final EEModuleDescription moduleDescription, final Set<String> securityRoles) { final String ejbName = portComponentMD.getEjbLink(); final SessionBeanComponentDescription sessionBean = (SessionBeanComponentDescription)moduleDescription.getComponentByName(ejbName); final String seiIfaceClassName = portComponentMD.getServiceEndpointInterface(); final EJBViewDescription ejbViewDescription = sessionBean.addWebserviceEndpointView(seiIfaceClassName); // JSR 109 - Version 1.3 - 6.2.2.4 Security // For EJB based service implementations, Handlers run after method level authorization has occurred. // JSR 109 - Version 1.3 - 6.2.2.5 Transaction // Handlers run under the transaction context of the component they are associated with. sessionBean.getConfigurators().addLast(new JAXRPCHandlersConfigurator()); final ServiceName ejbViewName = ejbViewDescription.getServiceName(); return new EJBEndpoint(sessionBean, ejbViewName, securityRoles, null, false, null); }
remoteFactory = new RemoteViewManagedReferenceFactory(earApplicationName, moduleDescription.getModuleName(), moduleDescription.getDistinctName(), componentDescription.getComponentName(), description.getViewClassName(), componentDescription.isStateful(),viewClassLoader); final ServiceName serviceName = description.getServiceName(); resolvedViewName = serviceName;
this.ejbHome = home == null ? null : home.getServiceName(); final EJBViewDescription ejbObject = ejbComponentDescription.getEjbRemoteView(); this.ejbObject = ejbObject == null ? null : ejbObject.getServiceName(); final EJBViewDescription ejbLocalObject = ejbComponentDescription.getEjbLocalView(); this.ejbLocalObject = ejbLocalObject == null ? null : ejbLocalObject.getServiceName(); this.applicationName = componentConfiguration.getApplicationName(); this.earApplicationName = componentConfiguration.getComponentDescription().getModuleDescription().getEarApplicationName();
final ServiceBuilder<EjbIIOPService> builder = serviceTarget.addService(componentDescription.getServiceName().append(EjbIIOPService.SERVICE_NAME), service); builder.addDependency(componentDescription.getCreateServiceName(), EJBComponent.class, service.getEjbComponentInjectedValue()); builder.addDependency(homeView.getServiceName(), ComponentView.class, service.getHomeView()); builder.addDependency(remoteView.getServiceName(), ComponentView.class, service.getRemoteView()); builder.addDependency(CorbaORBService.SERVICE_NAME, ORB.class, service.getOrb()); builder.addDependency(POARegistry.SERVICE_NAME, POARegistry.class, service.getPoaRegistry());
if (sessionBean.isStateless() || sessionBean.isSingleton()) { final EJBViewDescription ejbViewDescription = sessionBean.addWebserviceEndpointView(); final ServiceName ejbViewName = ejbViewDescription.getServiceName(); jaxwsDeployment.addEndpoint(new EJBEndpoint(sessionBean, ejbViewName, securityRoles, authMethod, realmName, isSecureWsdlAccess, transportGuarantee));
if (sessionBean.isStateless() || sessionBean.isSingleton()) { final EJBViewDescription ejbViewDescription = sessionBean.addWebserviceEndpointView(); final ServiceName ejbViewName = ejbViewDescription.getServiceName(); jaxwsDeployment.addEndpoint(new EJBEndpoint(sessionBean, ejbViewName, securityRoles, authMethod, realmName, isSecureWsdlAccess, transportGuarantee));
private static void processAnnotation(final DeploymentUnit unit, final DotName annotation) { final List<AnnotationInstance> webServiceAnnotations = getAnnotations(unit, annotation); final EEModuleDescription moduleDescription = getRequiredAttachment(unit, EE_MODULE_DESCRIPTION); final JAXWSDeployment jaxwsDeployment = getJaxwsDeployment(unit); for (final AnnotationInstance webServiceAnnotation : webServiceAnnotations) { final AnnotationTarget target = webServiceAnnotation.target(); final ClassInfo webServiceClassInfo = (ClassInfo) target; final String webServiceClassName = webServiceClassInfo.name().toString(); final List<ComponentDescription> componentDescriptions = moduleDescription.getComponentsByClassName(webServiceClassName); final List<SessionBeanComponentDescription> sessionBeans = getSessionBeans(componentDescriptions); final Set<String> securityRoles = getDeclaredSecurityRoles(unit, webServiceClassInfo); // TODO: assembly processed for each endpoint! final WebContextAnnotationWrapper webCtx = getWebContextWrapper(webServiceClassInfo); final String authMethod = webCtx.getAuthMethod(); final boolean isSecureWsdlAccess = webCtx.isSecureWsdlAccess(); final String transportGuarantee = webCtx.getTransportGuarantee(); for (final SessionBeanComponentDescription sessionBean : sessionBeans) { if (sessionBean.isStateless() || sessionBean.isSingleton()) { final EJBViewDescription ejbViewDescription = sessionBean.addWebserviceEndpointView(); final ServiceName ejbViewName = ejbViewDescription.getServiceName(); jaxwsDeployment.addEndpoint(new EJBEndpoint(sessionBean, ejbViewName, securityRoles, authMethod, isSecureWsdlAccess, transportGuarantee)); } } } }