|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.arcgis.interop.Jvm
The JVM class is used to register the JVM id. This is a logical registration within the J-Integra runtime. Registering the JVM id enables access to Java objects from DCOM.
The regjvm (or regjvmcmd) utility must also be used to register the JVM id with COM. It achieves this by creating the required registry entries for COM to work correctly.
Clients wishing to connect to an instance of this JVM must use the id for the JVM as passed to the register method.
| Field Summary |
| Fields inherited from interface com.esri.arcgis.interop.IJintegraJvm2 |
DISPID_1_NAME, DISPID_2_NAME, IID, IID652f3880_2c14_11d4_b75f_204c4f4f5020, xxDummy |
| Method Summary | |
java.lang.Object |
get(java.lang.String className)
For internal use only - never call this method. |
static int |
getDllHandle()
For internal use only - never call this method. |
static java.lang.String |
getMoniker()
For internal use only - never call this method. |
IJintegraJvm2 |
getRef(java.lang.String jvmId,
java.lang.String dllPath,
java.lang.String versionStr,
int dllHandle)
For internal use only - never call this method. |
static void |
init()
For internal use only - never call this method. |
static void |
init(int dcomPort)
For internal use only - never call this method. |
java.lang.Object |
instanciate(java.lang.String javaClass)
For internal use only - never call this method. |
java.lang.Object |
newInstance(java.lang.String jvmId,
java.lang.String javaClass)
For internal use only - never call this method. |
static void |
register(java.lang.String id)
Registers a JVM id with the J-Integra runtime. |
static void |
register(java.lang.String id,
Instanciator instanciator)
Registers a JVM id with the J-Integra runtime. |
static void |
register(java.lang.String id,
Instanciator instanciator,
int dcomPort)
Registers a JVM id with the J-Integra runtime. |
static void |
register(java.lang.String id,
int dcomPort)
Registers a JVM id with the J-Integra runtime. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public java.lang.Object instanciate(java.lang.String javaClass)
throws AutomationException
instanciate in interface InstanciatorjavaClass - The name of the Java class to be instanciated
AutomationException - If any other exception occurs.public static int getDllHandle()
public IJintegraJvm2 getRef(java.lang.String jvmId,
java.lang.String dllPath,
java.lang.String versionStr,
int dllHandle)
getRef in interface IJintegraJvm2jvmId - The jvmId (in)dllPath - The dllPath (in)versionStr - The versionStr (in)dllHandle - The dllHandle (in)
public java.lang.Object get(java.lang.String className)
throws java.lang.Exception
java.lang.Exception
public java.lang.Object newInstance(java.lang.String jvmId,
java.lang.String javaClass)
throws AutomationException
newInstance in interface IJintegraJvm2jvmId - The jvmId (in)javaClass - The javaClass (in)
AutomationException - If the remote server throws an exception.public static void init()
public static void init(int dcomPort)
public static java.lang.String getMoniker()
throws java.io.IOException
java.io.IOExceptionpublic static void register(java.lang.String id)
id - this is the JVM id as configured using the regjvm utility.
public static void register(java.lang.String id,
int dcomPort)
id - this is the JVM id as configured using the regjvm utility.dcomPort - this is the tcp/ip port number that J-Integra should use
for DCOM communications. It must match the port number used
in the regjvm utility.
public static void register(java.lang.String id,
Instanciator instanciator)
id - this is the JVM id as configured using the regjvm utility.instanciator - a custom instanciator allowing you to control how objects are created.
public static void register(java.lang.String id,
Instanciator instanciator,
int dcomPort)
id - this is the JVM id as configured using the regjvm utility.instanciator - a custom instanciator allowing you to control how objects are created.dcomPort - this is the tcp/ip port number that J-Integra should use
for DCOM communications. It must match the port number used
in the regjvm utility.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||