Developing for WebLogic Server 8.1 with Oracle JDeveloper 10g

by Deepak Vohra
02/07/2006

Abstract

The Oracle JDeveloper 10g IDE is a full-featured J2EE IDE that can be used to develop and deploy J2EE applications on BEA WebLogic Server 8.1. In this tutorial, a simple JSP Web application is developed in JDeveloper and deployed to a WebLogic Server 8.1 instance. The tutorial also shows how to debug applications using the JDeveloper IDE.

Overview

The JDeveloper IDE supports development of J2EE applications for BEA WebLogic Server. WebLogic Server versions 6.x, 7.x, and 8.x are supported in JDeveloper 10.1.2. JDeveloper 10.1.3 (just released) supports versions 8.x and 9.x. JDeveloper also provides a remote debugger to debug applications deployed to WebLogic Server. A J2EE application developed in the JDeveloper IDE may consist of EJBs, JSPs, Struts, Java classes, applets, and servlets. In this tutorial, a Model-View J2EE application consisting of a session EJB and a JSP client is developed in the JDeveloper 10g IDE and deployed to a WebLogic Server 8.1 instance.

Preliminary Setup

I assume you have WebLogic Server 8.1 installed. Using the Configuration Wizard, create a WebLogic Server domain. Install the JDeveloper 10g (10.1.2) IDE. Copy the <Weblogic81>\server\lib\weblogic.jar to the <JDeveloper>\jdev\lib\ext directory. <WebLogic81> is the directory in which your WebLogic Server 8.1 is installed. <JDeveloper> is the directory in which JDeveloper 10g is installed. You are now set to go!

Configuring a Connection with WebLogic Server

In this section we'll configure a connection to WebLogic Server from the JDeveloper IDE. First, start WebLogic Server and JDeveloper IDE. In the JDeveloper console, select the Connections tab to configure a connection with WebLogic Server. The Connection>Application Server node is used for configuring a connection with an application server. Right-click on the Application Server node, and select New Application Server Connection.

Figure 1
Figure 1. New application server connection

The Create Application Server Connection Wizard will start. In the Type frame specify a Connection Name, and select Connection Type as WebLogic Server 8.x. Previous versions of WebLogic Server 6.x and 7.x are also supported. Click on Next.

Figure 2
Figure 2. Connection type

In the Authentication frame, specify a username and a password, and click on Next. In the Connection frame, specify the WebLogic Server host name, port, target server, and path to weblogic.jar. Click on Next.

Figure 3
Figure 3. Connection parameters

In the Test frame, select the Test Connection button to test the connection with WebLogic Server. If a connection with the server is established, a Success message will be displayed. Click on the Finish button. A connection with WebLogic Server 8.1 will now be configured, and a node for the connection will be added to the Connections-Navigator.

Figure 4
Figure 4. WebLogic Server connection

You now have a running WebLogic Server and JDeveloper IDE, and your JDeveloper will be able to interact with your WebLogic Server instance.

Pages: 1, 2, 3, 4, 5

Next Page ยป