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

Step 4: Create and Start a Server on Which to Test

In this step you'll configure WebLogic server to use a domain on which you can test your EJBs. Then you'll start up the server before creating a project to test with.

Note: If you have executed the EJB tutorial before your server might already contain previous deployments of the EJB projects. Before proceeding, it is recommended that you either (1) remove previous EJB tutorial code from your server or (2) create a new server domain.

In this section, you will:

To Create the Server

  1. In the J2EE perspective, the following views should be visible as tabs at the bottom (by default) of the IDE: Problems, Tasks, Properties, Servers, Database Explorer, Snippets.
  2. Click the Servers view tab, right-click in its window, then click New > Server.

  3. In the New Server dialog, under Select the server type, confirm that BEA Systems > BEA WebLogic Server v10.0 is selected, then click Next.
  4. In the Domain home box, ensure that the dropdown shows the domain directory as the following, where <BEA_HOME> is the location of your BEA installation:


  5. Click Finish.

To Assign the Server to the EAR Project

Now you'll associate the server you just created with the EAR project. The EAR project, which contains your EJB project, will be deployed to it.

  1. In the Package Explorer, right-click EJBTutorial_EARProject, then click Properties.
  2. In the Properties dialog, in the left pane, select Server. In the right pane, in the Default server box, select BEA WebLogic Server v10.0.
  3. Click OK.

To Start the Server

You've written the code for both of your EJBs, you've created a server on which to test, and you've started the server. Now it's time to create a test client. In the next step, you'll create a web application for that purpose.

Related Topics


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


Skip navigation bar   Back to Top