The Samples.uploadArchive() and deploy methods demonstrate how to upload and deploy a Java EE archive file.