Virtual Guru's Blog – Home of Virtualization Workshops

May 16, 2008

Inst&Conf: SGMJ (Solaris Glassfish MySQL Java) Stack

Filed under: amazon_aws, cloud, glassfish, Virtualization — natiku @ 4:15 am

For now it is just JIT (Just Install software) Virtual Appliance, developers will post-configure it using DOCs

This entry is part of ‘OpenSolaris on Amazon EC2’ Workshop


GlassFish V2 U1 with MySQL Community Server 5.0 in the News

Get Glassfish MySQL bundle from java EE donwloads

DOCS Installing Application Server 9.1 Update 1 with MySQL Community Server

Note: In this bundle in GlassFish V2 Update Release 1 (UR1), but with ability to update from Network

1. Install of GlassFish and MySQL bundle

chmod +x sjsas-9_1_01-mysql-solaris-i586.bin
./sjsas-9_1_01-mysql-solaris-i586.bin -console
The directory "/opt/glassfish" does not exist.
Do you want to create it now or choose another directory?
1. Create Directory
2. Choose New
Enter the number corresponding to your choice  [1] {"<" goes back, "!"
exits} 1
The Sun Java System Application Server requires a Java 2 SDK.
Please provide the path to a Java 2 SDK 5.0 or greater.
[/usr/jdk/instances/jdk1.6.0] {"<" goes back, "!" exits}
Admin User [admin] {"<" goes back, "!" exits}:
Admin User's Password (8 chars minimum):
Re-enter Password:
Do you want to store admin user name and password in .asadminpass file in
user's home directory [yes] {"<" goes back, "!" exits}?
Admin Port [4848] {"<" goes back, "!" exits}:
HTTP Port [8080] {"<" goes back, "!" exits}:
HTTPS Port [8181] {"<" goes back, "!" exits}:
For your convenience, this installation of MySQL will setup a pre-configured
option file to be used for MySQL Server. This option file parameters are
generated based on the size of your machine. Please choose the size of your
system. Please refer Installation Guide for more information.
1. SMALL
2. MEDIUM
3. LARGE
4. HEAVY
5. HUGE
6. EXIT INSTALLATION
Please enter the number corresponding to the option [1] {"<" goes back, "!"
exits}: 2

2. Post-configure steps (Needed done on AMI image)

Note: This post-confgirations are not done for security reasons, so developers can put their passwords and config other security params.

Consult DOCc bellow for steps:

DOCS Installing Application Server 9.1 Update 1 with MySQL Community Server

2.1 Postconfigure MySQL
2.2 Start MySQL server
2.3 Start GlassFish server
2.4 Integrate GlassFish and MySQL into SMF to start automatically

Example for step 2.3:

Start Glassfish domain

/opt/glassfish/bin/asadmin start-domain domain1

See also: Sun Java System Application Server 9.1 Performance Tuning Guide

If you any issues with post-configuration you can contact GlassFish community:

java.net Forums – GlassFish

Advertisements

1 Comment »

  1. Hi Rudolf
    Great AMIs. I dont suppose you have any more detailed instructions on how to get the App server up adn running with MySQL. I am struggling with the steps 2.1 onwards.
    John

    Comment by John Gillespie — November 17, 2008 @ 2:51 pm


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: