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/conten...;
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&...]