GlassFish
I have been playing about with a Java app server called GlassFish. Here are some info links that cleared up issues I was having:
Admin User Authentication:
CLI Administration
Admin Channel Authentication Support
Changing the Master Password
Using LDAP
Sticky Sessions:
GlassFish has its own load balancing, but if you use a hardware LB then this is helpful.
Instance labeling in JSESSIONID
add the following JVM parameter to your cluster config:
-DjvmRoute=${com.sun.aas.hostName}This will produce a JSESSIONID with “.your host name” at the end. This can be parsed off by the load balancer to select the appropriate server.
GZIP Compression:
Enabling Gzip compression in GlassFish
add these properties to the http-listener:
compression=on
compressableMimeType=text/html,text/xml,text/css,text/javascript,text/json
JSP include, Sub-page Caching:
OS Cache
Some other notes:
Save some typing, add defaults to $INSTALLDIR/config/asadminenv.conf
AS_ADMIN_SECURE=true
AS_ADMIN_DOMAINDIR=your domain dir
AS_ADMIN_AGENTDIR=your agent dir
Put domain wide props in the domaindir/lib/classes and your domain wide jars into lib/ext.
Comments are closed.