How to call External Java Method within SAFE

SUGGESTED

Hello All,

I've tried to call an external Java Method, an special conversion method. I read that Java Bridge can use but I can't find any sample code to show me how to do that.

Is there any sample code to show how can I call a Java Method within SAFE?

Thanks

  • 0
    SUGGESTED

    Hi,

    The SAFE Java Bridge Server component for X3 provides documentation for developers to work with the component to build new applications.

    The first document describes the role of the component in an X3 solution (as a "server" bridging X3 to Java), and overviews its capabilities.  The PDF also shows examples of new 4GL instructions for instantiating and using Java objects running in the component.  The sample code can be used in your own programs.

    The second document is a tutorial on the Java Bridge Server's SDK.  It walks a developer through building a custom java OSGI bundle and deploying it within the bridge.  This SDK is the same as the one used for development of Java Bridge Server based add-on components for X3 integrations to 3rd part services of various kinds.

    To retrieve these documents, install the bridge on a host machine and access the PDF and Eclipse Studio (for the SDK) at

    http://<java server host machine>:27880/

    Enjoy,

    Ajay

  • 0 in reply to AjayKochhar
    Ajay, do you know if there are still two documents in the most recent version of Java Bridge? I was looking into this today, and the "Presenting the Safe X3 Java Bridge Server" was there and easy to grab, but I did not see the tutorial doc. There is a link for the Java Docs, and that seems to be descriptors of the available jars and methods. Or, if you have the tutorial on hand, can you post it / send it over?