Previous Next vertical dots separating previous/next from contents/index/pdf

Step 1: Create a Workspace for Development

In this step you'll get your workspace set up, then create two projects to get your EJB source code going. You'll start writing EJB source code in the next step.

In this section, you will:

For Workshop Studio and Workshop for JSP Users Only: Install WebLogic Server

If you are using Workshop for WebLogic, skip this step and go directly to the next step.

If you are a Workshop Studio or Workshop for JSP user, follow these instructions in install the WebLogic Server domain for Workshop:

This server domain contains runtime libraries required by the tutorial application.

 

To Create EJB and EAR Projects

An EAR project is a special kind of project that represents an enterprise application. When you "add" a project to an EAR project, you're actually adding a project reference. Projects added to the EAR project in this way will end up as part of a single Enterprise ARchive (EAR) file, which can be deployed to WebLogic Server. An EAR project is also a way to designate libraries that are to be shared across projects.

You will also create an EJB project within which to build your EJBs. The EJB project will contain your EJB source code.

  1. Click File > New > Project.
  2. In the New Project dialog, expand EJB, click WebLogic EJB Project, then click Next.
  3. In the New EJB Project dialog, in the Project name box, enter VisitEJBProject.
  4. Place a check next to Add project to an EAR and in the EAR Project Name field enter EJBTutorial_EARProject.

    Click Next.
  5. Under Select Project Facets, note that you're provided support for creating EJB source code that includes annotations for faster development.

    Click Finish.

You should now see both your EAR project and EJB project in the Navigator view. Also, after you've created the EJB project, you'll see that the error flag on the EAR project has gone away.

Note that the new project you created, VisitEJBProject, has an error flag next to it. The error flag is present because no EJB code exists yet in the project. In the next step you will remove this error flag by adding EJB code to the project.

Related Topics

Enterprise JavaBeans in Workshop

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


Still need help? Post a question on the Workshop newsgroup.

 

Skip navigation bar   Back to Top