users@glassfish.java.net

How do I embed Glassfish v3?

From: <glassfish_at_javadesktop.org>
Date: Wed, 28 Jan 2009 08:33:35 PST

What is the minimal set of jar files that I need to do something like this?

http://weblogs.java.net/blog/kohsuke/archive/2008/04/glassfish_v3_ju.html

GlassFish glassfish = new GlassFish();
// create smallest possible HTTP set up listening on port 8080
glassfish.minimallyConfigure(8080);

GFApplication app = glassfish.deploy(new File("path/to/simple.war"));

...

app.undeploy();
glassfish.stop();

Thanks!
[Message sent by forum member 'massimoh' (massimoh)]

http://forums.java.net/jive/thread.jspa?messageID=328696