При запуске приложения из клиента выдается следующее исключение: EJBCLIENT000409: больше мест назначения нет - PullRequest
0 голосов
/ 26 апреля 2019

У меня есть приложение java 8 с WildFly12.

Запускаем приложение через java web start.До WildFly 12 мы использовали WildFly 8 и все работало.

Теперь, когда я запускаю приложение из CLient, я получаю следующее исключение:

createMtzWebConnectionorg.jboss.ejb.client.RequestSendFailedException: EJBCLIENT000409: не болеепункты назначения доступны

Я создаю свой начальный контекст следующим образом:

      clientProperties.put( "org.jboss.ejb.client.scoped.context", true );
                clientProperties.put( "remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED", m_blUseSSL );
                clientProperties.put( "remote.connections", "default" );
                clientProperties.put( "remote.connection.default.connect.options.org.xnio.Options.SSL_STARTTLS", m_blUseSSL );
                clientProperties.put( "remote.connection.default.host", m_strAppServerHostname );
                clientProperties.put( "remote.connection.default.port", Integer.toString( m_iAppServerPort ) ); // Port number must be passed as string
                clientProperties.put( "remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS", false );
                clientProperties.put( "remote.connection.default.username", getAppServerUserName() );
                clientProperties.put( "remote.connection.default.password", getAppServerPassword() );
                clientProperties.put(Context.INITIAL_CONTEXT_FACTORY, "org.wildfly.naming.client.WildFlyInitialContextFactory");  
                clientProperties.put(Context.PROVIDER_URL, "http-remoting://"+getAppServerHostname()+":"+getAppServerPort());

Когда я запускаю приложение с помощью javaWebStart на сервере, все работает нормально, но запуск с другого клиента не работает.

Моя подсистема ejb standalone.xml:

    <subsystem xmlns="urn:jboss:domain:ejb3:5.0">
        <session-bean>
            <stateful default-access-timeout="5000" cache-ref="simple" passivation-disabled-cache-ref="simple"/>
            <singleton default-access-timeout="5000"/>
        </session-bean>
        <mdb>
            <resource-adapter-ref resource-adapter-name="${ejb.resource-adapter-name:activemq-ra.rar}"/>
            <bean-instance-pool-ref pool-name="mdb-strict-max-pool"/>
        </mdb>
        <pools>
            <bean-instance-pools>
                <strict-max-pool name="slsb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
                <strict-max-pool name="mdb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
                <strict-max-pool name="slsb-singelton-pool" max-pool-size="1" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
            </bean-instance-pools>
        </pools>
        <caches>
            <cache name="simple"/>
            <cache name="distributable" passivation-store-ref="infinispan" aliases="passivating clustered"/>
        </caches>
        <passivation-stores>
            <passivation-store name="infinispan" cache-container="ejb" max-size="10000"/>
        </passivation-stores>
        <async thread-pool-name="default"/>
        <timer-service thread-pool-name="default" default-data-store="default-file-store">
            <data-stores>
                <file-data-store name="default-file-store" path="timer-service-data" relative-to="jboss.server.data.dir"/>
            </data-stores>
        </timer-service>
        <remote connector-ref="http-remoting-connector" thread-pool-name="default"/>
        <thread-pools>
            <thread-pool name="default">
                <max-threads count="40"/>
                <keepalive-time time="100" unit="milliseconds"/>
            </thread-pool>
        </thread-pools>
        <default-security-domain value="other"/>
        <default-missing-method-permissions-deny-access value="true"/>
        <log-system-exceptions value="true"/>
    </subsystem>
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...