Glassfish asadmin commands
asadmin start-domain
asadmin stop-domain
asadmin deploy path/to/hello1.war
asadmin list-applications
asadmin undeploy hello1
asadmin list-log-levels server
asadmin generate-jvm-report
asadmin list-jvm-options
asadmin get server-config.network-config.network-listeners.network-listener.http-listener-1.port
See also: Subcommands for the asadmin Utility - Oracle GlassFish Server 3.1 Administration Guide - http://docs.oracle.com/cd/E18930_01/html/821-2416/gcode.html
To kill Glassfish
jps | grep ASMain | awk '{print $1}' | xargs kill -9
Increasing the Glassfish logging level
murphy:~ pdurbin$ cd /Applications/NetBeans/glassfish-3.1.2.2/glassfish
murphy:glassfish pdurbin$ cp -a domains/domain1/config/logging.properties domains/domain1/config/logging.properties.orig
murphy:glassfish pdurbin$
murphy:glassfish pdurbin$ vim domains/domain1/config/logging.properties
murphy:glassfish pdurbin$ diff domains/domain1/config/logging.properties.orig domains/domain1/config/logging.properties
66c66
< com.sun.enterprise.server.logging.GFFileHandler.level=INFO
---
> com.sun.enterprise.server.logging.GFFileHandler.level=FINE
murphy:glassfish pdurbin$
Will affect (for example):
private static final Logger logger = Logger.getLogger(MyClass.class);
...
logger.fine("Did something");
See also:
- Configuring the Logging Service - Oracle GlassFish Server 3.1 Administration Guide - http://docs.oracle.com/cd/E18930_01/html/821-2416/gklmn.html
- http://stackoverflow.com/questions/80692/java-logger-that-automatically-determines-callers-class-name/104851#104851
Java EE 6 Standards Support
The GlassFish release notes tell you which version of Java Server Facets, Expression Language (EL), etc. you have:
http://docs.oracle.com/cd/E26576_01/doc.312/e24939/release-notes.htm#gipkz