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)

Published by

Khor Yong Hao

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

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

Leave a Reply

Your email address will not be published. Required fields are marked *

4 − one =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>