Search in sources :

Example 11 with IiopService

use of org.glassfish.orb.admin.config.IiopService in project Payara by payara.

the class DeleteIiopListenerTest method setUp.

@Before
public void setUp() {
    services = getHabitat();
    iiopService = services.getService(IiopService.class);
    parameters = new ParameterMap();
    cr = services.getService(CommandRunner.class);
    context = new AdminCommandContextImpl(LogDomains.getLogger(DeleteIiopListenerTest.class, LogDomains.ADMIN_LOGGER), new PropsFileActionReporter());
}
Also used : AdminCommandContextImpl(org.glassfish.api.admin.AdminCommandContextImpl) IiopService(org.glassfish.orb.admin.config.IiopService) ParameterMap(org.glassfish.api.admin.ParameterMap) PropsFileActionReporter(com.sun.enterprise.v3.common.PropsFileActionReporter) CommandRunner(org.glassfish.api.admin.CommandRunner) Before(org.junit.Before)

Example 12 with IiopService

use of org.glassfish.orb.admin.config.IiopService in project Payara by payara.

the class ListIiopListenersTest method setUp.

@Before
public void setUp() {
    services = getHabitat();
    IiopService iiopService = services.getService(IiopService.class);
    parameters = new ParameterMap();
    cr = services.getService(CommandRunner.class);
    context = new AdminCommandContextImpl(LogDomains.getLogger(ListIiopListenersTest.class, LogDomains.ADMIN_LOGGER), new PropsFileActionReporter());
    List<IiopListener> listenerList = iiopService.getIiopListener();
    origNum = listenerList.size();
}
Also used : IiopListener(org.glassfish.orb.admin.config.IiopListener) AdminCommandContextImpl(org.glassfish.api.admin.AdminCommandContextImpl) IiopService(org.glassfish.orb.admin.config.IiopService) ParameterMap(org.glassfish.api.admin.ParameterMap) PropsFileActionReporter(com.sun.enterprise.v3.common.PropsFileActionReporter) CommandRunner(org.glassfish.api.admin.CommandRunner) Before(org.junit.Before)

Example 13 with IiopService

use of org.glassfish.orb.admin.config.IiopService in project Payara by payara.

the class ORBConnectorStartup method initializeLazyListener.

/**
 * Start Grizzly based ORB lazy listener, which is going to initialize
 * ORB container on first request.
 */
private void initializeLazyListener() {
    final IiopService iiopService = config.getExtensionByType(IiopService.class);
    if (iiopService != null) {
        List<IiopListener> iiopListenerList = iiopService.getIiopListener();
        for (IiopListener oneListener : iiopListenerList) {
            if (Boolean.valueOf(oneListener.getEnabled()) && Boolean.valueOf(oneListener.getLazyInit())) {
                NetworkListener dummy = new DummyNetworkListener();
                dummy.setPort(oneListener.getPort());
                dummy.setAddress(oneListener.getAddress());
                dummy.setProtocol("light-weight-listener");
                dummy.setTransport("tcp");
                dummy.setName("iiop-service");
                grizzlyService.createNetworkProxy(dummy);
            }
        }
    }
}
Also used : IiopListener(org.glassfish.orb.admin.config.IiopListener) DummyNetworkListener(com.sun.enterprise.v3.services.impl.DummyNetworkListener) IiopService(org.glassfish.orb.admin.config.IiopService) DummyNetworkListener(com.sun.enterprise.v3.services.impl.DummyNetworkListener) NetworkListener(org.glassfish.grizzly.config.dom.NetworkListener)

Example 14 with IiopService

use of org.glassfish.orb.admin.config.IiopService in project Payara by payara.

the class JWSAdapterManager method postConstruct.

@Override
public synchronized void postConstruct() {
    installRootURI = serverContext.getInstallRoot().toURI();
    logger = Logger.getLogger(JavaWebStartInfo.APPCLIENT_SERVER_MAIN_LOGGER, JavaWebStartInfo.APPCLIENT_SERVER_LOGMESSAGE_RESOURCE);
    iiopService = config.getExtensionByType(IiopService.class);
    umbrellaRoot = new File(installRootURI).getParentFile();
    umbrellaRootURI = umbrellaRoot.toURI();
    systemLevelSignedJARsRoot = new File(serverEnv.getDomainRoot(), JWS_SIGNED_SYSTEM_JARS_ROOT);
    domainLevelSignedJARsRoot = new File(serverEnv.getDomainRoot(), JWS_SIGNED_DOMAIN_JARS_ROOT);
}
Also used : IiopService(org.glassfish.orb.admin.config.IiopService) JarFile(java.util.jar.JarFile) File(java.io.File)

Aggregations

IiopService (org.glassfish.orb.admin.config.IiopService)14 IiopListener (org.glassfish.orb.admin.config.IiopListener)9 PropertyVetoException (java.beans.PropertyVetoException)6 TransactionFailure (org.jvnet.hk2.config.TransactionFailure)6 Config (com.sun.enterprise.config.serverbeans.Config)4 ParameterMap (org.glassfish.api.admin.ParameterMap)4 PropsFileActionReporter (com.sun.enterprise.v3.common.PropsFileActionReporter)3 ActionReport (org.glassfish.api.ActionReport)3 AdminCommandContextImpl (org.glassfish.api.admin.AdminCommandContextImpl)3 CommandRunner (org.glassfish.api.admin.CommandRunner)3 CommandTarget (org.glassfish.config.support.CommandTarget)3 Target (org.glassfish.internal.api.Target)3 Before (org.junit.Before)3 CreateSsl (com.sun.enterprise.admin.commands.CreateSsl)2 DeleteSsl (com.sun.enterprise.admin.commands.DeleteSsl)2 List (java.util.List)2 NetworkListener (org.glassfish.grizzly.config.dom.NetworkListener)2 Ssl (org.glassfish.grizzly.config.dom.Ssl)2 ClusterInstanceInfo (com.sun.corba.ee.spi.folb.ClusterInstanceInfo)1 SocketInfo (com.sun.corba.ee.spi.folb.SocketInfo)1