[JBoss] Is there a way to check before adding module to JBoss using CLI?

Discussão em 'StackOverflow' iniciado por Stack, Julho 28, 2021.

  1. Stack

    Stack Membro Participativo

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

    e.g.

    module add --name=org.mysql --resources=/home/abc/drivers/mysql/MySQL5.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


    Reason is trying to add a module that already exists causes an error.

    Continue reading...

Compartilhe esta Página