intellij-ideaejbjakarta-mail

Add EJB component to IntelliJ Idea


I am trying to follow the JavaMail API http://www.oracle.com/webfolder/technetwork/tutorials/obe/java/javamail/javamail.html. At the beginning, it asks me to add EJB Component.

I also have maven spring on my project.

How do I add it to my project?


Solution

  • As described in the documentation, add an EJB facet to your module:

    1. Open the Module Settings dialog box.
    2. With the desired Java module selected, click add.png on the toolbar, and select EJB from the list of facets available for this module.

    As a result, a new EJB facet is created. Its settings are shown on the EJB Facet page in the right-hand part of the dialog.