1 Reply Latest reply on Jan 31, 2010 8:53 PM by alrubinger

    Integration with Jetty

    alrubinger

      https://jira.jboss.org/jira/browse/SHRINKWRAP-125

       

      I hijacked some prototyping code I did awhile back and ported it into an extension component allowing for Jetty integration.  Client code looks similar to:

       

      import org.mortbay.jetty.Server;
      import org.mortbay.jetty.servlet.Context;
      
      // ...
      
      // Create the Jetty Server
      Server server = new Server(12345);
      
      // Create the archive
      final WebArchive archive = Archives.create(NAME_WAR, WebArchive.class);
      archive.add(stuff); // Assume we do this
      log.info(archive.toString(true));
      
      // Deploy into Jetty
      final Context context = archive.as(ShrinkWrapWebAppContext.class);
      server.addHandler(context);
      
      // Start the Server
      server.start();
      

       

      Arquillian container time?

       

      S,

      ALR