Oracle8i Enterprise JavaBeans Developer's Guide and Reference Release 3 (8.1.7) Part Number A83725-01 |
|
You can retrieve the version of JServer that is installed in the database through the pre-published oracle.aurora.AuroraServices.Version
object, which is published as "/etc/version
" in the JNDI namespace. The Version
object contains the getVersion
method, which returns a string that contains the version, such as "8.1.7". You can retrieve the Version
object by providing "/etc/version
" within the JNDI lookup. The following example retrieves the version number:
Version version = (Version)ic.lookup(serviceURL + "/etc/version"); System.out.println("The server version is : " + version.getVersion());
|
Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|