Getting Started with the WAS Liberty Profile

Developers and IT professionals can use these free education modules on this page to get started with the IBM WAS Liberty Profile. The modules below offer step-by-step guidance to get you started using WAS Liberty.

Important: These modules and exercises have been created for use with only the WAS v8.5 Liberty Developer Edition and the WAS v8.5 Liberty Server inside Eclipse. If your configuration differs, you might have to adapt the exercise instructions.

LAB 0 – Eclipse Labs

·         Module 1 – Install Eclipse

·         Module 2 – Download and install WebSphere Application Server Developer Tools for Eclipse

LAB 1 – Install the WAS Liberty Profile

·         Module 1 – Install the Liberty runtime and create your first Liberty server

o       In this lab, you will learn about WASdev, the developer community for WebSphere Application Server. 

o       You will also install the Liberty runtime and create your first Liberty server

LAB 2 – Your First Application

·         Module 1 – Write your ‘Hello World’ application

o       In this lab, you will write your first Liberty application and deploy and test it on IBM WebSphere Application Server V8.5 Liberty Profile

·         Module 2 – Deploy and run your ‘Hello World’ application

o       In this module, you will review the IBM WebSphere Application Server V8.5 Liberty Profile configuration

o       The server is pre-configured ready to run a servlet, so you will not need to modify the server configuration

o       You will deploy and run your Hello World servlet

LAB 3 – Liberty and Java Persistence API (Derby or DB2)

·         Module 1.1 – Install Derby and create the Liberty server

o       In this lab, you will learn about the Java Persistence API (JPA)

o       You will develop a JPA application

o       You will configure the WebSphere Application Server V8.5 Liberty Profile and run your JPA application with Derby

§         If you prefer to use DB2, complete module 1.2 instead

·         Module 1.2 : Create the database and Liberty server

o       In this lab, you will learn about the Java Persistence API (JPA)

o       You will develop a JPA application

o       You will configure the WebSphere Application Server V8.5 Liberty Profile and run your JPA application with DB2

o       If you prefer to use Derby, complete module 1.1 instead

·         Module 2.1 : Configure the Liberty server with Derby

o       In this module, you will learn how to configure the Liberty profile to develop an application with database interaction, using the Eclipse JPA feature

o       In module 1.1, you installed Derby and created a new Liberty server

o       In module 2.1, you will configure the Liberty server with Derby for JPA

·         Module 2.2 : Configure the server for DB2

o       In this module, you will learn how to configure the Liberty profile to develop an application with database interaction, using the eclipse JPA feature

o       In module 1.2, you created the database and a new Liberty server

o       In module 2.2, you will configure the Liberty server with DB2 for JPA

·         Module 3.1 : Configure the JPA project for Derby

o       In module 1.1 you installed Derby and created a server, and in module 2.1 you configured the server with JPA and JDBC

·         In module 3.1 you will create the JPA project and generate a JPA Account class that maps to your database tables

·         Module 3.2 : Configure the JPA project for DB2

o       In module 1.2 you set up the runtime and the database, and in module 2.2 you configured the server

o       In module 3.2 you will create the JPA project and generate a JPA class that matches the database structure

§         To do this, you also need to set up a database connection from the eclipse tooling to the database

·         Module 4.1 : Develop the JPA application DBInteractions class

o       In module 1.1 you installed Derby and created the server, in module 2.1 you configured the server, and in module 3.1 you created the application project and generated the JPA Account class

o       In module 4.1 you will add the application code for the DBInteractions class

·         Module 4.2 : Develop the JPA application DBInteractions class

o       In module 1.2 you created the database and runtime server, in module 2.2 you configured the server, and in module 3.2 you created the application project and generated the Account class

o       In module 4.2 you will add the application code for the DBInteractions class

·         Module 5.1 : Develop the JPA application servlet

o       In module 1.1 you set up the database and the runtime, in module 2.1 you configured the server, and in module 3.1 you created the application project and a JPA class

o       In module 4.1 you added the DBInteractions servlet

o       In module 5.1 you will add another servlet with business logic

 

·         Module 5.2 : Develop the JPA application servlet

o       In module 1.2 you set up the database and the runtime, in module 2.2 you configured the server, and in module 3.2 you created the application project and a JPA class

o       In module 4.2 you added the DBInteractions servlet

o       In module 5.2 you will add another servlet with business logic

·         Module 6.1 : Complete and test the JPA application with Derby

o       In module 1.1 you installed Derby and created a server, in module 2.1 you configured the server, and in module 3.1 you created the application project and a database class

o       In modules 4.1 and 5 you added the DBInteraction and CustomerCredit servlets

o       In module 6.1 you will configure two files

§         index.html provides the browser interface for your web application

§         persistence.xml provides database configuration information

o       You will also deploy and test your application

 

·         Module 6.2 : Complete and test the JPA application with DB2

o       In module 1.2 you set up the runtime and the database, in module 2.2 you configured the server, and in module 3.2 you created the application project and a database class

o       In modules 4.2 and 5.2 you added the DBInteraction and CustomerCredit servlets

o       In module 6.2 you will add two files

§         index.html provides the browser interface for your web application

§         persistence.xml provides database configuration information

o       You will also deploy and test your application

  • Allen Cypher

    The pdf’s for the Lab0 Modules refer to web pages. For example, “Review the Rational Application Developer (RAD) V8.5 InfoCenter page *Installing the Liberty profile developer tools* for information about supported Eclipse IDEs for Liberty”. However, the underlined text in the pdf does not actually contain the associated url, so we have to search by the page title to try to find the right web page.