Chapter 24. The Resource Adapter Example
The mailconnector
example shows how you can use a resource adapter, a message-driven bean (MDB), and JavaServer Faces technology to create an application that can send email messages and browse for messages. This example uses a sample implementation of the JavaMail API called mock-javamail
. The resource adapter is deployed separately, while the MDB and the web application are packaged in an EAR file.
The following topics are addressed here:
• “The Resource Adapter” on page 463
• “The Message-Driven Bean” on page 464
• “The Web Application” on page 464
• “Running the mailconnector
Example” on page 465
The Resource Adapter
The mailconnector
resource adapter enables the MDB to receive email messages that ...
Get The Java EE 6 Tutorial: Advanced Topics, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.