I've a Maven EAR with some modules that need to share the session context.
So when I run it on Liberty Server (on Eclipse) I've to add in the "Server Configuration" the application extension and set the shared-session-context flag to true.
I guess how can I set it by default, maybe in the pom.xml? I can find any information about it.
Thanks.
The recommended practice is to have in your source repo
server.xmlthat is required for your application, and have all the required settings there. Then your maven build creates also Liberty server with your config and deploys app there.If you dont want to store that in the server config file, you can add
ibm-application-ext.xmlfile to yourEAR/META-INFfolder, with shared session enabled like this:ibm-application-ext.xmlcontents: