//if (Switch.getSwitch().getContainerType() == Switch.EJBWEB_CONTAINER) {
if((processType != null) && (processType.isServer())) {
//this is the EJB container
Config conf = Globals.getDefaultHabitat().getService(Config.class,
ServerEnvironment.DEFAULT_INSTANCE_NAME);
IiopService iiopBean =conf.getExtensionByType(IiopService.class);
List<IiopListener> iiopListeners = iiopBean.getIiopListener();
for (IiopListener listener : iiopListeners) {
Ssl ssl = listener.getSsl();
SSLInfo sslInfo = null;
boolean securityEnabled = Boolean.valueOf(listener.getSecurityEnabled());
if (securityEnabled) {
if (ssl != null) {
boolean ssl2Enabled = Boolean.valueOf(ssl.getSsl2Enabled());
boolean tlsEnabled = Boolean.valueOf(ssl.getTlsEnabled());
boolean ssl3Enabled = Boolean.valueOf(ssl.getSsl3Enabled());
sslInfo = init(ssl.getCertNickname(),
ssl2Enabled, ssl.getSsl2Ciphers(),
ssl3Enabled, ssl.getSsl3TlsCiphers(),
tlsEnabled);
} else {
sslInfo = getDefaultSslInfo();
}
portToSSLInfo.put(
new Integer(listener.getPort()), sslInfo);
}
}
if (iiopBean.getSslClientConfig() != null &&
/*iiopBean.getSslClientConfig().isEnabled()*/
iiopBean.getSslClientConfig().getSsl() != null) {
Ssl outboundSsl = iiopBean.getSslClientConfig().getSsl();
if (outboundSsl != null) {
boolean ssl2Enabled = Boolean.valueOf(outboundSsl.getSsl2Enabled());
boolean ssl3Enabled = Boolean.valueOf(outboundSsl.getSsl3Enabled());
boolean tlsEnabled = Boolean.valueOf(outboundSsl.getTlsEnabled());
clientSslInfo = init(outboundSsl.getCertNickname(),