Search code examples
jboss6.xcommand-line-interface

Enable/disable deployed components in jboss 6 using cli


Is there a way to disable/enable deployed components using the jboss cli for jboss 6.2. I need to keep the components deployed on the server but disabled until needed.

EDIT: Found a way to deploy modules as disabled adding the --disabled option in the cli file on that component.

Still looking for a way to enable modules through the cli.

EDIT 2: Is there a way to disable a already deployed component without first un-deploying? --force can not be combined with --disabled.


Solution

  • First of all, do you mean JBoss EAP 6.x by jboss6? I don't know anything about CLI in JBoss 6. I didn't find a way to actively disable or enable deployments via CLI, but at least you can enable a disabled deployment with

    deploy --name={your_deployment_name.ear/war}
    

    See also https://community.jboss.org/thread/223931