3 Replies Latest reply on Aug 30, 2013 9:19 AM by Stanislav Ivanov

    JBOSS SOA EmailInflow Gateway connection issues

    Arya konnuru Newbie

      Hey guys ive seen this question multiple times but no proper anser just was wondering if anyone could let me know is you guys have seen this issue iam trying to connect my JBOSS SOA application to the gmail service and all i get is a log message as show as below the same thing happens with office outlook email as well i see that mailActiovation class i consuming the exception when i decompiled the source code from the rar file. Can anyone point me to the right direction as iam lost :-

      ERROR [MailActivation] Failed to execute folder check, spec=MailActivationSpec(mailServer=pop.gmail.com, storeProtocol=pop, mailFolder=*, pollingInterval=5000, messageSelector=null, userName=*****@gmail.com, maxMessages=1, debug=false, starttls=false, port=993)
      13:04:54,562 ERROR [MailActivation] Failed to execute folder check, spec=MailActivationSpec(mailServer=pop.gmail.com, storeProtocol=pop, mailFolder=*, pollingInterval=5000, messageSelector=null, userName=*******@gmail.com, maxMessages=1, debug=false, starttls=false, port=0)

        • 1. Re: JBOSS SOA EmailInflow Gateway connection issues
          Tom Cunningham Master

          Can you provide a small sample?  Or are you using the sample given in the article (http://community.jboss.org/wiki/UsingMailInflowWithJBossESB)

          • 2. Re: JBOSS SOA EmailInflow Gateway connection issues
            Arya konnuru Newbie

            <?xml version = "1.0" encoding = "UTF-8"?>

            <jbossesb xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd" parameterReloadSecs="5">

               <providers>

                 <jms-provider name="JBossMQ" connection-factory="ConnectionFactory"

                               jndi-URL="jnp://127.0.0.1:1099" jndi-context-factory="org.jnp.interfaces.NamingContextFactory"

                               jndi-pkg-prefix="org.jboss.naming:org.jnp.interfaces">

                      <jms-bus busid="quickstartEsbChannel">

                          <jms-message-filter

                              dest-type="QUEUE"

                              dest-name="queue/quickstart_helloworld_mail_Request_esb"

                          />

                      </jms-bus>

                  </jms-provider>

               </providers>

             

               <services>

                 <service category="MailServiceESB" name="MailListener"

                     description="Hello World Mail Service">

                     <listeners>

                         <jca-gateway name="Mail-JCA-Gateway"

                             adapter="mail-ra.rar"

                             endpointClass="org.jboss.soa.esb.samples.quickstart.helloworld_mail.MailEndpoint"

                             is-gateway="true" transacted="false">

                                 <activation-config>

                                    <property name="mailServer" value="pop.gmail.com" />

                                    <property name="storeProtocol" value="pop" />

             

                                    <property name="mailFolder" value="*" />

                                    <property name="userName" value="8888@gmail.com" />

                                    <property name="password" value="88888" />

                                    <property name="pollingInterval" value="5000" />

                                </activation-config>

             

                         </jca-gateway>

                         <jms-listener name="JMS-ESBListener"

                                      busidref="quickstartEsbChannel"

                                      maxThreads="1"

                                />

                     </listeners>

                     <actions>

                            <action name="action1"

                                class="org.jboss.soa.esb.samples.quickstart.helloworld_mail.MyMailListenerAction"

                                process="displayMessage"

                                />     

                             <action name="action2" class="org.jboss.soa.esb.actions.SystemPrintln">

                               <property name="printfull" value="true"/>

                             </action>

                     </actions>

                 </service>

               </services>

             

            </jbossesb>

             

            Can you please let me know how i can recompile the jar file such that it logs the correct exception as iam not able to figure out what is the problem?

            • 3. Re: JBOSS SOA EmailInflow Gateway connection issues
              Stanislav Ivanov Newbie

              Here is a config that works for gmail:

               

              <activation-config>

                                <property name="mailServer" value="pop.gmail.com"/>

                                <!-- If you need to use SSL, use pop3s or imaps as a protocol -->

                                <property name="storeProtocol" value="pop3s"/>

                                <property name="mailFolder" value="INBOX"/>

                                <property name="userName" value="yourUsername@gmail.com"/>

                                <property name="password" value="yourPassword"/>

                                <property name="pollingInterval" value="30000"/>

                                <property name="debug" value="true"/>

                                <property name="port" value="995"/> 

                               </activation-config>

               

              The thing is, you need to specify port 995 and you have to set the protocol to pop3s, which is pop3 using SSL. Check the last comment on that thread:

               

              UsingMailInflowWithJBossESB