Salesforce

Setup for Passing Java Objects (Magic xpa 2.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

Setup for Passing Java Objects (Magic xpa 2.x)

When passing Java objects, you should set the CLASSPATH environment setting, not the CLASSPATH entry in the MAGIC_JAVA section, and include the required JAR files or Java Class directories for the Java classes that are used in the EJB methods.

The Java CLASSPATH separator character on the Windows platform is a semicolon (;) and on IBM i and UNIX platforms it is a colon (:).

So that Magic xpa can access the Java classes used in the EJB method, you must include the classes or the JAR file in either:

  • The CLASSPATH entry in the Magic.ini file

  • The CLASSPATH environment entry

When the enterprise server receives a request from the EJB, it automatically deserializes each Java object and passes it to the called Magic xpa program as a Java pseudo reference. The BLOB’s parameters of the program have a Java reference for each object. If the return value is a Java object, the engine automatically serializes the Java object when responding to the EJB request.

Reference
Attachment 
Attachment