Deploy Glassfish and mysql in Amazon EC2

This tutorial is just a brief introduction but not the complete one and will be refreshed later.

First, use ami-26df324f (Amazon EC2 instance with Fedora Linux + Java installed)

Go download glassfishv3 and install

that is:

how to use bin/asadmin

install mysql

remember 32-bit client and server one is safer to install
Download mysql java connector and put in glassfish/domains/domain1/lib/ext
the jar file
reference link:

refer local glassfish admin console, add below in server glassfish admin console
resources -> jdbc -> jdbc resources / connection pools
and deploy (just upload war file) it in autodeploy folder (domain1)

Author: fyhao

Jebsen & Jessen Comms Singapore INTI University College Bsc (Hon) of Computer Science, Coventry University

1 thought on “Deploy Glassfish and mysql in Amazon EC2”

Leave a Reply