Version 2
    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-embeddedorg.jboss.bootstrap:jboss-bootstrap-api-embedded
    impl-embeddedorg.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);