Click OK.
The IDE creates two methods:
- getSession. This method looks up the mail resource and creates
a mail session.
- sendMail. This method constructs and sends the e-mail.
The IDE also registers the resource reference in your module's general
deployment descriptor.