当从 Java 连接到 Adobe LiveCycle ES 2.5 时,设置连接属性页面列出了您应该使用的默认连接属性,具体取决于您的服务器类型。
对于 WebLogic,它是这样的:
Properties ConnectionProps = new Properties();
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_EJB_ENDPOINT, "t3://localhost:7001");
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_TRANSPORT_PROTOCOL,ServiceClientFactoryProperties.DSC_EJB_PROTOCOL);
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_TYPE, "WebLogic");
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME, "administrator");
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD, "password")
...
ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
我的问题是:在我们的 WebLogic 服务器上,上述操作失败,但出现以下异常:
Caused by: java.net.ConnectException: t3://localhost:7001: Destination unreachable; nested exception is:
但是,如果我只是忽略 connectionProps,它会起作用:
ServiceClientFactory myFactory = ServiceClientFactory.createInstance();
那么,这里发生了什么?是 Adobe 错了,您没有为 WebLogic 使用 connectionProps,还是我们缺少一些 WebLogic 配置?当我使用 ServiceClientFactory.createInstance() - 没有 connectionProps 时,这意味着什么?
感谢您的任何建议!
抢:)