atom feed11 messages in net.java.dev.glassfish.adminHow do you know if you are a DAS?
FromSent OnAttachments
Tom MuellerApr 21, 2011 12:56 pm 
Hong ZhangApr 21, 2011 1:08 pm 
Tim QuinnApr 21, 2011 1:19 pm 
Tom MuellerApr 21, 2011 2:13 pm 
Tom MuellerApr 21, 2011 2:27 pm 
Tim QuinnApr 21, 2011 2:48 pm 
Tom MuellerApr 21, 2011 3:12 pm 
Bill ShannonApr 21, 2011 4:32 pm 
Tom MuellerApr 22, 2011 7:34 am 
Bobby BissettApr 22, 2011 9:24 am 
Byron NevinsApr 22, 2011 10:35 am.gif, .gif
Subject:How do you know if you are a DAS?
From:Tom Mueller (tom.@oracle.com)
Date:Apr 21, 2011 12:56:57 pm
List:net.java.dev.glassfish.admin

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 INSTANCE.

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?

Thanks. Tom