axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saminda Abeyruwan" <samin...@gmail.com>
Subject Re: [AXIS2] Wrong parameter names for mail transport in axis2.xml
Date Fri, 16 Mar 2007 04:33:18 GMT
HI Vasail,

Sorry I couldn't point out one aspect in prior mail. The mail configuration
info you have shown, was available prior Axis2 1.0. We have changed the
entire mail configuration from Axis2 1.1. If you are using Axis2 1.1/laterst
head {I hope you do}, you will be able to see that the mail configuration is
as you have shown. As an example, if you need to configure mail with a
NON-SSL connection, you have to have the following configuration info in
server side,

===========================
<transportReceiver name="mailto" class="
org.apache.axis2.transport.mail.SimpleMailListener">
        <parameter name="mail.pop3.host"
locked="false">localhost</parameter>
        <parameter name="mail.pop3.user" locked="false">red</parameter>
        <parameter name="mail.store.protocol"
locked="false">pop3</parameter>
        <parameter name="transport.mail.pop3.password"
locked="false">red</parameter>
        <parameter name="transport.mail.replyToAddress" locked="false">
red@localhost</parameter>
        <parameter name="transport.listener.interval">3000</parameter>
    </transportReceiver>

and

<transportSender name="mailto" class="
org.apache.axis2.transport.mail.MailTransportSender">
        <parameter name="mail.smtp.host"
locked="false">localhost</parameter>
        <parameter name="mail.smtp.user" locked="false">blue</parameter>
        <parameter name="mail.smtp.from" locked="false">red@localhost
</parameter>
        <parameter name="transport.mail.smtp.password"
locked="false">blue</parameter>
    </transportSender>
==========================================

and client side,

========================================
<transportReceiver name="mailto" class="
org.apache.axis2.transport.mail.SimpleMailListener">
        <parameter name="mail.pop3.host"
locked="false">localhost</parameter>
        <parameter name="mail.pop3.user" locked="false">blue</parameter>
        <parameter name="transport.mail.pop3.password"
locked="false">blue</parameter>
        <parameter name="mail.store.protocol"
locked="false">pop3</parameter>
        <parameter name="transport.mail.replyToAddress" locked="false">
blue@localhost</parameter>
        <parameter name="transport.listener.interval">3000</parameter>
    </transportReceiver>

<transportSender name="mailto" class="
org.apache.axis2.transport.mail.MailTransportSender">
        <parameter name="mail.smtp.host"
locked="false">localhost</parameter>
        <parameter name="mail.smtp.user" locked="false">red</parameter>
        <parameter name="mail.smtp.from" locked="false">blue@localhost
</parameter>
        <parameter name="transport.mail.smtp.password"
locked="false">red</parameter>
    </transportSender>

=========================================

Thank you

Saminda



On 3/15/07, Vasil Benov <benovv@gmail.com> 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 <samindaa@gmail.com> 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 < benovv@gmail.com> 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</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</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
>
>
>
>
> --
> 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

Mime
View raw message