I was working with EJB and dealing with four simple Maven projects, a web project, a desktop (JSE Swing), a project (JSE) that had only the interface and lastly a web project (which I called Core ) that implemented this penultimate project that owns the interface.
The business rule at first was quite simple a Hello Brother that printed together that message the name of the user that was received by parameter. This was a very simple program, that even a child, with a smile on his face could understand.
I was using Glassfish application server. The "Core" project that contained the implementation of the business rule was the first to be deployed and the other two consumed this service through a remote interface.
So far so good I have implanted and tested them all and they worked! Swing, the web all cool!
Moral of the story:
Although simple did some work to build it, ie had to manually create one by one, I wrote a single business rule, which saved a considerable time, thanks to EJB. My teacher a really nice guy created the same project using Maven, using only a few command lines via the terminal. I have no idea what he did! I would like an explanation of how you can do this !! Writing only the business rule and the terminal with Maven !!