Thursday, June 28, 2007

Axis2/Java - Mail transport

Axis2/Java - Mail transport

The inner workings of the mail transport has been divided into two parts: the transport sender for SMTP and the transport listener for POP3. The transport listener will listen to a particular email address periodically. When an email comes in, it will be tunneled into an Axis2 engine. On the other hand, the mail transport sender sends emails to a mail server to a particular email address.

Mail transport can be used against a generic mail server or it can be used like a mailet. The simple mailet provided with Axis2 directs any message that comes in to a particular address into the Axis engine. The engine will process the message and use the Transport sender to send the reply.

The mail transports have been written with the use of Sun's JavaMail and Activation jars. They should be available in your classpath to get the mail transport to work.

No comments: