我正在尝试从 JNDI 读取定位器主机和端口信息,其值的格式为 host[port],host2[port2]。
<jee:jndi-lookup id="locatorsJndi" jndi-name="locators/locator1" />
<gfe:pool id="locatorPool" locators="#{locatorsJndi}">
在这种情况下,Spring Data gemfire 似乎无法正确识别定位器。它将 JNDI 查找值字符串作为一个主机,并在末尾附加端口 10334。
Unable to connect to any locators in the list [**host[10334],host2[10334]**:10334]; nested exception is com.gemstone.gemfire.cache.client.NoAvailableLocatorsException:
但是,如果我将主机和端口值作为定位器属性的一部分传递,如下所示,它会按预期工作。
<gfe:pool id="locatorPool" locators="host1[port1],host2[port2]">
这是 Spring Data Gemfire 中的问题吗?