Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Step 2: Implement the creator class – PB Docs 150 – PowerBuilder Library

Step 2: Implement the creator class – PB Docs 150

Step 2: Implement the creator class

Like
any nonvisual native class, the CJavaVM class must implement the Invoke and Destroy functions
in addition to the class functions CreateJavaObject and CreateJavaVM.

The CreateJavaVm function of CjavaVM gets
the classpath and properties from the PBCallInfo structure. Then
it loads the Java VM by calling the loadJavaVM function
of a wrapper class called JavaVMWrapper. The JavaVMWrapper class
encapsulates the JavaVM interface provided by JNI.

The CreateJavaObject function creates an
instance of a Java class based on the given class name, creates
a PowerBuilder proxy object for the Java object, creates a JavaMarshaler
object, and associates the marshaler object with the proxy object.

The following is the CreateJavaObject function:


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x