From: <glassfish_at_javadesktop.org>
Date: Mon, 10 Mar 2008 07:37:59 PST
You should start by looking at jsr-88. That is the public, programmatic interface for doing deployment onto GF V2. The DeploymentManager is the object that handles pushing bits to a remote host... (though it is a bit more complicated than that).