0 Replies Latest reply on Apr 20, 2010 10:22 AM by odfurtado02

    Running 2 profiles

    odfurtado02

      Greetings all,

       

      I am with problem to run 2 jboss's instance using 2 profiles.

      Basically, theses profiles have the same configuration, but the differences are the datasource and binding.xml configuration.

      Follow bellow the command to execute each instance

       

      Profile 1: run.bat -b 0.0.0.0

      Profile 2: run.bat -b 0.0.0.0 -c homologation -Djboss.service.binding.set=homologation

       

      The profile 1 will execute the "default" profile, and profile 2 will execute the "homologation" profile

      The binding.xml in homologation profile contains this configuration:

       

      <bean name="Ports01Bindings">
            <constructor>
               <parameter> homologation </parameter>
               <parameter>${jboss.bind.address}</parameter>
               <parameter>100</parameter>
               <parameter><null/></parameter>
            </constructor>
         </bean>

       

      All instances run without error, and each profile contains the same EAR file, and this EAR has a configuration to use JTA to make login in my application.

      But when i make login in profile 1, the profile 2 lost your login session, and if make the login in profile 2, the profile 1 lost your session. And i can't stay logged in 2 application at same time.

      How it's possible?

       

      And when I stop 1 instance, the hibernate cache manager not run properly in other instance, and i need stop all instance and start again to run right.

       

      Any ideia to help me?

      In my application I use JPA, EJB, JTA and JBoss AS 5.0.1 GA

       

      Thanks in advanced.