1 Reply Latest reply on Jan 18, 2017 1:33 AM by Bindu Mahapatra

    How at the same time i can share session between  ears and included wars.

    Bindu Mahapatra Newbie

      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"?>

      <jboss umlns="urn:jboss:1.0">

        <shared-session-config xmlns="urn:jboss:shared-session-config:1.0">

        <session-config>

        <cookie-config>

        <path>/</path>

        </cookie-config>

        </session-config>

        </shared-session-config>

      </jboss>

       

      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

      <jboss-deployment-dependencies xmlns="urn:jboss:deployment-dependencies:1.0">

        <dependency name="xyz.ear" />

        </jboss-deployment-dependencies>

       

      Which didn't work.

       

      so structure is

      abc.ear

           cde.war

           fgh.war

      xyz.ear

           mno.war

           pqr.war

       

      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.