On 4/21/2011 3:09 PM, Hong Zhang wrote:
We have been using ServerEnvironment.isDas API, the underlying
implementation is checking the server type.
Thanks. Yes, this is the API for reading #2 below.
On 4/21/2011 3:57 PM, Tom Mueller wrote:
I've been looking into how a DAS determines that it's a DAS, and I'm
seeing some different approaches:
1. Calling Server.isDas() - this method looks at the instance name;
if it's "server" then return true.
2. Using the "-type" argument that is passed when the JVM is
launched. start-domain passes in DAS, start-local-instance passes in
3. Calling Server.getName() and doing the comparison to "server"
directly, rather than calling isDas().
Do you know of other ways that code determines whether it is running
on the DAS?
I'd like to move in the direction of consolidating this behavior, so
that we have exactly one way of determining the role that the server
is filling. Thoughts?