Step 1: Begin the EJB Tutorial

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. Enterprise JavaBeans are developed in an EJB project.

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 Tutorial.
    In the upper right-hand pane, select Tutorial: Enterprise JavaBeans.
    In the Directory field, use the Browse button to select a location to save your source files.
    In the Name field, enter EJBProjectTutorial.
    In the Server field, from the drop-down list, select BEA_HOME\weblogic81\samples\domains\workshop.

  3. Click Create.

The new application already contains various web applications that will be used in the tutorial to test your EJBs. Next you need to create an EJB project for the EJBs you are going to develop.

To Create a New EJB Project

  1. In the Application tab, right-click the EJBProjectTutorial 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:

Note: on the WebLogic Server Progress dialog, you may click Hide and continue to the next task.

Related Topics

Getting Started with EJB Project

How Do I...? EJB Topics

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