-
1. Re: JBOSS SOA EmailInflow Gateway connection issues
tcunning Sep 10, 2011 2:03 PM (in response to arya27)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
arya27 Sep 11, 2011 10:53 AM (in response to tcunning)<?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
naislav Aug 30, 2013 9:19 AM (in response to arya27)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: