axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saminda Wishwajith Abeyruwan (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AXIS2-2333) Wrong parameter names for mail transport in axis2.xml
Date Sat, 07 Apr 2007 10:15:32 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-2333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Saminda Wishwajith Abeyruwan resolved AXIS2-2333.
-------------------------------------------------

    Resolution: Fixed

After Axis2 1.1 release, we have done major architectural changes to mail transport configuration.
Mail transport uses Java Mail API. Rather introducing new properties, in the new model we
allow user to use Java Mail properties instead. One could configure the transport in axis2.xml
using parameters or in runtime using properties. Be it parameter or property, the key will
be a Java Mail configuration key. Ex: 

Listener configuration. 

If configured pragmatically, 
	Properties pp = new Properties();
        // Java Mail Key/Value pairs 
 	pp.setProperty("mail.pop3.host","localhost");
        pp.setProperty("mail.pop3.user","blue");
        pp.setProperty("mail.store.protocol","pop3");

        // Axis2 specific Key/Value pairs 
        pp.setProperty("transport.mail.pop3.password","blue");
        pp.setProperty("transport.mail.replyToAddress","blue@localhost");
        pp.setProperty("transport.listener.interval","3000");

As you can see configuration consists of two parts. Java Mail related key/value pairs and
Axis2 specific key/value pairs. 

One could use as many key/value pairs given by Java Mail. There exist only three Axis2 key/value
pairs. They start with "transport." prefix. It will be used to set the pop password, reply
to address and listener retrying interval. 

Via Axis2.xml

<transportReceiver name="mailto" class="org.apache.axis2.transport.mail.SimpleMailListener">
        <parameter name="mail.pop3.host">localhost</parameter>
        <parameter name="mail.pop3.user">red</parameter>
        <parameter name="mail.store.protocol">pop3</parameter>
        <parameter name="transport.mail.pop3.password">red</parameter>
        <parameter name="transport.mail.replyToAddress">red@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">localhost</parameter>
</transportSender>

"parameter" elements' @name will hold the keys. 

> Wrong parameter names for mail transport in axis2.xml
> -----------------------------------------------------
>
>                 Key: AXIS2-2333
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2333
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: transports
>            Reporter: Vasil Benov
>         Assigned To: Saminda Wishwajith Abeyruwan
>            Priority: Trivial
>
> Parameter names in the axis2.xml for configuring mail transport bear wrong names.
> 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>
> The afore mentioned parametrs are not the same as defined in the <org.apache.axis2.transport.mail.Constants>
> These are checked in the init() methods of the <org.apache.axis2.transport.mail.SimpleMailListener>
and <org.apache.axis2.transport.mail.MailTransportSender > classes

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message