• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

How to build a core of multi-modules java EE app (wtih maven) ?

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello !!!

My goal is to be able to create a modular application where there will be a core (web page) to which will be attached the different modules (module maven war) so that I can access it through this heart. In Java, I followed a tutorial on modularity in  Java that allowed me to make a similar app. All I had to do was use a class loader to find the URLs of the JAR files in a folder and add them, then upload them to the project. And so I could determine the number of modules present and display them in a view. In Java EE, since we use Wars archives that could contain pages, servlets, I do not know how to attach them to a web page. My ideal would be to have a core like that of the image where all the applications that can be accessed would be Wars modules developed independently of the core. Can I have pages, courses, or a tutorial where I learn to do something similar? That is to say basically create a web page (the kernel) to which I can attach modules (which are app jEE). Thank you in advance.

apps.png
[Thumbnail for apps.png]
 
Sheriff
Posts: 21759
102
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like a fancy version of Tomcat's manager application.

How you can solve this depends on your application container. For Tomcat (but that's not EE), you can check how the manager application works. For JBoss or WildFly, you could use its CLI (https://javavolker.wordpress.com/2014/03/20/list-all-deployed-artifacts-in-wildfly-8/), or perhaps do the same through code, depending on what's available; the CLI is available through a JAR file as well. For other application containers you will have to find out if you can hook into their internals.
 
Franck Might
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks you very much for your reply. I will doing the researchs to JBoss Widly and JBoss-cli.sh.
 
Rob Spoor
Sheriff
Posts: 21759
102
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!