Examples of IiopService


Examples of com.sun.enterprise.config.serverbeans.IiopService

      Server server =
    ServerHelper.getServerByName(configCtx, serverRefs[i].getRef());
      String configRef = server.getConfigRef();
      Config config =
    ConfigAPIHelper.getConfigByName(configCtx, configRef);
      IiopService iiopService = config.getIiopService();
      listeners[i] = iiopService.getIiopListener();
  }
  return listeners;
    }
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.IiopService

                ConfigContext context = ConfigFactory.
                        createConfigContext(backURL);

                Config rootElement = ServerBeansFactory.getConfigBean(context);

                IiopService iiopService = rootElement.getIiopService();
                IiopListener[] iiopListeners = iiopService.getIiopListener();
                for (int j = 0 ; j < iiopListeners.length ; j++) {
                    String aPort = iiopListeners[j].getPort();
                    aPort = aPort.trim();
                    sLogger.log(Level.FINE, "port = " + aPort);
                    if (aPort.equals(portString)) {
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.IiopService

    public IIOPSSLSocketFactory() {
        try {
            if (Switch.getSwitch().getContainerType() == Switch.EJBWEB_CONTAINER) {
                ConfigContext configContext =
                    ApplicationServer.getServerContext().getConfigContext();
                IiopService iiopBean = ServerBeansFactory.getIiopServiceBean(configContext);

                IiopListener[] iiopListeners = iiopBean.getIiopListener();
                int listenersLength = (iiopListeners != null) ? iiopListeners.length : 0;
                for (int i = 0; i < listenersLength; i++) {
                    Ssl ssl = iiopListeners[i].getSsl();
                    SSLInfo sslInfo = null;
                    if (iiopListeners[i].isSecurityEnabled()) {
                        if (ssl != null) {
                            sslInfo = init(ssl.getCertNickname(),
                                ssl.isSsl2Enabled(), ssl.getSsl2Ciphers(),
                                ssl.isSsl3Enabled(), ssl.getSsl3TlsCiphers(),
                                ssl.isTlsEnabled());
                        } else {
                            sslInfo = getDefaultSslInfo();
                        }
                        portToSSLInfo.put(
                            new Integer(iiopListeners[i].getPort()), sslInfo);
                    }
                }

                if (iiopBean.getSslClientConfig() != null &&
                        iiopBean.getSslClientConfig().isEnabled()) {
                    Ssl outboundSsl = iiopBean.getSslClientConfig().getSsl();
                    if (outboundSsl != null) {
                        clientSslInfo = init(outboundSsl.getCertNickname(),
                            outboundSsl.isSsl2Enabled(),
                            outboundSsl.getSsl2Ciphers(),
                            outboundSsl.isSsl3Enabled(),
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.IiopService

            startService(httpListeners[i], false, backlog);
      logFine("Started ASSocketService for HTTP(S) ");
  }

  // Start IIOP listener ports
  IiopService iiopService = conf.getIiopService();
  IiopListener[] iiopListeners = iiopService.getIiopListener();
  for ( int i=0; i<iiopListeners.length; i++ ) {
      if ( !iiopListeners[i].isEnabled() )
    continue;
            startService(iiopListeners[i]);
      logFine("Started ASSocketService for IIOP(S)");
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.IiopService

                //checkDuplicate("acl",httpservice.getAcl(), "name");
                checkDuplicate("http-listener",httpservice.getHttpListener(), "id");
                //checkDuplicate("mime",httpservice.getMime(), "name");
                checkDuplicate("virtual-server", httpservice.getVirtualServer(), "id");
               
                IiopService iiopservice = config[i].getIiopService();
                checkDuplicate("iiop-listener",iiopservice.getIiopListener(), "id");
                AdminService adminservice = config[i].getAdminService();
                checkDuplicate("jmx-connector",adminservice.getJmxConnector(), "name");
               
                JmsService jmsservice = config[i].getJmsService();
                checkDuplicate("jms-host",jmsservice.getJmsHost(), "name");
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.IiopService

        check1ToN(target);
        ObjectName targetON = getSslTargetObjectName(target, id, type);
        if ("iiop-service".equals(type))
        {
            Config config = getConfigBeanForTarget(target);
            IiopService iiopService = config.getIiopService();
            SslClientConfig sslCfg = new SslClientConfig();
            sslCfg.setXPath(sslCfg.getAbsoluteXPath(iiopService.getXPath()));
            ManagedConfigBean mb = new ManagedConfigBean(
                    (ConfigBean)sslCfg, m_registry, getDomainName());
            mb.createChildByType("ssl", al, null, true);
            iiopService.setSslClientConfig(sslCfg);
            return (ObjectName)ConfigMBeanHelper.getConfigBeanObjectName(
                    m_registry,
                    getDomainName(), sslCfg.getSsl());
        }
        checkElementDoesnotExist(targetON, "getSsl",
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.IiopService

            listener.setAddress(address);
        if(port!=null)
            listener.setPort(port.toString());
        if(enabled!=null)
            listener.setEnabled(enabled.booleanValue());
        IiopService service = (IiopService)getConfigBeanByXPath( ServerXPathHelper.getIIOPServiceXpath() );
        service.addIiopListener(listener);
       
        getConfigContext().flush();
    }
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.IiopService

    This operation deletes OrbListener according to id if it connected to current ORB.
    @throws ConfigException in case of failure.
     */
    public void deleteORBListener(String id) throws ConfigException
    {
        IiopService  service  = (IiopService)getConfigBeanByXPath( ServerXPathHelper.getIIOPServiceXpath() );
        IiopListener listener = service.getIiopListenerById(id);
        if(listener!=null)
            service.removeIiopListener(listener);
        getConfigContext().flush();
    }
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.IiopService

    /**
    This operation returns list of OrbListener's ids  connected to current ORB.
     */
    public String[] listORBListeners() throws ConfigException
    {
        IiopService    service    = (IiopService)getConfigBeanByXPath( ServerXPathHelper.getIIOPServiceXpath()  );
        IiopListener[] listeners  = service.getIiopListener();
        String[]       res        = new String[listeners.length];
        for(int i=0; i<listeners.length; i++)
        {
            res[i] = listeners[i].getId();
        }
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.IiopService

    /**
    This operation checks Ssl existance in current element;
     */
    public boolean isSslCreated() throws ConfigException
    {
        IiopService service = (IiopService)this.getBaseConfigBean();
        SslClientConfig config  = service.getSslClientConfig();
        if(config==null)
            return false;
        return (config.getSsl()!=null);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.