Esempio n. 1
0
 @Override
 public void stop(final StopContext context) {
   ROOT_LOGGER.stopping(name);
   endpoint.setSecurityDomainContext(null);
   if (hasWebservicesMD(endpoint)) {
     pclWebAppControllerValue.getValue().decrementUsers();
   }
   endpointRegistryValue.getValue().unregister(endpoint);
   final List<RecordProcessor> processors = endpoint.getRecordProcessors();
   for (final RecordProcessor processor : processors) {
     unregisterRecordProcessor(processor, endpoint);
   }
 }
Esempio n. 2
0
 @Override
 public void start(final StartContext context) throws StartException {
   ROOT_LOGGER.starting(name);
   endpoint.setSecurityDomainContext(
       new SecurityDomainContextAdaptor(securityDomainContextValue.getValue()));
   if (hasWebservicesMD(
       endpoint)) { // basically JAX-RPC deployments require the PortComponentLinkServlet to be
                    // available
     pclWebAppControllerValue.getValue().incrementUsers();
   }
   final List<RecordProcessor> processors = endpoint.getRecordProcessors();
   for (final RecordProcessor processor : processors) {
     registerRecordProcessor(processor, endpoint);
   }
   endpointRegistryValue.getValue().register(endpoint);
 }