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

Calling the Java class from PowerBuilder – PB Docs 2019 – PowerBuilder Library

Calling the Java class from PowerBuilder – PB Docs 2019

Calling
the Java class from PowerBuilder

In the open event of a window, create a Java VM:

In the clicked event of a button on the window, create an instance
of the Converter class using the CreateJavaObject method of the JavaVM
instance, and call the conv method on the Converter class:

When the CreateJavaObject method is called in PowerScript, the PBVM
calls the corresponding C++ method in the extension. The C++ method
creates a Java Converter object through JNI. If it is successful, the
method creates an instance of the PowerBuilder Converter proxy and a
JavaMarshaler object, and associates the JavaMarshaler object with the
PowerBuilder proxy.

When conv.dollarToYen(100.0) is called in PowerScript, the
PowerBuilder VM calls the InvokeRemoteMethod method on the JavaMarshaler
object, which delegates the call to the Java Converter object though JNI
and returns the result to PowerBuilder.


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