Show TOC Start of Content Area

Procedure documentation Deploying the Callback Application on the J2EE Engine  Locate the document in its SAP Library structure

Use

After you have successfully generated the CallbackApplication.ear file, you must deploy the application to the J2EE Engine. You do this in two phases:

·        Deploy the EAR from the Developer Studio to the J2EE Engine through the Software Deployment Manager (SDM);

·        Update the deployed application to include IIOP support for its classes using the Visual Administrator tool.

Recommendation

We recommend that you deploy the CallbackApplication to an J2EE Engine installation that is used as a development environment rather than as a productive system.

Prerequisites

·        The J2EE Engine that you are about to deploy the application to must be started.

·        The IIOP Provider Service must be started on both the Java dispatcher and the server process of the J2EE Engine.

·        The SDM must be running to be able to deploy the EAR file from the Developer Studio.

Procedure

Deploying the CallbackApplication to J2EE Engine Running on a Remote Host

To do this, you must first set up the SAP NetWeaver Developer Studio to use a particular installation of the J2EE Engine:

...

       1.      From the main menu of the Developer Studio, choose Window Preferences.

       2.      Choose the J2EE Engine from the left-hand side list of the Preferences screen that appears.

       3.      Choose SAP J2EE engine is installed on remote host option and enter the following information in the two fields below it:

Field Name

Information to Enter

Message Server Host

The IP address or the hostname of the host the message server instance of your J2EE Engine instance is running.

Message Server Port

The port number the message server listens to. The default one is 3601.

       4.      Choose Apply to make your settings effective.

Now, you can go on and deploy the CallbackApplication to the J2EE Engine instance that you have just set up.

       5.      Open the CallbackApplication Enterprise Application Project from your Developer Studio. Access the context menu for the CallbackApplication.ear and choose Deploy:

This graphic is explained in the accompanying text

When the deployment process finishes, you will see a success message on the screen. This means the CallbackApplication is deployed on the J2EE Engine. It is automatically started after deployment.

Generating IIOP Support for the CallbackApplication

...

       1.      Connect the Visual Administrator tool to the J2EE Engine instance where the CallbackApplication is deployed.

       2.      Open the Runtime screen of the EJB Container Service. You choose the service from the list of services for the appropriate server process.

       3.      On the left-hand side of the Runtime screen you will see a list of EJB applications that are currently deployed on the EJB Container. Choose the CallbackApplicationfrom this list.

       4.      Choose Deploy IIOP Support to generate the necessary classes and add them to the classes of the deployed CallbackApplication application.

During the update process, the EJB Container first stops the application, and after the update is completed, it starts it again.

Result

At the end of this procedure, you have the CallbackApplication deployed on the J2EE Engine with the required IIOP communication support. Now you can develop a remote client application that can call methods of the UtilCallback bean from the CallbackApplication application.

Next Step:

Developing the Client-side Application

 

End of Content Area