users@glassfish.java.net

Re: start/stop-instance does not work when nodedir is not ...

From: <forums_at_java.net>
Date: Fri, 12 Jul 2013 11:11:03 -0500 (CDT)

Looking into GlassFish source code, I have found the followng snippet, that I
think may help me (in InstanceDirs.java). Comment says that one can define
system property com.sun.aas.agentRoot to specify default node dir location:
/** * Return the default value for nodeDirRoot, first checking if
com.sun.aas.agentRoot * was specified in asenv.conf and returning this value.
If not specified, * then the default value is the
{GlassFish_Install_Root}/nodes. * nodeDirRoot is the parent directory of the
node(s). * * @return String default nodeDirRoot - parent directory of node(s)
* @throws CommandException if the GlassFish install root is not found */
private String getNodeDirRootDefault() throws IOException { String
nodeDirDefault = System.getProperty(
SystemPropertyConstants.AGENT_ROOT_PROPERTY); if
(StringUtils.ok(nodeDirDefault)) return nodeDirDefault; String
installRootPath = getInstallRootPath(); return installRootPath + "/" +
"nodes"; } asenv.conf contains some shell variables definitions:
AS_IMQ_LIB="../../mq/lib" AS_IMQ_BIN="../../mq/bin" AS_CONFIG="../config"
AS_INSTALL=".." AS_DEF_DOMAINS_PATH="../domains" AS_DEF_NODES_PATH="../nodes"
AS_DERBY_INSTALL="../../javadb" How do I specify com.sun.aas.agentRoot in
asenv.conf?

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