简体   繁体   English

从在Tomcat(作为服务启动)上运行的应用程序(Java)访问Outlook2003

[英]Access Outlook2003 from an application (Java) running on a Tomcat (started as a service)

I want to exchange E-Mails from a locally installed Microsoft Outlook through a Java Application which is running on a Tomcat Server. 我想通过在Tomcat服务器上运行的Java应用程序从本地安装的Microsoft Outlook交换电子邮件。 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. 在过去,这没问题,但是由于我们将tomcat服务器从“正常”启动例程切换为作为服务启动(出于性能原因而完成),因此与Outlook的连接不再起作用。

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 Outlook对象模型不适合在Windows服务中运行

which can be found at http://support.microsoft.com/kb/237913 . 可以在http://support.microsoft.com/kb/237913上找到。 Due to the registry hive HKEY_CURRENT_USER which is not loaded when a service is started. 由于启动服务时未加载注册表配置单元HKEY_CURRENT_USER。

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? 例如,是否可以让tomcat上的应用程序启动一个新的本地应用程序,然后再连接到Outlook?
  • Is it possible to manually load the HKEY_CURRENT_USER hive? 是否可以手动加载HKEY_CURRENT_USER配置单元?
  • or on the other hand do this by using a solution which I did not mention yet? 或者另一方面,通过使用我尚未提及的解决方案来做到这一点?

Thanks a lot in advance! 在此先多谢!

You probably need to create a plugin to outlook which submits the email to your application using web-services (or similar). 您可能需要创建一个Outlook插件,使用Web服务(或类似服务)将电子邮件提交到您的应用程序。

I believe this is the usual way of realising requirements like this. 我相信这是实现此类需求的常用方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM