Adobe LiveCyle - 何时在WebLogic中使用ServiceClientFactory的连接属性?

时间:2021-12-12 12:47:13

When making a connection from Java to Adobe LiveCycle ES 2.5, the Setting connection properties page lists the default connection properties you should use depending on your server type.

从Java连接到Adobe LiveCycle ES 2.5时,“设置连接属性”页面会列出您应使用的默认连接属性,具体取决于您的服务器类型。

For WebLogic, it is this:

对于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);

My problem is this: on our WebLogic server, the above fails with the following exception:

我的问题是:在我们的WebLogic服务器上,上述操作失败,出现以下异常:

Caused by: java.net.ConnectException: t3://localhost:7001: Destination unreachable; nested exception is:

However, if I simply ignore connectionProps, it works:

但是,如果我只是忽略connectionProps,它可以工作:

ServiceClientFactory myFactory = ServiceClientFactory.createInstance();

SO, what is going on here? Is Adobe wrong, and you don't use connectionProps for WebLogic, or is there some WebLogic configuration that we are missing? What does it mean when I use ServiceClientFactory.createInstance() - without connectionProps?

那么,这里发生了什么? Adobe是否错误,您没有将connectionProp用于WebLogic,或者是否存在一些我们缺少的WebLogic配置?当我使用ServiceClientFactory.createInstance()时没有connectionProps是什么意思?

Thanks for any advice!

谢谢你的建议!

Rob :)

1 个解决方案

#1


0  

Answer given on the this Google Group Post: only need the configuration values if you are connecting to a LiveCycle running in a different JVM.

在此Google Group Post上给出的答案:如果要连接到在不同JVM中运行的LiveCycle,则只需要配置值。

Rob

:)

#1


0  

Answer given on the this Google Group Post: only need the configuration values if you are connecting to a LiveCycle running in a different JVM.

在此Google Group Post上给出的答案:如果要连接到在不同JVM中运行的LiveCycle,则只需要配置值。

Rob

:)