0 Replies Latest reply on Mar 26, 2014 9:59 AM by djg2002

    JBoss CLI: check before add module

    djg2002 Newbie

      (posted on stackoverflow last week but not reply)

       

      Is there a way to check a module hasn't already been added before calling adding using JBoss CLI?

       

      e.g.

       

      module add --name=org.mysql --resources=/home/my_username/drivers/mysql/some_jdbc_driver.jar



      # Want to do similar check for module add
      if (outcome != success) of /subsystem=datasources/jdbc-driver=org.mysql:read-resource
        
      # Add it...
      end-if

       

      Also, where can I view installed modules in the console and/or CLI?

       

      Thanks