In this step, you will create the framework for a new application. The tasks in this step are:
Workshop for WebLogic organizes the files and components of your application in the following way:
- The top level folder is called a workspace.
- Within a workspace/folder, projects are the top level folders, either enterprise application projects or the component files for a J2EE module; there are usually multiple projects in an enterprise application
- Files and folders within a project contain project components
When starting an enterprise application, the normal process is to
- Create a new workspace for the application
- Create an enterprise application project to link all of the application's projects (web applications, EJBs, etc.)
- Create projects for the modules within the application
- Create the project contents.
Workshop for WebLogic uses the following project types:
Note that the Eclipse platform provides other types of projects, but these are not enabled with the Workshop for WebLogic features.
To Create a New Workspace for the Tutorial Application
When you started Workshop for WebLogic, it prompted you for the name of your workspace. For this tutorial, you will be creating sample files and we recommend that you use a separate workspace.
To create a new workspace:
- Click File > Switch Workspace.
- In the Workspace Launcher dialog, you can simply type a path for the new workspace and click OK to create the new workspace and switch to it.
- Alternately, click Browse and then click Make New Folder and create a new folder. Click OK. Click OK to choose the new folder as your workspace.
- WebLogic for Workshop will close the workbench window and open a new window showing the contents of the new workspace (currently empty).
To Create an Enterprise Application project
Enterprise Application projects:
- Contain JAR files that are shared by the projects in the application
- Contain links to all of the projects in the application
- Are used by Workshop for WebLogic to test/deploy enterprise applications that contain multiple projects
- Are used to create EAR (Enterprise ARchive) files
Enterprise application projects appear as siblings to the other projects in a workspace but functionally, they link together projects and do not contain any of the content of your application. A single web project (which does not contain a web service) can be deployed without an enterprise application project, but more complex applications require an enterprise application project for correct deployment. Enterprise application projects are also called EAR projects because they can be used to generate an Enterprise Archive (EAR) file for remote deployment.
To create a new enterprise application project:
- Click File > New > Project...
- In the New Project dialog, expand J2EE, click Enterprise Application Project, then click Next.
- In the New EAR Application Project dialog, in the Project name box, enter the name IntroTutorial_EAR and then click Finish.
- The Project Explorer view displays a hierarchical list of the files and folders in the current workspace and now shows that Workshop for WebLogic has created a top-level directory for your EAR project.
Note that a problem marker (the red square with an X in it) may display on the folder icon for IntroTutorial_EAR in the Project Explorer view.
To see a description of the problem, click on the Problems view at the bottom of the workbench.
Markers will appear and disappear as you create the various files in your application and fill in required components. If you believe a marker is displayed incorrectly, try clicking Project > Clean from the menu.
Applications and Projects