-1

I would like to create JSF and EJB modules but I have no clue how to connect them together or how to create EAR. At the moment I know how to create JSF application but what should I do next? Create EJB module with DAO and enities? Or create DAO and entities in JSF application?

Thanks for help

Adam Adamski
  • 737
  • 3
  • 11
  • 20

1 Answers1

0

You should start reading the help manual: https://www.jetbrains.com/help/idea/developing-a-java-ee-application.html

Rafael Guillen
  • 1,343
  • 10
  • 25
  • Thanks for help but still I don't know how to do that in correct way. Should I create an empty project only checking Web Application? And later In tab File, New, Module add module with JSF and second module with EJB? – Adam Adamski Dec 08 '17 at 19:02
  • I am not sure If I create for example Empty project and there I add two modules - JSF and EJB It will create EAR? – Adam Adamski Dec 08 '17 at 19:07
  • Should I create and empty project or Java EE Application Project ? And then should I add EJB and JSF modules? – Adam Adamski Dec 08 '17 at 19:18
  • There is no global "correct way", your "correct way" depends on your requirements. Maybe for you is better just a war project with ejb and jsf mixed (if using javaee 7), maybe is better an ear project with ejb submodule and jsf submodule. You need to figure it out. – Rafael Guillen Dec 08 '17 at 19:22
  • I want to recreate way of building app from tutorial. But it was in in eclipse. There were two projects - ejb and jsf and using some tool where you can add modules they created ear. – Adam Adamski Dec 08 '17 at 19:29
  • That's the right question, folow the second option: an ear project with ejb and jsf submodules. – Rafael Guillen Dec 08 '17 at 19:34
  • Could you check If I did it in correct way? In question I have attached screens of that process. – Adam Adamski Dec 08 '17 at 20:28
  • Yes that is "your correct" way... – Rafael Guillen Dec 08 '17 at 21:10