Show TOC Start of Content Area

Procedure documentation Creating and Deploying a Java Enterprise Application  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 Java Enterprise Application 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 Java Enterprise Application DC that wraps the above class.

      Deploy the application to the Java server.

Prerequisites

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

Procedure

...

       1.      Choose File New  Project:

                            a.      Select Development Infrastructure  Development Component.

                            b.      Choose Next. As the type, choose J2EE  Enterprise Application.

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

                            d.      Enter a name for the development component, such as apibckg. Select the appropriate domain.

                            e.      Choose Finish.

       2.      Open the Development Infrastructure perspective and select the apibckg development component.

                            a.      In the Component Properties view, open the Dependencies tab page

                            b.      Choose Add and check the following DCs:

       caf/eu/gp/api (public part external)from the GP-CORE software component

       tc/bl/logging/api (public part default) from the ENGFACADE software component

       tc/bl/exception/lib (public part default) from the ENGFACADE software component

       tc/je/usermanagement/api (public part default) from the ENGFACADE software component

       3.      Open the Development Infrastructure perspective and select the bckg_co development component.

                            a.      Navigate to Window Show View Component Properties.

                            b.      Open the Public Parts tab page.

                            c.      Choose Add and enter a name for the public part, such as COImpl. As the purpose, choose Assembly.

                            d.      To set references, in the context menu choose Reference Entities. Choose the development component you want to establish a reference to.

                            e.      In the context menu, choose Manage Entities. Select entity type Java Package Tree. Expand the tree that appears, and select the element com.

       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 Deploy. Check for warnings or errors in the Deploy View Console.

Result

If you have successfully built and deployed the Java Enterprise Application on your Java server, you can now expose the Java class as a callable object.

More information: Exposing a Java Class as a Callable Object.

End of Content Area