+1 that this is a bug. Would appreciate if you could file a JIRA ..
Sanjiva.
Vasil Benov wrote:
Hi Samida,
I just wanted to say that if someone decides to comment out the mail
transport configuration from the axis2.xml file he could run into a
trouble because the parameter names there are not the same as defined in
the
<org.apache.axis2.transport.mail.Constants>
and those are checked in the init() methods of the
<org.apache.axis2.transport.mail.SimpleMailListener> and
<org.apache.axis2.transport.mail.MailTransportSender > classes
Regards, Vasil
On 3/15/07, *Saminda Abeyruwan* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Hi Vasil,
Thanks for using Axis2 mail transport. There are many properties
that could have come under <transportReciever/> {SimpleMailListener}
and <transportSender/> {MailTransportSender}. One could configure
the transport Sender or listener pragmatically or from the
configuration file { axis2.xml}.
As Axis2 uses Java Mail API for transport, Java Mail API uses
Properties to configure itself. Thus, if Axis2.xml is being used to
configure this transport each parameter will map to a property that
you have set in the Java Mail API. This will make life easier.
There could be many ways to configure Mail transport (SSL/NON-SSL),
we didn't put a default configuration in defaut_axis2.xml.
Please refer to mail-configuration.html and mail-transport.html to
more information.
Thank you
Saminda
On 3/15/07, *Vasil Benov* < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Hi axis2 devs,
I have found out that the parameter names in the axis2.xml for
configuring mail transport bear wrong names.
here the relevant sections from the axis2.xml file:
<transportReceiver name="mail" class="
org.apache.axis2.transport.mail.SimpleMailListener">
<parameter name="mail.store.protocol" ....> i think this
parameter is needed as well (it is missing in the default axis2.xml)
<parameter name=" transport.mail.pop3.host"
locked="false">127.0.0.1 <http://127.0.0.1></parameter> =>
should read name="mail.pop3.host " ...
<parameter name="transport.mail.pop3.user "
locked="false">axis2</parameter> => shuold read
name="mail.pop3.user" ...
<parameter name="transport.mail.pop3.password"
locked="false">axis2</parameter>
<parameter name="transport.mail.pop3.port"
locked="false">110</parameter> => should read name="mail.pop3.port"
</transportReceiver>
<transportSender name="mailto" class="
org.apache.axis2.transport.mail.MailTransportSender">
<parameter name="transport.mail.smtp.host" locked="false">
127.0.0.1 <http://127.0.0.1></parameter> => should read name="
mail.smtp.host" ...
<parameter name="transport.mail.smtp.user"
locked="false">axis2</parameter> => shuold read
name="mail.smtp.user" ...
<parameter name=" transport.mail.smtp.password"
locked="false">axis2</parameter>
<parameter name="transport.mail.smtp.port"
locked="false">25</parameter> should read name=" mail.pop3.port"
</transportSender>
Regards Vasil
--
Vasil Benov,
Mobile: +359(0)889/202682
@-mail: benovv at gmail dot com
ICQ: 140269988
GPG Fingerprint: 2CDC 5DA0 4C0A 7C06 5259 DE12 ACF3 177C 8906 0908
Public Key URL:
*) http://random.sks.keyserver.penguin.de/
--
Saminda Abeyruwan
Software Engineer
WSO2 Inc. - www.wso2.org <http://www.wso2.org>
--
Vasil Benov,
Mobile: +359(0)889/202682
@-mail: benovv at gmail dot com
ICQ: 140269988
GPG Fingerprint: 2CDC 5DA0 4C0A 7C06 5259 DE12 ACF3 177C 8906 0908
Public Key URL:
*) http://random.sks.keyserver.penguin.de/
--
Sanjiva Weerawarana, Ph.D.
Founder & Director; Lanka Software Foundation; http://www.opensource.lk/
Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
Director; Open Source Initiative; http://www.opensource.org/
Member; Apache Software Foundation; http://www.apache.org/
Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]