7 Replies Latest reply on Jun 14, 2016 6:27 PM by Tomaz Cerar

    How to detect Wildfly version

    Stefan Lindner Newbie

      Is it possible to detect wildfly's version via java in my application? Something like


      Class.forName("org.jboss.as.server.Main"); // laden forcieren
      Package p = Package.getPackage("org.jboss.as.server");


      jbossMajorVersion = Integer.parseInt(p.getImplementationVersion().split("\\.")[0]);

      jbossMinorVersion = Integer.parseInt(p.getImplementationVersion().split("\\.")[1]);

      as it was possible in JBoss 7?