JavaVM:
LoadMappingTable method
Description
Loads
the the mapping table between the Java class and a specified PowerBuilder
EJB proxy.
Syntax
1 |
<span>javavm</span>.LoadMappingTable(<span>proxyname</span><span></span>) |
Argument |
Description |
---|---|
javavm |
An instance of the JavaVM class |
proxyname |
The name of the proxy object for the |
Return Values
Boolean. Returns true if
the mapping table is successfully loaded, and false if the
load fails.
Examples
This example creates a Java VM, then tests whether
the EBJ mapping table has been loaded before attempting to perform
operations involving the VM:
1 |
JavaVM g_jvm |
1 |
string classpath |
1 |
boolean isdebug |
1 |
foo l_foo |
1 |
classpath = "D: estsjavasamplein;" |
1 |
isdebug = false |
1 |
g_jvm.CreateJavaVM(classpath, isdebug) |
1 |
g_jvm.CreateJavaInstance(l_foo, "foo") |
1 |
if (LoadMappingTable("foo")) then |
1 |
  // perform normal processing |
1 |
else |
1 |
  // handle failure to load mapping table |
1 |
end if |
Usage
Call LoadMappingTable after calling JavaVM.create, otherwise
an exception is thrown.
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest