Scope
The AS Embedded component of the Boostrap project extends the traditional AS implementation, adding support for declarative deployment/undeployment.
Modules
Module Name | Maven2 ID |
---|---|
api-embedded | org.jboss.bootstrap:jboss-bootstrap-api-embedded |
impl-embedded | org.jboss.bootstrap:jboss-bootstrap-impl-embedded |
Sample Code
Deploying a ShrinkWrap Archive into a Server, Testing, Undeploying
// Create and start a server JBossASEmbeddedServer server = JBossASEmbeddedServerFactory.createServer(); server.start(); // Make an Archive via ShrinkWrap JavaArchive archive = JavaArchiveFactory.create("name.jar").addClasses(Bean.class, BusinessInterface.class); // Deploy server.deploy(archive); // Do some testing here ... // Undeploy server.undeploy(archive);
Comments