[jboss-dev-forums] [JBoss AS7 Development] - AS 7 Deployment APIs

Jesper Pedersen do-not-reply at jboss.com
Tue Aug 31 08:49:10 EDT 2010


Jesper Pedersen [http://community.jboss.org/people/jesper.pedersen] replied to the discussion

"AS 7 Deployment APIs"

To view the discussion, visit: http://community.jboss.org/message/559763#559763

--------------------------------------------------------------
StandaloneDeploymentManager deploymentManager = magicallyGetDeploymentManager();
 
Repository ironJacamarRepo = new MavenRepository();
ironJacamarRepo.addServer("https://repository.jboss.org/nexus/content/groups/public");
ironJacamarRepo.setGroupId("org.jboss.ironjacamar");
 
 
// Choose Maven artifact; others include FileArtifact, URLArtifact, IvyArtifact
 
 
 
 
 
Artifact deployment = new MavenArtifact("jdbc-local", "1.0.0.Beta2", ironJacamarRepo);
 
 
DeploymentPlan plan = deploymentManager.newDeploymentPlan()
 
                                       .withGlobalRollback()
 
                                       .add(deployment).andDeploy();
 


Something like that is quite useful.

Maybe we could even expose the functionality in the domain.xml file:

<deployment name="jdbc-local" uid="xxx" type="maven">
  <server>
https://repository.jboss.org/nexus/content/groups/public</server>
  <group-id>org.jboss.ironjacamar</group-id>
  <version>1.0.0.Beta2</version>
</deployment>







--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/559763#559763]

Start a new discussion in JBoss AS7 Development at Community
[http://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/20100831/a6d09136/attachment.html 


More information about the jboss-dev-forums mailing list