Show TOC Start of Content Area

Procedure documentation Creating and Deploying a J2EE Library  Locate the document in its SAP Library structure

Use

To be able to deploy your background callable object and access it from Guided Procedures, you must package it as a J2EE library and deploy it on the Java server.

For this purpose, you must:

     Create a public part in your existing Java development component (DC) project with the background callable object class included.

     Create a J2EE library DC that wraps the above class.

     Deploy the library to the Java server.

Prerequisites

You must have configured the connection to the Java server in the Window  Preferences   SAP J2EE Engine menu of the SAP NetWeaver Developer Studio.

Procedure

...

       1.      In Java DC Explorer, extend the bckg_co DC tree, and select DC Meta Data  Public Parts.

                            a.      Open the context menu and choose New Public Part.

                            b.      Enter a name for the public part – for example, COImpl, and select the option Can be packaged into other build results (e.g. SDAs).

                            c.      Choose Next. Select entity type Java Package Tree. Under Select Entities, expand the tree that appears, and select the uppermost element com.

                            d.      Make sure that for Add Entity to Public Part the option as Class is selected. Finally, choose Finish.

       2.      Choose File  New  Project:

                            a.      Select Development Component  Development Component Project.

                            b.      Choose Next. Select the software component where you want to create your DC.

                            c.      Choose Next. Enter a name for the development component – for example, apibckg. Select the appropriate domain. For type, choose J2EE Server Component  Library.

                            d.      Choose Finish.

       3.      In Java DC Explorer, expand the apibckg DC tree, and select DC Meta Data  DC Definition  Used DCs.

                            a.      Open the context menu, and choose Add Used DC. Browse to select the COImpl public part of the bckg_co DC. For Dependency Type choose Build Time.

                            b.      Repeat the procedure to add Build Time, Deploy Time, and Run Time dependencies for the following DCs:

      caf/eu/gp/api

      com.sap.security.api.sda

       4.      Select apibckg DC, open its context menu, and choose Development Component  Build. Check for warnings or errors in the General User Output view.

       5.      From the context menu of the apibckg DC, choose Development Component  Deploy. Check for warnings or errors in the Deploy Output View.

Result

If you have successfully built and deployed the J2EE library on your Java server, you can go on with exposing the Java class as a callable object in the GP design time.

 

End of Content Area