Skip to content

Instantly share code, notes, and snippets.

@stephan-mueller
Created September 28, 2015 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephan-mueller/d9434e61c7459c270e21 to your computer and use it in GitHub Desktop.
Save stephan-mueller/d9434e61c7459c270e21 to your computer and use it in GitHub Desktop.
Cdi managed service
@ApplicationScoped
public class MailService {
private static final Logger LOG = LoggerFactory.getLogger(MailService.class);
public void sendMail(String subject, String body, String... recipients) {
LOG.info("sendMail: \n" + "subject: \n" + subject + "body: \n" + body);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment