kedar wrote: > We have state-of-the-art support for SMF integration > for GlassFish. (cf. > http://blogs.sun.com/bloggerkedar/entry/app_server_and_solaris_10) > > One of the issues I am seeing is currently, I make sure > that SMF is available by seeing that the OS is Solaris 10. > (In Java, we do System.getProperty("os.name")).
System.getProperty("os.version") returns "5.11" The trick is that you can't do a direct mathematical conditional on it because 5.11 < 5.2. If you want to compare mathematically (recommended), then separate the minor version number. -- richard