Pramati Technologies

Working with Enterprise Server

This chapter is for developers who would like to deploy their applications on Pramati Enterprise Server 3.0 through Studio. Studio provides tight integration with Pramati Enterprise Server. The required deployment descriptors are automatically created in Studio, while the application is being developed, and the application kept in a "ready-to-deploy" state.

Configuring the Enterprise Server in Studio

Follow the given steps and configure the tool in Studio.

  1. Select Tools > Configure from the main menu bar. This pops up the Tools Configure dialog.
  2. Check against the tool name, Pramati Enterprise Server from the Available Tools section.
  3. Close the Configure dialog.

Note: Each configured Server instance has its own tab in the Output Panel.

Creating Enterprise Server Instances

After importing the tool in Studio, select Tool > Server Configuration from the main menu. In the Server Configuration dialog that comes up, click on the New button to create a new instance of the server. In the Add New Server dialog that pops up, enter the following information:

Server Name Enter the name of the server instance that is to be created in the dialog

Server Type Select the type of the server from the list in the combo box as Pramati Enterprise Server.

Pressing OK creates an instance of the server and displays the Server Config panel, where the Enterprise Server properties are to be configured:

Server Name The Server name is automatically selected as the name entered in the Add New Server dialog. To select another server instance that is to be configured, choose from the list in the combo box

Server Type The Server type is displayed as the type selected in the Add New Server dialog.

IP Address The machine address where the server has to be configured. The default value is 127.0.0.1 or localhost

Naming Port Port on which the Server will listen (default value is 9191)

HTTP Port Port on which the Web server listens (default value is 8181)

User Name Enter the valid user name required to start the remote server. The default value is root

Password Enter the password of the specific user. The default value is pramati

Realm The realm to which the Server is assigned. The default value is system.

Use the OK button to add the configured server instance and the Delete button to delete the instance created.

Working with Enterprise Server from Studio

After creating the Pramati Enterprise Server instance in Studio, close the Server Configuration panel, and select the instance from the Server Box in the Status bar. Selecting the instance here makes it the current server, and all server specific operations for the active Desk is performed on the current server.

The Enterprise Server cannot be started or stopped from the studio. Ensure that the database resources, users, groups etc. are present in the Enterprise Server container before deploying the applications, as these are not added transparently form Studio.

Applications can be deployed on the Enterprise Server as normal archived JARs, WARs and EARs, or directly as modules. Right Clicking on the Desk > Deploy always deploys the application on the current Enterprise Server. Similarly right clicking on the module/Desk root node > Deploy always deploys it on the current Enterprise server. A progress bar displays the deployment progress.

Note: There are no deployment messages displayed in the server output panel to indicate success or failure of the deployment. This will be included in a later version of Studio.

All the command line options of the remote shell can be performed in Studio for the Enterprise Server instance.

Example

Type list in the Server Output tab and view the state of the application. To shut down the server, type shutdown.


Pramati Technologies  © Copyright   TOCPREVNEXTINDEX