0
我正在嘗試使用jboss-remoting將一個EJB調用到只能通過HTTP代理訪問的Wildfly 8.2.1服務器。使用HTTP代理的JBoss EJB客戶端
它無法像:
Feb 23, 2016 2:50:34 PM org.jboss.ejb.client.EJBClient <clinit>
INFO: JBoss EJB Client version 2.0.1.Final
Feb 23, 2016 2:50:34 PM org.xnio.Xnio <clinit>
INFO: XNIO version 3.3.0.Final
Feb 23, 2016 2:50:34 PM org.xnio.nio.NioXnio <clinit>
INFO: XNIO NIO Implementation Version 3.3.0.Final
Feb 23, 2016 2:50:34 PM org.jboss.remoting3.EndpointImpl <clinit>
INFO: JBoss Remoting version 4.0.7.Final
Feb 23, 2016 2:50:40 PM org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector setupEJBReceivers
WARN: Could not register a EJB receiver for connection to 192.x.y.z:443
java.lang.RuntimeException: Operation failed with status WAITING
它試圖設置Java系統的道具,像下面,但沒有用:
-Dhttp.proxyHost=web-proxy.yyy.xxx.net
-Dhttp.proxyPort=8080
-Dhttps.proxyHost=web-proxy.yyy.xxx.net
-Dhttps.proxyPort=8080
-DproxySet=true
我們使用PropertiesBasedEJBClientConfiguration,但我不能找到一個「 remote.connection.default.connect.options.org.xnio.Options。*「類似於設置代理的屬性。
當前配置:
("remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED", "true");
("remote.connection.default.connect.options.org.xnio.Options.SSL_STARTTLS", "true")
("remote.connection.default.connect.options.org.xnio.Options.SSL_PROTOCOL", "TLS")
("remote.connection.default.connect.options.org.jboss.remoting3.RemotingOptions.HEARTBEAT_INTERVAL", "600000")
("remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS", "false")
("remote.connections","default")
("remote.connection.default.host", host)
("remote.connection.default.port", port)
("remote.connection.default.protocol", protocol)
其實我發現它實際上不支持使用jboss-remoting的HTTP代理。 –