In this step you will create a Utility project to house your control so they can be used by multiple modules in an application.
In this step, you will:
If you haven't started Workshop yet, follow these steps: Start Workshop.
If you would like to execute the tutorial in a separate workspace follow these steps: Create a New Workspace.
Note: If you already have a workspace open, this will restart Workshop. Before beginning, you might want to launch help in standalone mode to avoid an interruption the restart could cause, then locate this topic in the new browser. See Using Help in a Standalone Mode for more information.
This step only applies to user who do not have WebLogic Server installed. Users who already have WebLogic Server installed can skip to the next step.
In this step you will add a WebLogic Server domain for use with Workshop. This server domain contains runtime libraries required by the application.
A utility project contains shared code that can be used across multiple different projects. For the sake of expediency we will create a bare Utility project without any associated application projects.
You can safely ignore the errors that appear on the Problems view; these errors are expected and are caused by the fact that we have created a Utility project outside of any EAR project. The errors will not impede the tutorial to follow.
Note that you can avoid these errors by creating a utilty project along with the necessary EAR project by using the wizard: File > New > Project > Workshop Shop Quick Start Applications > WebLogic/Beehive Web Application.
In this step you will create the control to be tested.
package sharedcontrols;
import org.apache.beehive.controls.api.bean.ControlImplementation;
import java.io.Serializable;
@ControlImplementation
public class EmployeeControlImpl implements EmployeeControl, Serializable {
private static final long serialVersionUID = 1L;
public String[] getManagerNames() {
return new String[]{"Jane","Bob","Amy"};
}
}