0 Replies Latest reply on Mar 2, 2016 7:25 AM by kasım göksu

    Wildfly SecurityClient login problem

    kasım göksu Newbie

      Hi,

       

      On Jboss6 we can use below code for end of day Jobs. Now this code can run on wildfly but login user seems 'anonymous'.

      Thanks

       

      Sample:

      ...
      login("_endofday","_endofday");
      //start transactions
      ...
      
        public static Object login(String username, String password) {
          try {
            SecurityClient securityClient = SecurityClientFactory.getSecurityClient();
            securityClient.setSimple(username, password);
            securityClient.login();
            return securityClient;
          } catch (Exception ex) {
            throw new RuntimeException(ex);
          }
      
      
      
        }