【发布时间】:2015-08-12 21:23:50
【问题描述】:
以下是我的远程配置,当我进行远程处理时一切正常。问题出在某个点上,打开了太多通道,因此其他远程调用因此问题而失败。
为了解决这个问题,我尝试在 finally 语句中关闭上下文并得到这个问题:
INFO [org.jboss.ejb.client.remoting]
(Remoting "config-based-ejb-client-endpoint" task-9)
EJBCLIENT000016:
Channel Channel ID c50b300b (outbound) of Remoting connection
29298b25 host/127.0.0.1:8080 can no longer process messages
...failed with exception -:
java.lang.IllegalStateException:
EJBCLIENT000027: No EJBReceiver available for node name
String info = "remote.connection.default";
props.put(info + ".host", StringUtils.substringBefore(url, ":"));
props.put(info + ".port", StringUtils.substringAfter(url, ":"));
props.put(info + ".username", "username");
props.put(info + ".password", "password");
props.put(info + ".connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS", "true");
props.put(info + ".connect.options.org.xnio.Options.SASL_POLICY_NOPLAINTEXT", "false");
props.put("remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED", "false");
props.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
props.put("org.jboss.ejb.client.scoped.context", "true");
InitialContext ctx = new InitialContext(props);
我该如何解决这个问题?我错过了财产吗?如何关闭 ejb 上下文而不出现此问题?
谢谢
【问题讨论】:
标签: java jboss wildfly remoting