For some monitoring purposes I need to start Glassfish domain with custom java agent attached. If I start domain directly with command:
java -cp /path/to/glassfish3/glassfish/modules/glassfish.jar com.sun.enterprise.glassfish.bootstrap.ASMain bla-bla-bla -javaagent:/path/to/agent.jar
it works as expected.
But how to do the same with domain, which starts with asadmin? I've tried asadmin create-jvm-options and asadmin create-system-properties - it didn't help me. Any ideas?