0 Replies Latest reply on Sep 26, 2017 8:11 AM by Happy Singh

    SessionContext in Wildfly 10 Domain mode

    Happy Singh Newbie

      In Wildfly 10 standalone mode I am getting SessionContext object using below snippet

      InitialContext context = new InitialContext();

      UserTransaction userTrans = null;

      userTrans = (UserTransaction) m_Context.lookup("java:jboss/UserTransaction");

      userTrans.setTransactionTimeout(600000);

       

      then in SLSB I use

      @Resource

      protected SessionContext sessionontext;

       

      But same code when executed in DOMAIN mode it fails to use SessionContext as its value is null