Adobe LiveCyle - 何时在 WebLogic 中使用 ServiceClientFactory 的连接属性?
从 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 时,这意味着什么?
感谢您的任何建议!
抢 :)
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.
For WebLogic, it is this:
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:
Caused by: java.net.ConnectException: t3://localhost:7001: Destination unreachable; nested exception is:
However, if I simply ignore connectionProps, it works:
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?
Thanks for any advice!
Rob
:)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在此 Google 网上论坛帖子<中给出的答案/a>:仅当您连接到在不同 JVM 中运行的 LiveCycle 时才需要配置值。
罗布
:)
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.
Rob
:)