tut-install/examples/case-studies
Java Platform, Enterprise Edition (Java EE) 8 The Java EE Tutorial |
Previous | Next | Contents |
You can use either NetBeans IDE or Maven to build, package, deploy, and run the Duke’s Bookstore application.
The following topics are addressed here:
Make sure that GlassFish Server has been started (see Starting and Stopping GlassFish Server).
From the File menu, choose Open Project.
In the Open Project dialog box, navigate to:
tut-install/examples/case-studies
Select the dukes-bookstore
folder.
Click Open Project.
In the Projects tab, right-click the dukes-bookstore
project and
select Build.
This will build, package, and deploy Duke’s Bookstore to GlassFish Server.
Make sure that GlassFish Server has been started (see Starting and Stopping GlassFish Server), as well as the database server (see Starting and Stopping Apache Derby).
In a terminal window, go to:
tut-install/examples/case-studies/dukes-bookstore/
Enter the following command:
mvn install
This command builds the application and packages it in a WAR file in the
_tut-install_/examples/case-studies/dukes-bookstore/target/
directory.
It then deploys the application to GlassFish Server.
In a web browser, enter the following URL:
http://localhost:8080/dukes-bookstore/
On the Duke’s Bookstore main page, click a book in the graphic, or click one of the links at the bottom of the page.
Use the pages in the application to view and purchase books.
Previous | Next | Contents |