Java Mail API: Transforming Mail into Data Carriers (Page 1 of 5 )
Java Mail is eminently adaptable. Indeed, looking at its API, we find that it helps us provide an alternative solution to an old problem: how to transfer large amounts of data between two enterprise applications. In this article, you will discover how to adapt Java Mail to play the role of a data carrier.
In the last article, I discussed the basics of Java Mail API. I also provided a fleeting glance into the world of Java Mail where a little unconventional approach, commonly known as an "oblique approach" can work wonders by providing a transit path where none existed before.
What I am indicating through this analogy is the adaptability of Java Mail when the context changes. When working for a mailing environment, it is in its basic form. But when the context is data transfer between two enterprise applications, it reveals its second form -- that of a data carrier.
In this tutorial, I will discuss how to utilize the Java Mail APIs in the right way so that the application can be primed to reveal its second form. In other words I will be discussing the transport and message APIs of the core API. The first section will complete the detailing of the remaining classes of the core of Java Mail. The next section, and the ones after it, will then put the idea of using email as a data carrier using Java Mail into action by extending the functionality of the MailClient class developed in the first part. That’s the agenda for this discussion.
Next: Java Mail Core Classes Continued >>
More Java Articles
More By A.P.Rajshekhar