0

我们有一个 MDB,它正在对来自电子邮件帐户的电子邮件进行评级,MDB 实现 MailListener 接口,我正在寻找一个通过 SSL 启用 POP3 的属性

我在xml中有这样的设置,在下面,我为端口和SSL添加了一个额外的激活配置属性......我已经用谷歌搜索了它但没有成功,有人可以帮忙吗?

我正在使用 jboss5.1, seam2

    <message-driven>
        <description>An MDB that accepts mail messages</description>
        <ejb-name>MailListenerMDB</ejb-name>
        <ejb-class>si.arctur.fourPmServices.scheduleJobs.emailListener.MailListenerMDB</ejb-class>
        <activation-config>
            <activation-config-property>
               <activation-config-property-name>userName</activation-config-property-name>
               <activation-config-property-value>******</activation-config-property-value>
            </activation-config-property>
            <activation-config-property>
               <activation-config-property-name>password</activation-config-property-name>
               <activation-config-property-value>********</activation-config-property-value>
            </activation-config-property>
            <activation-config-property>
               <activation-config-property-name>pollingInterval</activation-config-property-name>
               <activation-config-property-value>15000</activation-config-property-value>
            </activation-config-property>
            <activation-config-property>
               <activation-config-property-name>mailServer</activation-config-property-name>
               <activation-config-property-value>*****</activation-config-property-value>
            </activation-config-property>
            <activation-config-property>
               <activation-config-property-name>mailFolder</activation-config-property-name>
               <activation-config-property-value>INBOX</activation-config-property-value>
            </activation-config-property>
            <activation-config-property>
               <activation-config-property-name>storeProtocol</activation-config-property-name>
               <activation-config-property-value>pop3</activation-config-property-value>
            </activation-config-property>
        </activation-config>
</message-driven>
4

1 回答 1

1

我找到了您需要指定这些属性的解决方案

<activation-config-property>
               <activation-config-property-name>storeProtocol</activation-config-property-name>
               <activation-config-property-value>pop3s</activation-config-property-value>
            </activation-config-property>
            <activation-config-property>
               <activation-config-property-name>port</activation-config-property-name>
               <activation-config-property-value>995</activation-config-property-value>
            </activation-config-property>
            <activation-config-property>
               <activation-config-property-name>starttls</activation-config-property-name>
               <activation-config-property-value>true</activation-config-property-value>
            </activation-config-property>

小心 POP3S 而不是 POP3 的协议

于 2012-12-18T16:08:31.703 回答