Salesforce

Java Class Connector Service (Magic xpi 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

Java Class Connector Service (Magic xpi 3.x)

The Java Class Connector Service lets you access and manipulate Java classes and objects. Accessing Java class objects is done by selecting the required objects such as Instance Methods, Instance Variables, Static Methods, and Static Variables, and receiving the returns from each. This allows components in your flow to access the Java class.

The Java Class Connector Service looks for Java classes as follows:

  • During design time, if you need the Magic xpi Studio to be familiar with a specific Java class:

    • Its path should appear in:

      • The CLASSPATH entry in the machine’s environment variables.

      • The [MAGIC_JAVA]CLASSPATH entry in the Magic.ini file.

    • Or, if you have a jar file, you should put it under the <installation>\java\lib path and refresh the class list in the Magic xpi Studio.

  • During runtime:

    • According to the paths that are in the CLASSPATH entry in the machine’s environment variables.

    • According to the paths that are in the [MAGIC_JAVA]CLASSPATH entry in the Magic.ini file.

    • In the Class subfolder of your project's Java folder there should be a folder with the package name that contains the class file(s). For example: <Project>\Java\Class\PackageName\ClassFile

Related Topics

Reference
Attachment 
Attachment