Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Developing Web Applications with Oracle ADF Essentials

You're reading from   Developing Web Applications with Oracle ADF Essentials Quickly build attractive, user-friendly web applications using Oracle's free ADF Essentials toolkit

Arrow left icon
Product type Paperback
Published in Aug 2013
Publisher Packt
ISBN-13 9781782170686
Length 270 pages
Edition 1st Edition
Arrow right icon
Toc

Automated deployment to GlassFish


The Ant scripts described in the previous section create a Java Enterprise Archive (EAR) file, which is a complete application. The next step is to deploy it to the GlassFish server in order to be able to run it from a browser.

You have seen earlier how to create a GlassFish connection from JDeveloper and use this connection to deploy your application directly from JDeveloper to GlassFish. You can also use the GlassFish administration console at http://<server>:<admin_port> (for example, http://localhost:4848) to upload and deploy the EAR file. However, for an automated process, you need a scriptable (command-line) tool that can perform this deployment. For GlassFish, the tool that comes with the server is asadmin.

Note

You can find this tool in your GlassFish installation in the bin directory (if you have used the recommended directories in this book, in C:\adfessentials\glassfish3\glassfish\bin).

Deploying from the command line

To deploy an EAR...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime