从运行在 Tomcat 上的应用程序 (Java) 访问 Outlook2003(作为服务启动)
我想通过在 Tomcat 服务器上运行的 Java 应用程序从本地安装的 Microsoft Outlook 交换电子邮件。 在过去,这不是问题,但由于我们将 tomcat 服务器从“正常”启动例程切换为作为服务启动(这是出于性能原因),我与 Outlook 的连接不再工作。
由于我很长一段时间都在寻找解决方案(没有找到解决方案),所以我决定在这里发表帖子。
我已经知道了,那
Outlook 对象模型不适合在 Windows 服务中运行
,该服务可在 http://support.microsoft 找到。 com/kb/237913。由于启动服务时未加载注册表配置单元 HKEY_CURRENT_USER。
但在这种情况下,我认为简单的“不——这是不可能的”不能成为解决方案,这就是为什么我在这里寻求帮助。
- 例如,是否可以让 tomcat 上的应用程序启动一个新的本地应用程序,然后连接到 Outlook?
- 是否可以手动加载 HKEY_CURRENT_USER 配置单元?
- 或者另一方面通过使用我尚未提到的解决方案来做到这一点?
提前非常感谢!
I want to exchange E-Mails from a locally installed Microsoft Outlook through a Java Application which is running on a Tomcat Server.
In the past this was no Problem but since we switched the tomcat server from a "normal" starting routine to be started as a service (which is done for performance reasons) my Connection to Outlook is not working anymore.
As I was searching for a Solution to this quite for a long time (with no found solution) I decided to leave a post here.
I already know, that
The Outlook Object Model is unsuitable to run in a Windows service
which can be found at http://support.microsoft.com/kb/237913. Due to the registry hive HKEY_CURRENT_USER which is not loaded when a service is started.
But in this case I think a simple 'No - that’s not possible' can’t be a solution and that’s why I am asking here for help.
- Is it for example possible to let the application on the tomcat start a new local application which then connects to Outlook?
- Is it possible to manually load the HKEY_CURRENT_USER hive?
- or on the other hand do this by using a solution which I did not mention yet?
Thanks a lot in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能需要创建一个 Outlook 插件,使用网络服务(或类似服务)将电子邮件提交到您的应用程序。
我相信这是实现此类需求的通常方式。
You probably need to create a plugin to outlook which submits the email to your application using web-services (or similar).
I believe this is the usual way of realising requirements like this.