[jboss-dev-forums] [JBoss AS 7 Development] - Re: Disabling application deployment in JBoss AS 7
Brian Stansberry
do-not-reply at jboss.com
Thu Apr 18 18:32:21 EDT 2013
Brian Stansberry [https://community.jboss.org/people/brian.stansberry] created the discussion
"Re: Disabling application deployment in JBoss AS 7"
To view the discussion, visit: https://community.jboss.org/message/809153#809153
--------------------------------------------------------------
Not via the deployment scanner, no.
You can upload a deployment to the server via the CLI but not have it deployed though:
> [standalone at localhost:9999 /] deploy ~/tmp/helloworld.war --disabled
> [standalone at localhost:9999 /] cd deployment=helloworld.war
> [standalone at localhost:9999 deployment=helloworld.war] ls -l
> ATTRIBUTE VALUE TYPE
> content [{"hash" => bytes { 0x6f, 0xcd, 0x9e, 0xae, 0x34, 0x3e, 0xd6, 0xd5, 0xaa, 0x9f, 0xff, 0xa8, 0x30, 0x12, 0xd1, 0x55, 0xb1, 0xef, 0x91, 0x1c }}] LIST
> enabled false BOOLEAN
> name helloworld.war STRING
> persistent true BOOLEAN
> runtime-name helloworld.war STRING
> status STOPPED STRING
>
>
> CHILD MIN-OCCURS MAX-OCCURS
> subdeployment n/a n/a
> subsystem n/a n/a
Note the "enabled" attribute.
Later you could use the CLI to trigger the deployment:
> [standalone at localhost:9999 deployment=helloworld.war] deploy --name=helloworld.war
> [standalone at localhost:9999 deployment=helloworld.war] ls -l
> ATTRIBUTE VALUE TYPE
> content [{"hash" => bytes { 0x6f, 0xcd, 0x9e, 0xae, 0x34, 0x3e, 0xd6, 0xd5, 0xaa, 0x9f, 0xff, 0xa8, 0x30, 0x12, 0xd1, 0x55, 0xb1, 0xef, 0x91, 0x1c }}] LIST
> enabled true BOOLEAN
> name helloworld.war STRING
> persistent true BOOLEAN
> runtime-name helloworld.war STRING
> status OK STRING
>
>
> CHILD MIN-OCCURS MAX-OCCURS
> subdeployment n/a n/a
> subsystem n/a n/a
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/809153#809153]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20130418/19465dbd/attachment-0001.html
More information about the jboss-dev-forums
mailing list