Adding TIP Connector Annotations

To add a TIP connector annotation

  1. From the package explorer in the Eclipse IDE, select a java project. This can be either a plain Java project or a Web tools project.

  2. From OS 2200 menu, select OS 2200 Resource Adapters, and click  Add Tip Annotation ().

A reference to the JAI.jar file and the OS2200.jar file is added to the project, and a new folder is added to the project and the Java build path. Within this folder, a Java source file has been added that contains a class with the two annotations, @LIB and @TIP, marked in error because they still need to be completed.

Example

  @LIB(

  OS2200Path="EclipseFolder/eclipse/plugins/com.unisys.jai.core/OS2200.jar",

  J2EEPath=" EclipseFolder/eclipse/plugins/com.unisys.jai.core/connector-api-j2ee.jar"

  )

  @TIP(host="",

           port=-1,

           transactions={}

  )

where: EclipseFolder is the folder where Eclipse is installed. Optionally, the com.unisys.jai.core folder may contain version information.

For instructions and examples on how to complete this information, see Providing the Required Data to the Annotations.

Switch to Java 1.6 Compatibility

Switching to Java 1.6 switches to the 1.6 JRE.

  1. From the package explorer in the Eclipse IDE, select the project.

  2. From the Eclipse OS 2200 menu, choose Set to Java 1.6 (or click ).

The folder containing the annotation is added to the build path. The folder containing the suffix "_genedCode" is deleted and the original generated source code folder is added back to the build path. Annotations are enabled, the compiler compatibility is set to Java 1.6, and the JRE is set to 1.6.

Switch to Java 1.7 Compatibility

Switching to Java 1.7 switches to the 1.7 JRE if it is available.

  1. From the package explorer in the Eclipse IDE, select the project.

  2. On the Eclipse OS 2200 menu, choose Set to Java 1.7 (or click ).