Testing on a Java Platform, Enterprise Edition Preview server
Use the Java™ Platform, Enterprise Edition Preview server when you want to quickly compile, test, and run resources in a Java EE web project. The Java EE web projects that you can test on a Java Platform, Enterprise Edition Preview server are static web projects, dynamic web projects, and utility projects. The term Java EE web project refers to any of these projects.
About this task
Important: This topic does not apply to WebSphere® Application Server traditional, Liberty, or Liberty Core. It applies to J2EE Preview
Server only.
The Java Platform, Enterprise Edition Preview server is an embedded
application server that is integrated with the workbench. It is intended for preliminary testing and
saves you the time to download, install, and set up an application server. However, as your Java EE web project progresses through its development cycle you
are encouraged to test and run on an external application server. You can use the Java Platform, Enterprise Edition Preview server as a convenient way to check
for errors before you do a final test on an external application server.To create and test on a Java Platform, Enterprise Edition Preview server for previewing your resources in a Java EE web project, complete the following steps.
Procedure
- In the Servers view, right-click and select New > Server. The Define a New Server wizard opens.
- Under the Select the server type list, expand the Basic folder and select J2EE Preview. Click Next.
- The Add and Remove page opens. Under the Available projects list, select the Java EE web project and click the Add button. Click Finish. The Java Platform, Enterprise Edition Preview server is created in the Servers view.
- In the Enterprise (or Project) Explorer view, navigate to your Java EE web project and right-click your resource that you want to test.
- Select Run on Server wizard opens. . The
- Verify the Choose an existing server radio button is enabled.
- Under the Select the server that you want to use list, select the recently created Java Platform, Enterprise Edition Preview server. Click Next.
- The Add and Remove page opens. Verify the Java EE web project that you are testing is listed under the Configured projects. Click Finish.