Step 1: Create an EJB 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 an EJB project for the Enterprise JavaBeans and, during a later step, a web service project for the test web service used to test the EJBs.

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 EJB 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_EJB.
    In the Name field, enter GettingStarted_EJB.
    In the Server field, from the drop-down list, select BEA_HOME\weblogic81\samples\domains\workshop.

  3. Click Create.

To Create a New EJB Project

You will need an EJB project to contain the EJBs that you are going to create. An EJB project can be thought of as a unit of work; all EJBs in a given project will be build together and will be packaged in the same JAR file.

  1. In the Application tab, right-click the GettingStarted_EJB folder and select New-->Project.
  2. In the New Project dialog, in the upper left-hand pane, confirm that EJB is selected.
    In the upper right-hand pane, select EJB Project.
    In the Project Name field, enter MyEJBProject.

  3. Click Create.


To Start WebLogic Server

Since you will be deploying and running your EJBs 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 EJB Project

How Do I...? EJB Topics

The WebLogic Workshop Development Environment

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