Entering content frameFunction documentation Java Proxy Generation Locate the document in its SAP Library structure

ABAP

Java

Use

Using the Java proxy generation function, you can generate Java classes or Java proxy objects from the interface description in the Integration Repository. Using these objects, you can then implement sender and receiver applications in Java; the proxy objects establish the connection to the Exchange Infrastructure at runtime, by means of the Java Proxy Framework.

Features

There are two application instances for which you can generate proxies:

A subset of Java classes are generated for standalone applications. Java proxy generation in the Integration Builder supports the following for both application instances:

Selecting Message Interfaces

You can call Java proxy generation from the design maintenance screen of the Integration Builder in the following ways:

The latter method has the advantage that the selected message interface and the corresponding software component version can be copied directly.

Once the Java proxy generation window is open, you can transfer multiple message interfaces of a software component version to a list for subsequent generation. Use either of the following methods:

Activities

Generating New Java Proxies

  1. Navigate to the design maintenance screen of the Integration Builder.
  2. Select the message interfaces for which the Java proxies are to be generated (see above).
  3. The default setting generates J2EE beans. If you do not require any beans, deselect this option.
  4. Choose Recreate Jar File (This graphic is explained in the accompanying text) and specify a file name for a new Jar file. If the specified file already exists it will be overwritten.
  5. To start generation, choose Generate Proxy. A Jar file is not generated if errors occur during generation.

Regenerating Java Proxies

If you want to change any data types, message types, or message interfaces, you must do so using the Integration Builder in the Integration Repository. After any such changes, new Java proxies must be generated. You can only regenerate proxy classes for the entire message interface. The procedure is the same as when you generate Java proxies for the first time, with the exception that you must first identify the message interface from which the Jar file was generated. To do so, choose Open Jar File (This graphic is explained in the accompanying text). In this way, Java proxy generation automatically includes it in the list again.

Result

The resulting Jar file contains the corresponding Java source text files of the Java proxy objects.

Tips

 

 

 

 

Leaving content frame