Skip to Content
Client-Server Web Apps with JavaScript and Java
book

Client-Server Web Apps with JavaScript and Java

by Casimir Saternos
March 2014
Intermediate to advanced content levelIntermediate to advanced
260 pages
6h 31m
English
O'Reilly Media, Inc.
Content preview from Client-Server Web Apps with JavaScript and Java

Chapter 6. Java Web API Servers

A man wrapped up in himself makes a very small bundle.

Benjamin Franklin

Packaging makes it possible to extend the capabilities of a language by including reusable components. The packaging available for a given language affects deployment options. Packaging schemes include consideration for standard naming conventions, metadata files, digital signatures, code obfuscation, arrangement of code, inclusion of related files/resources, and compression mechanisms.

Packaging necessarily impacts deployment. The de facto deployment options available in a language tend to suggest the structure of a project and its development workflow. In Java, this is even more pronounced than other languages. Java source file names reflect the name of the public class they contain. Java packages follow the directory structure of the file system. Java utilizes several specific package types. General purpose source code is included in Java Archives (JARs), web applications are stored in Web Application Archives (WARs), and groups of related web applications can be packaged together in Enterprise Application Archives (EARs). WARs can be deployed to servlet containers, while EARs require full Java Enterprise Edition support, which is available in application servers like JBoss.

Java’s packaging paradigm has many benefits but has resulted in a constrained view of deployment possibilities. Standard web application development practices in place since Java’s initial development required ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

RESTful Java Web Services - Third Edition

RESTful Java Web Services - Third Edition

Balachandar Bogunuva Mohanram

Publisher Resources

ISBN: 9781449369323Errata PageSupplemental Content