Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Web Application with jsf page and ejbs in different archive?  RSS feed

 
daniele licitra
Ranch Hand
Posts: 81
Java Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi to all.
Im my application I need:
- a main web application MainApp with some default function (login, persistence, menus, basic task, ecc...)
- some modules with jsf pages and EJB with specific function (phonebook, invoices, ecc...).
- clicking on a voice in the menu, will open a page from a different archive (maybe using a jsf template from MainApp).
- a module can use object from other modules.
I would use EJBs and JSF pages, also with some javascript.

I want to deploy the application and the modules separately on the server.
If the module modA requires maintenance (bug, new function ecc...) i will put the new module modA on the server, open MainApp and use it without do nothing.
If the module modB use modA, he must work with no changes or redeploy

So the web pages related to modA will come with the module: updating the modA must not requires to update also the main application. Also a javascript file for specific function must be loaded from ModA.

Is it possible?
What is the best way to manage a WebApp with web pages in different archives?
What kind of archives can I use ?

 
daniele licitra
Ranch Hand
Posts: 81
Java Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Solved.

I did it in this way:
- suppose the main app war is MainWebApp.war;
- in WebPages.jar, under META-INF/resources i create the web pages, for example modA.xhtml;
- deploy MainWebApp.war
- after the app is enabled, disable it;
- copy the WebPages.jar in the dir where the MainWebApp war is decompressed, under the lib dir, for example MainWebApp/WEB-INF/lib
- re-enable the application;

you need only to recall the page by his path;
If you didn't use folder, like in the example, just use
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!