Step 1: Create a Control Project

In this step you will create the application that you will be working with throughout this tutorial. In WebLogic Workshop, an application contains one or more projects. You will create two projects, namely a control project for the Java controls and, during a later step, a web service project for the test web service used to test the Java controls.

The tasks in this step are:


To Start WebLogic Workshop

If you have an instance of WebLogic Workshop already running, you can skip this step.

... on Microsoft Windows

If you are using a Windows operating system, follow these instructions.

...on Linux

If you are using a Linux operating system, follow these instructions.

To Create a New Application and Select a WebLogic Server Domain

To create the control project, you must first create the application to which it will belong:

  1. From the File menu, select New-->Application. The New Application dialog appears.
  2. In the New Application dialog, in the upper left-hand pane, select All.
    In the upper right-hand pane, select Empty Application.
    In the Directory field, use the Browse button to select a location to save your source files. A suggested location is BEA_HOME\user_projects\applications\GettingStarted_Control.
    In the Name field, enter GettingStarted_Control.
    In the Server field, from the drop-down list, select BEA_HOME\weblogic81\samples\domains\workshop.

  3. Click Create.

To Create a New Control Project

You will need a control project to contain the Java controls that you are going to create. A control project can be thought of as a unit of work; all controls in a given project will be built together and will be packaged in the same JAR file.

  1. In the Application tab, right-click the GettingStarted_Control folder and select New-->Project.
  2. In the New Project dialog, in the upper left-hand pane, confirm that Business Logic is selected.
    In the upper right-hand pane, select Control Project.
    In the Project Name field, enter MyControlProject.

  3. Click Create.


To Start WebLogic Server

Since you will be deploying and running your Java control on WebLogic Server, it is helpful to have WebLogic Server running during the development process.

You can confirm whether WebLogic Server is running by looking at the status bar at the bottom of WebLogic Workshop. If WebLogic Server is running, a green ball is displayed as pictured below.

If WebLogic Server is not running, a red ball is displayed, as pictured below.

If you see the red ball in the status bar, then follow these instructions to start WebLogic Server:

Related Topics

Getting Started with Java Controls

How Do I...? Java Control Topics

The WebLogic Workshop Development Environment

Click one of the following arrows to navigate through the tutorial: