How To configure Multiple Receive Email to trigger process Model?

Hi All,

I have configured 2 mail box i.e. IAMProcess_d and phsrecovery_appian_d to trigger process when email received in ejb-jar.xml
and jboss.xml.

But Process getting triggered when mail received on IAMProcess_d but not on Phsrecovery_appian_d.


In the log i can see entry for IAMProcess_d but not for phsrecovery_appian_d. Attached ejb-jar, jbox, Custom Properties screen shot and service log screen shot.

Any help on this will be appreciated

  .

<jboss:ejb-jar xmlns:jboss="http://www.jboss.com/xml/ns/javaee"
                  xmlns="http://java.sun.com/xml/ns/javaee"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xmlns:c="urn:clustering:1.0"
                  xmlns:r="urn:resource-adapter-binding"
                  xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee        
                         http://www.jboss.org/j2ee/schema/jboss-ejb3-2_0.xsd       
                         http://java.sun.com/xml/ns/javaee 
                         http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd"
                  version="3.1"
                  impl-version="2.0">
  <enterprise-beans>
   
 <message-driven>
      <ejb-name>EmailHandlerBean</ejb-name>
    </message-driven>
 


    <message-driven>
      <ejb-name>PhsrecEmailHandlerBean</ejb-name>
    </message-driven>

 </enterprise-beans>
  <assembly-descriptor>
    <r:resource-adapter-binding>
      <ejb-name>*</ejb-name>
      <r:resource-adapter-name>suite.ear#email-poller.rar</r:resource-adapter-name>
    </r:resource-adapter-binding>
  </assembly-descriptor>
</jboss:ejb-jar>
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar metadata-complete="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:ejb="http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd" version="3.0">
  <display-name>EmailHandlerMDB</display-name>
   <enterprise-beans>
      <message-driven>
         <description>An MDB that accepts mail messages</description>
         <ejb-name>EmailHandlerBean</ejb-name>
         <ejb-class>com.appiancorp.mdb.EmailHandlerBean</ejb-class>
         <messaging-type>com.appiancorp.ra.emailpoller.MailListener</messaging-type>
         <!--  these activation config properties must be configured to match the mail system -->
         <activation-config>
            <activation-config-property>
               <activation-config-property-name>ejbName</activation-config-property-name>
               <activation-config-property-value>EmailHandlerBean</activation-config-property-value>
            </activation-config-property>
            <activation-config-property>
               <activation-config-property-name>mailServer</activation-config-property-name>
               <activation-config-property-value>pop-na.sanofi.com</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>pop3s</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>
            <activation-config-property>
               <activation-config-property-name>userName</activation-config-property-name>
               <activation-config-property-value>IAMProcess_d</activation-config-property-value>
            </activation-config-property>
            <activation-config-property>
               <!-- polling interval in milliseconds 
                    the setting provided below is every 5 minutes 
                    consult your mail admin for acceptable frequecy -->
               <activation-config-property-name>pollingInterval</activation-config-property-name>
               <activation-config-property-value>300000</activation-config-property-value>
            </activation-config-property>
            <activation-config-property>
               <activation-config-property-name>partialFetch</activation-config-property-name>
               <activation-config-property-value>true</activation-config-property-value>
            </activation-config-property>
            <activation-config-property>
               <activation-config-property-name>forceImapLogin</activation-config-property-name>
               <activation-config-property-value>false</activation-config-property-value>
            </activation-config-property>
  <activation-config-property>
               <activation-config-property-name>debug
</activation-config-property-name>
               <activation-config-property-value>true</activation-config-property-value>
            </activation-config-property>


         </activation-config>
      </message-driven>
  <message-driven>
         <description>An MDB that accepts mail messages</description>
         <ejb-name>PhsrecEmailHandlerBean</ejb-name>
         <ejb-class>com.appiancorp.mdb.EmailHandlerBean</ejb-class>
         <messaging-type>com.appiancorp.ra.emailpoller.MailListener</messaging-type>
         <!--  these activation config properties must be configured to match the mail system -->
         <activation-config>
            <activation-config-property>
               <activation-config-property-name>ejbName</activation-config-property-name>
               <activation-config-property-value>PhsrecEmailHandlerBean</activation-config-property-value>
            </activation-config-property>
            <activation-config-property>
               <activation-config-property-name>mailServer</activation-config-property-name>
               <activation-config-property-value>pop-na.sanofi.com</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>pop3s</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>
            <activation-config-property>
               <activation-config-property-name>userName</activation-config-property-name>
               <activation-config-property-value>phsrecovery_appian_d</activation-config-property-value>
            </activation-config-property>
            <activation-config-property>
               <!-- polling interval in milliseconds 
                    the setting provided below is every 5 minutes 
                    consult your mail admin for acceptable frequecy -->
               <activation-config-property-name>pollingInterval</activation-config-property-name>
               <activation-config-property-value>300000</activation-config-property-value>
            </activation-config-property>
            <activation-config-property>
               <activation-config-property-name>partialFetch</activation-config-property-name>
               <activation-config-property-value>true</activation-config-property-value>
            </activation-config-property>
            <activation-config-property>
               <activation-config-property-name>forceImapLogin</activation-config-property-name>
               <activation-config-property-value>false</activation-config-property-value>
            </activation-config-property>
  <activation-config-property>
               <activation-config-property-name>debug
</activation-config-property-name>
               <activation-config-property-value>true</activation-config-property-value>
            </activation-config-property>


         </activation-config>
      </message-driven>
 
   </enterprise-beans>
</ejb-jar>

  Discussion posts and replies are publicly visible

Parents
  • Hi,

    I would like to understand one thing here like, what is your exact requirement where you have configured two different email handlers for the one process model?

    Could you please provide more insight of your requirement if possible?

    Did you see any ignorance message on the logs saying that email for the process model is already configured something like that? There is one thing that you can do here is like, switch the IAMProcess_d and phsrecovery_appian_d  upside and down in the properties file and check which one is taking priority. Please let us know the results by doing that.

    Thanks,

    Shanmukha

Reply
  • Hi,

    I would like to understand one thing here like, what is your exact requirement where you have configured two different email handlers for the one process model?

    Could you please provide more insight of your requirement if possible?

    Did you see any ignorance message on the logs saying that email for the process model is already configured something like that? There is one thing that you can do here is like, switch the IAMProcess_d and phsrecovery_appian_d  upside and down in the properties file and check which one is taking priority. Please let us know the results by doing that.

    Thanks,

    Shanmukha

Children