Running asadmin commands is not that big a deal. But if you don't want to do it and want to do
a more "direct" Java API based programming, kindly look at AMX that is a supported and public
API for GlassFish management.
[Message sent by forum member 'km' (km)]
http://forums.java.net/jive/thread.jspa?messageID=283678