从客户端启动应用程序会出现以下异常:EJBCLIENT000409:没有更多可用的目标

时间:2019-04-26 07:20:22

标签: java-8 java-web-start java-ee-7 wildfly-12

我有一个带有WildFly12的Java 8应用程序。

我们通过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启动应用程序时,一切正常,但无法从其他客户端启动。

我的standalone.xml ejb子系统:

    <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>

0 个答案:

没有答案