static void buildEjbWebServiceEndpointInfos ( EndpointInfoBuilder endpointInfoBuilder , EndpointInfoBuilderContext ctx , JaxWsServerMetaData jaxWsServerMetaData , List < EJBEndpoint > ejbEndpoints , JaxWsModuleInfo jaxWsModuleInfo ) throws UnableToAdaptException { Set < String > presentedServices = jaxWsModuleInfo . getEndpointImplBeanClassNames ( ) ; for ( EJBEndpoint ejbEndpoint : ejbEndpoints ) { if ( ! ejbEndpoint . isWebService ( ) ) { continue ; } if ( presentedServices . contains ( ejbEndpoint . getClassName ( ) ) ) { continue ; } String ejbName = ejbEndpoint . getJ2EEName ( ) . getComponent ( ) ; ctx . addContextEnv ( JaxWsConstants . ENV_ATTRIBUTE_ENDPOINT_BEAN_NAME , ejbName ) ; EndpointInfo endpointInfo = endpointInfoBuilder . build ( ctx , ejbEndpoint . getClassName ( ) , EndpointType . EJB ) ; if ( endpointInfo != null ) { jaxWsModuleInfo . addEndpointInfo ( ejbEndpoint . getName ( ) , endpointInfo ) ; jaxWsServerMetaData . putEndpointNameAndJ2EENameEntry ( ejbName , ejbEndpoint . getJ2EEName ( ) ) ; } } }
build Web Service endpoint infos