I have two ear's and war's inside each ear.Currently using jboss-all.xml to share session between war's inside ear's, but at same time not able to share session between ears.
Currently jboss-all.xml have
<?xml version="1.0" encoding="UTF-8"?>
which is perfectly working for sharing sessions in between wars.
But the same session is not getting shared between ears.
so i tried adding below in same jboss-all.xml
<dependency name="xyz.ear" />
Which didn't work.
so structure is
Both ear deployed in same application server.
currently i am copying jboss-all.xml file inside abc.ear\META-INF\
How i can share same session in xyz.ear as well.
Wildfly 8.1 onwards SSO is being supported by server, so no need of jboss-all.xml file at all.
enable SSO for all contexts in a host, add <single-sign-on/> within the <host>...</host> element of the undertow subsystem configuration. Same context will be shared among wars, and among ears as well.