Amazon EC2: How install glassfish in EC2?

12,014

Solution 1

i found my solution here (about how install glassfish)

Actually i create a tutorial that show how do that (but is on portuguese (brazilian) language but with a lot of image to help out):

Tutorial

Solution 2

Here is what you need to do:

  1. Get an AMI instance launched. Follow this tutorial to install. (Unfortunately, Glassfish installation tutorials are given as YouTube video on their official website!)

    The Simplest is to start with an existing EBS backed instance. This is how I started.

  2. Now, if you want to kill the instance, it's same as throwing machine out of window. If you want to reuse it later or probably want to make a blue print for many instances that you will be launching in future. You need to bundle it up and register as an image.

    If you have EBS backed instance, creating an image out of it is easier than sending an email. All you need to do is to login to your AWS Web Console, select the instance that you wanted to create an AMI of, select Instance Actions > Create Image from menu. Done!

    If you have instance storage based AMI. You need to bundle up, and store in your S3 bucket, and register the AMI using, ec2-api-tools and ec2-ami-tools. So, have them installed in your instance and create the image as very neatly explained here.

Now, as far as cost is concerned, refer this. As far as I understand (my clients pay, so I don't really know how much) your running instance is going to cost you some money, even if there is no activity. However, if you make an AMI and store in S3 or in a EBS volume, you will be paying for storage cost.

Hope this explains what you wanted.

Share:
12,014
Valter Silva
Author by

Valter Silva

Updated on June 04, 2022

Comments

  • Valter Silva
    Valter Silva almost 2 years

    i'm trying to deploy my JSF site in EC2 instances, i'm new with cloud computing.

    How do i install the GassFish 3 OpenSource in my EC2 instance ?

    Update: To download use 'curl' command :

    curl http://www.java.net/download/jdk6/6u27/promoted/b03/binaries/jdk-6u27-ea-bin-b03-linux-i586-27_may_2011-rpm.bin > java-rpm.bin 
    

    or using wget:

    wget http://www.java.net/download/jdk6/6u27/promoted/b03/binaries/jdk-6u27-ea-bin-b03-linux-i586-27_may_2011-rpm.bin