0

当从 Java 连接到 Adob​​e 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();

那么,这里发生了什么?是 Adob​​e 错了,您没有为 WebLogic 使用 connectionProps,还是我们缺少一些 WebLogic 配置?当我使用 ServiceClientFactory.createInstance() - 没有 connectionProps 时,这意味着什么?

感谢您的任何建议!

抢:)

4

1 回答 1

0

在此Google Group Post上给出的答案:仅当您连接到在不同 JVM 中运行的 LiveCycle 时才需要配置值。

:)

于 2011-10-04T04:56:06.620 回答