private void populateSSLElement(Config config) { IiopService iiopService = config.getIiopService(); for (IiopListener listener : iiopService.getIiopListener()) { Ssl sslElement = listener.getSsl(); if (sslElement != null) { try { ConfigSupport.apply(new SingleConfigCode<Ssl>() { public Object run(Ssl ssl) throws PropertyVetoException, TransactionFailure { ssl.setClassname(GF_SSL_IMPL_NAME); return null; } }, sslElement); } catch (TransactionFailure tf) { _logger.log(Level.SEVERE, "security_upgrade_service_exception", tf); throw new RuntimeException(tf); } } } }
final ActionReport report = context.getActionReport(); IiopService iiopService = config.getIiopService();
/** * Executes the command * * @param context information */ @Override public void execute(AdminCommandContext context) { final ActionReport report = context.getActionReport(); final Target targetUtil = habitat.getComponent(Target.class ) ; final Config config = targetUtil.getConfig(target) ; final IiopService iiopService = config.getIiopService(); try { List<IiopListener> listenerList = iiopService.getIiopListener(); for (IiopListener listener : listenerList) { final ActionReport.MessagePart part = report.getTopMessagePart() .addChild(); part.setMessage(listener.getId()); } report.setActionExitCode(ActionReport.ExitCode.SUCCESS); } catch (Exception e) { report.setMessage(localStrings.getLocalString("list.iiop.listener" + ".fail", "List IIOP listeners failed.")); report.setActionExitCode(ActionReport.ExitCode.FAILURE); report.setFailureCause(e); } } }
final Config config = targetUtil.getConfig(target) ; ActionReport report = context.getActionReport(); IiopService iiopService = config.getIiopService();
IiopService iiopSvc = cfg.getIiopService(); if (iiopSvc != null) { List<IiopListener> iiopListeners = iiopSvc.getIiopListener();