dev@glassfish.java.net

Re: What JDK installation am I using?

From: Lloyd L Chambers <Lloyd.Chambers_at_Sun.COM>
Date: Thu, 24 Aug 2006 12:29:02 -0700

Vince,

JSR 77 defines a JVM version:

String serverName = ...;
final String jvmVersion = domainRoot.getJ2EEDomain().getJ2EEServerMap
().get( serverName ).getJVM().getVersion();

Lloyd


On Aug 22, 2006, at 4:43 PM, vince kraemer wrote:

> Is there a way to determine which JDK installation the server is
> using?
>
> I know this is kind of knowable by parsing AS_JAVA...
>
> Is there an AMX method that exposes this to clients?
>
> Or even the 'java -version' info?
>
> Use Case:
>
> The NetBeans IDE may be running against a JDK 6 JVM. The server
> may be running against that JVM or it may be executing against a
> J2SE 5 JVM. When the server is running against a mismatched JVM
> revision, NetBeans wants to prevent Bad Things from happening.
> This api would be instrumental in providing that level of service
> to our users.
>
> vbk
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>