You can create a Liberty server, and then
choose an OSGi project, an Enterprise JavaBeans (EJB) project, or a web project as the target
project.
Before you begin
If you plan to create a web service that uses WebSphere® Application Server Liberty, the server must be installed and created before you
begin creating your web service.
Procedure
-
Create a server in the workspace.
-
Select .
-
Expand IBM and select WebSphere Application Server Liberty
as the server type.
Ensure that you select the correct version of the server for your installation.
-
Click Next.
-
See the Creating a Liberty server by using developer tools task to complete the
New Server wizard.
-
Click Finish.
You created a server in the workspace. To view the server, you can select .
-
To create a web project, an OSGi project, or an EJB project that points to the Liberty server
that you created, complete the following steps:
-
Create the project.
- To create a web project, select .
- To create an OSGi project, select .
- To create an EJB project, select
-
Project Name: enter a project name.
-
Target runtime environment: select WebSphere Application Server Liberty
that you installed. If it is not listed, click New and browse to the location
where it is installed.
-
Configuration: Accept the default configuration for your server, or click
Modify to change the project facets.
-
For a web project, ensure that Add project to an EAR is selected.
The New Project wizard generates the EAR file.
-
For an OSGi project, complete the following steps.
- Click the OSGi programming model for an OSGi project.
- In the Application field, click Add to
Application; clear this field if you do not want to associate the OSGi bundle with an
OSGi application.
The New Project wizard generates the OSGi
application.
-
For an EJB project, ensure that Add project to an EAR is selected.
The New Project wizard generates the EAR file.
-
Click Finish.
-
To associate the project with the server, right-click the WebSphere Application Server Liberty server that you created in the Servers view and
select Add and remove projects. Select the service and client projects from
the Available projects list and click Add.
-
Start the server by right-clicking it and selecting Start.