Skip to content

Latest commit

 

History

History
 
 

greeter

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

greeter: Demonstrates CDI, JPA, JTA, EJB, and JSF

The greeter quickstart demonstrates the use of CDI, JPA, JTA, EJB and JSF in {productName}.

What is it?

The greeter quickstart demonstrates the use of CDI, JPA, JTA, EJB and JSF in {productNameFull}.

When you deploy this example, two users are automatically created for you: emuster and jdoe. This data is located in the src/main/resources/import.sql file.

To test this example:

  1. Enter a name in the username field and click on Greet!.

  2. If you enter a username that is not in the database, you get a message No such user exists!.

  3. If you enter a valid username, you get a message Hello, followed by the user’s first and last name.

  4. To create a new user, click the Add a new user link. Enter the username, first name, and last name, and then click Add User. The user is added and a message displays the new user id number.

  5. Click on the Greet a user! link to return to the Greet! page.

Access the Application

The application will be running at the following URL: http://localhost:8080/{artifactId}/.

Server Log: Expected Warnings and Errors

You will see the following warnings in the server log. You can ignore these warnings.

WFLYJCA0091: -ds.xml file deployments are deprecated. Support may be removed in a future version.

HHH000431: Unable to determine H2 database version, certain features may not work