You can generate Java proxies for J2EE applications on the SAP Web AS. Proxy generation generates J2EE beans and proxy classes for this purpose. The generated beans satisfy the EJB 2.0 standard.
· Create an archive (as a Jar or Zip file) by using one or more message interfaces from the same software component version. The archive contains bean and proxy classes.
Selecting Message Interfaces
You can call Java proxy generation from the design maintenance screen of the Integration Builder in the following ways:
· From the main menu, choose Tools ® Java Proxy Generation.
· From the context menu, choose Java Proxy Generation... for message interfaces in the navigation tree.
Creating New Archives and Changing Existing Archives
The first step when generating a Java proxy is to specify an archive (in Jar or Zip format). You have two alternatives:
· You can create a new archive. If you select an archive that already exists here, it will be overwritten.
· You can change an existing archive. Choose this option when you want to regenerate proxy objects. Java proxy generation recognizes which message interfaces already have proxies in the archive so that these proxies can be regenerated as well. You can only regenerate proxy classes for the entire message interface.
Activities
1. Navigate to the design maintenance screen of the Integration Builder.
2. Start proxy generation as described above and follow the instructions.
The resulting archive contains the corresponding Java source text files of the Java proxy objects.
Tips
· Technically speaking, a Jar archive corresponds to a Zip archive. You can view the contents of the generated Jar archive in Windows, using WinZip, for example. Using the jar command, you can display the contents by using jar -tf <Filename> and read the contents by using jar -xf <Filename>.
No comments:
Post a Comment