GlassFish bundle with MySQL Community Server

"Sun Java System Application Server 9.1 Update 1 with MySQL Community Server" bundle is available now for download.

GlassFish is the name for the open source development project for building a Java EE 5 application server. Visit for more info.

MySQL is the world's most popular open source database software, with over 100 million copies of its software downloaded or distributed throughout its history. Visit for more info.

I was the Engineering Lead for this exciting project that provides a distribution of GlassFish V2 U1 with MySQL Community Server 5.0.

Bundle Features.

  • MySQL Connector/J version 5.1-6 is included in this bundle. This JDBC Driver is installed under <Installation Directory>/lib to conveniently create a JDBC connection pool pointing to MySQL database through  Glassfish's powerful Administration console.
  • The installation program automatically creates an option file to be used by MySQL based on the size of  target deployment environment. This option file can be used after installation without the need for modifications in most cases.
  • To provide a better out-of-the box experience on windows platforms, Program Group items for Starting and Stopping MySQL Server are provided by the installer.
    They are installed under "Programs > Sun Microsystems > Sun Java System Application Server 9.1 Update 1 with MySQL Community Server > ....".

    Look for items titled "Start MySQL 5.0 Database" and "Stop MySQL 5.0 Database".

  • A windows service by name "ASMySQL" will also be created if the user chooses to do so during installation. This service is configured with start-up mode set to "manual".
  • The MySQL binaries included in this distribution are self-contained and do not interfere with other MySQL instances running on installing environment. This is accomplished by the installer generating an option file to be used for all of mysql command line programs. On Windows environment, the interfaces to start and stop MySQL(Windows Program Group/Items and Windows Service), are automatically configured to use the generated option file.

Where to get it?

How to Install this bundle?

  • Refer installation guide from to install this bundle.  NOTE: This guide has instruction set covering other bundles of GlassFish V2U1 also, so be sure to follow the instructions specific to installing "Sun Java System Application Server 9.1 Update 1 with MySQL Community Server".


Sample Setup/Usage:

Refer for details on how to setup/deploy/run a sample Java EE application with MySQL bundled in this distribution.



Many people to Thank for their support and help at various stages of this project with aggressive schedule.

Anil Gaur, Abhijit Kumar and Eduardo Pelegri-Llopart for their support throughout this project, Carla Carlson for Program Management, Alex Pineda and his group for testing, Steve Carusso and his team for ensuring Compatibility, Carolyn Wong for all her help in hosting the bundle, Terena Chinn-Fuji for Release Engineering, Chinmay Srivatsava for providing documentation, Sreenivas Munnangi for verifying samples integration with this bundle and many others.


Sounds great.

My only question is due to the GPL license of MySQL, if I distribute this version I am compelled to Open Source the software or does the fact that I have a separation between my software and MySQL remove this requirement.

Posted by Brent Crammond on March 26, 2008 at 09:02 PM PDT #

Will there be a distribution which bundles the 64 bit version (Windows at least) of MySQL Community Server?

Posted by NBW on March 28, 2008 at 09:36 AM PDT #

Sathyan - I installed glassfish and then I installed netbeans IDE which installed glassfish again on my windows xp. I want to uninstall the first glassfish installation...but.... i don't see any way of doing it. I sure can uninstall the netbeans or just the second installation of glassfish. I googled it and along came your blog. None of the notes were helpful for my case.


Posted by Shamsad Acers on March 30, 2008 at 01:31 AM PDT #

Old problem still exists: "Attach to native process failed" on x86_64.

See the following link for more information:

Posted by Asuka Kenji on March 30, 2008 at 06:40 PM PDT #

Thanks for your Interest in this bundle.
Please read LICENSE.txt under <Installation directory> for more information.

Thanks for your Interest in this bundle.
We do not have such bundles in plan for now.

Thanks for your Interest in this bundle.
Could u please be specific on if you ar e seeing this error during MySQL Server startup OR Application Server startup?

Posted by sathyan catari on April 07, 2008 at 04:19 AM PDT #

[Trackback] GlassFish and MySQL bundle was released a while ago and I finally got a chance to try it out. Here are simple instructions to get you started: Download GlassFish and MySQL co-bundle zip from here. Install the bundle (detailed...

Posted by Arun Gupta's Blog on August 11, 2008 at 03:52 AM PDT #

I have a distributed DB (MYSQL) , comprising of 800 db servers (huge data for a social networking company). the records are sorted in db based on user_account _id, and the table also has user's credit card number , now - given a credit card number I need to find out if it exists in any of those 800 data bases ? can I design some kind of index on distributed db?please help ...urgently needed...


Posted by Shipra on March 09, 2009 at 10:42 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed



« June 2016