Domino 服务器 7.0.3FP1 使用 java 代理的代理设置

发布于 2024-12-01 03:53:48 字数 1022 浏览 5 评论 0原文

首先,这不是我第一次提出与此问题相关的问题,但现在我们已经与网络管理员进行了交谈,并且我们知道我们绝对必须通过该代理,我将再次询问该问题,但提供更多详细信息。

所以这就是交易。我们有一个为 Lotus Notes 构建的应用程序。该应用程序需要与位于客户端网络外部的 Web 服务进行通信,但如果不通过代理服务器,任何内容都无法脱离网络。由于Agent是运行在服务器上的,所以我们需要告诉服务器先经过代理。这可以在 Java 中使用系统属性(http.proxyHost 等)来实现。也就是说,我在 Java 代理中设置了与代理设置相关的所有属性,然后尝试从 Web 服务获取 XML 文件。我得到的是连接超时异常。所以,我想知道为什么?我们使用 WireShark 进行了网络分析,应用程序并未尝试通过代理。这就是它奇怪的作用。

  1. 我构建了应用程序并将代理主机设置为虚拟地址,只是为了获取真实代理地址和我的凭据。假设 proxy.mydomain.com
  2. 我得到了我的凭据,所以我用真实的代理配置更改了代理配置,比如 webproxy.ca.mydomain.net
  3. 没有任何效果,所以我们重新启动 Domino 服务器并执行清除缓存,认为它可能相关对此
  4. 我们使用 WireShark 进行了网络分析,并且应用程序为此查询 DNS:

    <前><代码> proxy.mydomain.com proxy.mydomain.com.ca.mydomain.com proxy.mydomain.com.eu.mydomain.com proxy.mydomain.com.anotherknowdomain.com

这会持续一段时间。但是,我可以看到它仍在使用虚拟地址。它从哪里得到它。它不在notes.ini中,不在服务器的缓存中,不在我的源代码中,不在java.properties中,不在JVM中(因为我们重新启动了机器)。有什么想法吗?我们正处于一个项目的尾声,我们需要它来交付它,并且压力正在建立!我搜索了整个网络!

我还要说的一件事是,当我在 java 代码中设置属性时,我之前尝试打印它们,看看它是否正常并且一切都很好......

First, this is not the first time I ask a question related to this problem, but now that we have talked with the network admin guys and we know we absolutely HAVE to get through that proxy, I will ask again the question but with further details.

So here is the deal. We have an application built for Lotus Notes. That application needs to talk with a web service that is located outside the network of our client, but nothing can get out of the network without going through a proxy server. Since the Agent is running on the server, we need to tell the server to go through the proxy first. That can be achieved in Java using the System's properties (http.proxyHost, etc). That being said, I set all the properties related to the proxy settings in my Java Agent, and then I try getting the XML file from the web service. What I get is a connection time out exception. So, I was wondering why? We did a network analysis with WireShark, and the application is not trying to go through the proxy. Here is what it STRANGELY does.

  1. I built the application and set the proxy host to a dummy address, just for the time I get the real proxy address and my credentials. Let's say proxy.mydomain.com
  2. I get my credentials, so I change the proxy config with the real ones, say webproxy.ca.mydomain.net
  3. Nothing works, so we restart the Domino server and do a clearcache, thinking it might be related to this
  4. We did a network analysis with WireShark and the application queries the DNS for this:

     proxy.mydomain.com
     proxy.mydomain.com.ca.mydomain.com
     proxy.mydomain.com.eu.mydomain.com
     proxy.mydomain.com.anotherknowdomain.com
    

And that goes for a while. BUT, I can see it's still using the dummy address. Where does it get it. It's not in notes.ini, it's not in the server's cache, it's not in my source code, it's not in java.properties, it not in the JVM (since we restarted the machine). Any idea? We're at the end of a project and we need this to work to deliver it and preassure is building!!! I searched the WHOLE WEB!!!

One more thing I would say, when I set my properties in java code, I tryied to print them before to see if it was ok and everything is fine...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

薯片软お妹 2024-12-08 03:53:48

供您参考,尽管它是通过 HTTP 的 Web 代理,但 JVM 设置 sockProxyHost 已设置并先于另一个设置。那是我们的问题...

For your information, even though it was a web proxy going through HTTP, the JVM setting sockProxyHost was set and preceds on the other. That was our problem...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文