[jboss-dev-forums] [JBoss AS 7 Development] - Deploying an application from an external deployment location

Brian Stansberry do-not-reply at jboss.com
Wed Mar 13 16:59:54 EDT 2013


Brian Stansberry [https://community.jboss.org/people/brian.stansberry] commented on the document

"Deploying an application from an external deployment location"

To view all comments on this document, visit: https://community.jboss.org/docs/DOC-16939#comment-11738

--------------------------------------------------
You can do it via a low-level CLI command (i.e. not using the standard high level CLI 'deploy' command.)

The syntax is a bit tricky, so pay attention to the [] and {}:

> [standalone at localhost:9999 /] /deployment=helloworld.war:add(content=[{url=file:///home/bstansberry/tmp/helloworld.war}],enabled=true)
> {"outcome" => "success"}

In the example above I used a file URL, which is kind of silly, but it's just an example. The value for the 'url' param can be any string "urlSpec" where, inside the server, the following call would work:

> InputStream in = new URL(urlSpec).openStream();

For example, using HTTP:

> [standalone at localhost:9999 /] /deployment=helloworld.war:add(content=[{url=http://myserver.com/deployments/helloworld.war}],enabled=true)
--------------------------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20130313/0b91f3e0/attachment.html 


More information about the jboss-dev-forums mailing list