解决方案 »

  1.   

    我只调成功了本地的,remote的也是一直不行。wildfly默认只有两个端口,8080和9090,,9090是管理端口,8080是其他协议的接口,所以至少4447是不对的。
      

  2.   

    端口用8080Here we are listing 2 connections named "one" and "two". Ultimately, each of the connections will map to a EJB receiver. So if you have 2 connections, that will setup 2 EJB receivers that will be added to the EJB client context. Each of these connections will be configured with the connection specific properties as follows:remote.connection.default.host=10.20.30.40
    remote.connection.default.port = 8080
    remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false
    As you can see we are using the "remote.connection.<connection-name>." prefix for specifying the connection specific property. The connection name here is "default" and we are setting the "host" property of that connection to point to 10.20.30.40. Similarly we set the "port" for that connection to 4447.
      

  3.   

    WildFly借助HTTP Upgrade将多种协议复用到HTTP协议上,来减少端口的数量。. 8080 HTTP (Servlet, JAX-RS, JAX-WS), Web Sockets, HTTP Upgraded Remoting  (EJB Invocation, Remote JNDI) application
      

  4.   

    增加配置项
    "jboss.naming.client.ejb.context", true