users@glassfish.java.net

Re: Glassfish under NFS...

From: <forums_at_java.net>
Date: Tue, 11 Oct 2011 13:36:10 -0500 (CDT)

 JVM Options are stored in glassfish/domains/domain1/config/domain.xml

These are steps for the DAS.  Nodeagent should be similiar, unless their
domain.xml is propgated down from the DAS.

You add in remove jvm options via the asadmin in glassfish/bin

So what you would want to do is is something like this while domain is
running:

bin/asadmin create-jvm-options -Dglassfish-node=`uname -n`

Stop the domain

edit glassfish/domains/domain1/config/logging.properties

change path/to/server.log to read /path/to/log/server_${glassfish.node}.log

Start the Domain.

This varible should now work in your log4j.xml of your application as well.

 


--
[Message sent by forum member 'datatribe']
View Post: http://forums.java.net/node/690508