![]() |
Pramati Studio provides tight integ ration with Oracle 9i application server versions 1.0.2.2.1 and 9.0.2.1.0. Studio creates the required deployment descriptors when the application is deployed, and keeps the application in a ready-to-deploy state. This chapter discusses how to develop EJB 1.1 applications and MDB using Studio and deploy them on Oracle.
To develop applications in Studio and test-deploy them on Oracle 9iAS server, Oracle deployer should be configured in Studio. Select Tools > Configure from the main menu.
In the dialog, select Oracle Deployer. Close the dialog and create multiple server instances in Studio, which is one development server on the development machine or a single central production server on a remote machine.
Applications developed in Studio can be deployed on both local and remote Oracle servers. In case of remote deployment, the server must be installed on the development machine and the remote machine.
To create an instance of Oracle server, select Tools > Server Configuration from the main menu. In the Server Configuration dialog click New to create a new instance of server. In the Add New Server dialog, enter:
Press OK to create a server instance. This displays the Server Configuration panel. Enter the following server properties:
After filling in all the required information, use the OK button to add the instance of the Oracle Server. To delete a server instance, select the required server from the field, Server Name and use the Delete button.
For embedded Oracle9iAS (9.0.2.1.0), the default website is http-web-site with the listening port 8888. The configuration of the http-web-site is normally located at <Oracle install-dir>\j2ee\home\config\server.xml file in <web-site path = "./http-web-site.xml"/>. This line can be added to the server.xml if it is not there. All web module are bound with this website.
After creating the Oracle server instance in Studio close the Server Configuration dialog, and select the instance from the Server Box in the Status bar. Selecting the Oracle server here makes it the current server, and all server specific operations for the active desk is performed on the current server.
The Oracle server can be started/stopped in a similar way as any other server in Studio. Use Tools > Start Server to start the Server. To stop a server, use Tools > Stop Server from the main menu. The Server can also be started/stopped using the signal box.
All datasources defined in the desk are bound to the current server when the server is started. Adding a datasource on the desk with the same JNDI name as that of a datasource on Oracle server, overwrites the datasource on the server.
A JMS resource can be added in the following ways:
Applications can be deployed on Oracle as normal archived JARs, WARs, and ears, or directly as Modules.
Right Clicking on the Desk > Deploy as .ear always deploys the application as an enterprise archive on the current Oracle server.
The enterprise archive is created by packaging the EJB modules as JARs, the Web modules as WARs, and then adding these into the EAR with the name - Desk_DeskName.ear, where DeskName is the name of the desk. The ear is stored under the directory, <install_dir>\oracleEars and deployed on Oracle server. The ear contains all the Oracle specific XML files, which can be used to deploy on any Oracle server outside Studio.
Right clicking on the module > Deploy always deploys the module on the current Oracle server. Deploying a module
If a desk is right-click deployed on Oracle server, then you can right click > Deploy the specific modules which are changed. The entire desk does not required to be redeployed.
Developing applications in Studio creates archives and modules with Pramati XML files. To create archives with Oracle XMLs, follow the given steps:
Pramati Studio supports debugging applications on local as well as remote Oracle server. However, the JSP Pages can be debugged only on a local server. To start the debugger, use Debug > Start from the main menu.
If the server is on the local machine, then check the option, Application for J2EE. This starts the server in the debug mode. The application can now be deployed. The Debugger panel appears only after the break points have been inserted.
If the server is on a remote machine
| Pramati Technologies © Copyright |
|