0

Unlike spring-boot, JakartaEE applications usually organizes application code apart from server code.

Java web projects used to be packaged into war or ear files and the server was managed separately.

I am trying to find a project layout for JakartaEE projects that comply with separation but behaves more like a springboot app and, in order to get it, i am exploring the embedded app servers approach.

So far, i am thinking on a multiproject layout, one with regular JEE style structure and another with an embedded app server consuming the first one. Gradle and maven both supports it:

For the embedded app server i found these samples so far:

A good article on this topic follows:

For the project layout i don't have much ideas yet, i am only sure about the separation of the two modules. A few questions so far:

  • should the embedded final jar file be an uber jar?
  • should the war/ear artifact be repackaged?
  • why this approach isn't more popular, given the clear success of sprin boot?
Sombriks
  • 3,370
  • 4
  • 34
  • 54
  • 1
    https://microprofile.io – BalusC Jan 30 '23 at 17:44
  • @BalusC microprofile looks promising, but i am missing some specs like jpa on it. Am i missing something? thanks a lot for this first hint – Sombriks Jan 30 '23 at 20:14
  • 1
    JPA is optional (like as it is in Spring world). https://hibernate.org/reactive is another option. – BalusC Jan 31 '23 at 16:11
  • 1
    For a spring-boot-like approach with JEE APIs and Microprofile, you can try Quarkus, Helidon (maybe others I am not aware of). Maybe WildFly Galleon would be interesting (but I have never used it) if you want to go for a more traditional appserver setup. – Nikos Paraskevopoulos Feb 01 '23 at 16:10
  • @NikosParaskevopoulos thanks for the links, they will help me a lot on clarifying these thoughts. – Sombriks Feb 01 '23 at 17:16

0 Answers0