Well, modifying the GlassFish code is a possibility, as it is open
source. The autodeployer is in the deployment/autodeploy project within
the GlassFish source code. Look for the "DAS_TARGET" constant and how it
is used. There's even a comment there that says "// XXX should this
also be configurable ?"
Another possibility is to write a separate daemon process (could be a
shell script) that watches for a file to show up in a directory, and
then runs "asadmin deploy --target clustername" on the file. This is
essentially what the auto deployer does within the GlassFish server.
Tom