I am working on a large scale system using PrimeFaces 5.0, Java EE 7, Maven 3.0.5, Netbeans 7.4 & GlassFish 4.0
I want to implement it as (multiple WARs , multiple EJBs , one EAR). Multiple wars could have common files like (JS, CSS, XHTML, Backbeans & Converters) i have achieved this using jar which contains this resources. different WAR files, shared resources
I need a session-scoped bean to be shared between different wars, I found this but i found it more than what i need.
http://docs.oracle.com/cd/E18686_01/coh.37/e18690/glassfish.htm#CEGBDHJB
so my questions is:
- Is using a jar is the right approach to share what i want ??
- where do i put jars like primefaces or omnifaces in the project where they use the same class loader ??
- How can i share session-scoped between different wars ??