Show TOC Start of Content Area

Procedure documentation Getting a Client JAR  Locate the document in its SAP Library structure

Use

When you access enterprise beans from a remote Java client application, it requires specific classes to use the client view of the enterprise beans. The Deploy service can pack the interfaces, stubs, and skeletons of the EJB application in a JAR file, which is created in the directory you specified.

Procedure

...

       1.      Select the EJB application for which you want to create a client JAR from the Deployed Components list.

Caution

You must select an application that contains enterprise beans. Otherwise, the Deploy service will not be able to create the client JAR.

       2.      Choose Get Client Jar. An info box appears with the name of the JAR file.

       3.      Choose OK. The Choose output directory for client jarsdialog box appears.

       4.      Specify the directory where you want to save the client JAR.

       5.      Choose OK. The dialog box closes and the file is created.

Result

You can use this client JAR to build your Java client application and access the enterprise bean. To be able to do this you have to set a classpath reference from the Java client application to this client JAR.

End of Content Area