Monday Apr 04, 2011

It's all about embedded (and testing)

In his recent "Test Coverage for your Enterprise Beans" blog post Markus Eisele starts by discussing the differences between the GlassFish Embedded API, the standard EJB 3.1 API, and the Maven GlassFish Plugin. He then goes on to describe his Eclipse + Eclemma plugin + GlassFish Embedded 3.1 + Maven configuration. He also discusses Global JNDI names (new in EJB 3.1) and the use of ANT with cases when you'll need in-place instrumentation of your code for proper code coverage execution.

Test Coverage for your Enterprise Beans. Running Eclemma with GlassFish 3.1
Embedded GlassFish with installation-less MySQL

In "Embedded GlassFish with installation-less MySQL", Bhavani discusses how to run tests using Embedded GlassFish with MySQL as the database (already running or not). This approach uses @DataSourceDefinition (new in Java EE 6 and placed here on servlets) with either the default JDBC driver or the Connector/MXJ utility. It also provides a sample persistence.xml for code using JPA.

In all the cases above, Embedded GlassFish is used via its Maven artifact: org.glassfish.extras:glassfish-embedded-[all|web]:3.1

Monday May 24, 2010

MySQL and Java - Free Webinar on Using MySQL Connector/J

Mark Matthews, Todd Farmer and Rebecca Hansen are giving a free webinar tomorrow entitled: Better Java Application Scalability and Reliability Using MySQL Connector/J Features.

Mark is the original creator of MySQL Connector/J and author of the book MySQL and Java Developer's Guide, Todd is the manager for the America's Support team for MySQL and Rebecca is the Product Marketing Manager for MySQL.

You only need your browser to attend; webinar is free but registration is required. The event is Tue May 25th (tomorrow) at 9am US PT (Other TZs), more details here. also has an archive of Webinars available for replay. For webinars with Duke and Sakila check here - and if you are partial to elePHPant check here.

Wednesday May 12, 2010

MySQL and Java - Adoption Survey and Webinar Series

I've not had time since the CiC to track how MySQL is faring under Oracle but yesterday I noticed that the front page of has a spotlight on Java and MySQL, including their Webinar Series as well as links to several whitepapers and other resources.

The spotlight also mentions that Java is the most popular development language for MySQL applications; I asked for a peek at the details and Java is slightly ahead of PHP, with JavaScript and Perl farther back, followed by a bunch of others.  I don't know the details of the survey methodology, but, even adding the usual disclaimers, this is a good reminder of the synergies innate between MySQL and a lightweight OSS Java container like GlassFish.

Added - Just noticed that the front page has changed and it no longer talks about the survey. Should have pushed the spotlight yesterday...

Thursday May 06, 2010

MySQL track at ODTUG conference 2010

MySQL track at Kaleidoscope

The Oracle Development Tools Users Group (ODTUG) is holding its annual conference in Washington, DC, from June 27th to July 1st. The great news this year is that, at popular demand, there will be a MySQL track, organized and manned by the MySQL community.

The ODTUG is an independent group of very skilled Oracle users, fond of high level training, specifically in matters of development tools. This year, after the Sun acquisition was finalized, the ODTUG board of directors asked the MySQL community to provide some contents for their conference, since a large part of ODTUG members are also MySQL users.

The task was happily taken by two recently named Oracle ACE Directors, Ronald Bradford and Sheeri K. Cabral, who have quickly put together a MySQL track full of talents. Thanks, Ronald, and Sheeri: that was a hell of a job that you have pulled in such a short time!

This is what seems to be the start of a good cooperation between communities. I see happy faces from both sides. Now let's see how it evolves on the conference grounds!

Sunday Dec 20, 2009

MySQL Conference 2010 - Call for participation is open

MySQL Conference 2010

The MySQL Conference 2010, with Sun Microsystems as a founding sponsor, has been announced and the call for participation is open.

It's coming later than usual, but it's an opportunity for would be speakers. They will be able to propose talks based on the latest technology, making it even more interesting for attendees.

Some of the program is already online. The tutorial page has a great lineup of speakers and advanced topics. More will be announced when the selection ends, at the end of January.

In the meantime, early bird registration is also open. You will save a few hundred bucks by registering before February.

Wednesday Nov 11, 2009

In This Week's Episode of the Sun/Oracle Saga...

This week carries a new episode in the Sun/Oracle/EU saga: The EU Comission has issued a statement of objections on the acquisition of Sun by Oracle.

Since I am a Sun employee, I will just provide the basic links, no matter how tempting it might be to go beyond that...

• (Nov 9th) EU issues SoO - I've only found indirect references to the SoO, like Sun's K-8 Filing.
• (later that same day...) Oracle reacted with a PR Statement.
• (a bit later...) The DOJ issued their own comment on the EU SoO.
• (next morming, Nov 10th) And the EU comments on the DOJ comment (Reuters)
• (and, on Nov 11th) According to eWeek Europe, the next step is a hearing on Nov 25th.

The material would make for good pulp fiction. It's very sad to see the impact on people, but today I was talking with a friend that was affected and he was being very good at keeping things in perspective, so I thought of using the front cover of a true pulp fiction: Doc Savage - which I first encountered in an old Spanish translation in a storage room in my grandfather's flat in Barcelona (together with copies of The Shadow and El Coyote).

Perhaps also time to watch again the movie? Blu-ray, pretty please?

Tuesday Oct 27, 2009

New "Oracle and Sun Overview and FAQ"

Oracle has updated their page on Oracle and Sun and it now includes a PDF entitled "Oracle and Sun Overview and FAQ".  Check it out for comments on many topics covering Sun's Hardware (SPARC, Storage, x86) and Software offerings, including NetBeans, OpenOffice, MySQL, xVM OpsCenter, OpenSource, VirtualBox and GlassFish.

AWS Now With MySQL Support

Amazon has just announced the availability of a new service: the Amazon Relational Database Service (Amazon RDS), based on MySQL 5.1 (AWS Blog, RDS@AWS).  They support both InnoDB and MyISAM but not replication.  See notes from: Mark Callahan@Facebook, Robert Treat@OmniTI, CannelWeb...

RDS's pricing depends on the size of the DB instance, ranging from 1.7 GB, 1 ECU to 68 GB of memory, 26 ECUs. Also note that EC2 has lowered its prices.

Quoting from the RDS site, this is how Amazon is presenting the value prop:

Amazon RDS automatically patches the database software and backs up your database, storing the backups for a user-defined retention period. You also benefit from the flexibility of being able to scale the compute resources or storage capacity associated with your relational database instance via a single API call. As with all Amazon Web Services, there are no up-front investments required, and you pay only for the resources you use.

More AWS info at Products, FAQs and elsewhere at AWS. Overall, this is a good move from Amazon, and the whole space is going to continue to change rapidly in the near future, see for example AWS@Oracle and Oracle@AWS.

Wednesday Sep 02, 2009

Oswald@Work is now "The TAO of AMP"


Kai's em novo blog como um funcionário da Sun é agora o The TAO of AMP e os posts mais recentes estão começando a refletir o estilo dele:

Impulsione seu site AMP utilizando mod_rewrite
O Guia de Manga de DataBases

Ainda da tempo para adicionar The TAO of AMP à sua lista de leitura diária.

Thursday Aug 20, 2009

MySQL Labs provide server snapshots

MySQL Labs

MySQL opens its labs to the community. Users who want to test the early builds, before they are released for general availability can get them from MySQL Labs.

There is a detailed announcement that warns against using these binaries in production, but encourages everyone to test them. A companion tutorial explains how to use the snapshots to test the InnoDB plugin, which was released recently, and it is included in the latest MySQL 5.1 binaries.

Sunday Aug 16, 2009

Joyent Accelerator for MySQL


Joyent and Sun have announced a highly tuned MySQL Accelerator that claims 2x-4x better performance than EC2 (but see comments).

Joyent focuses on "Enterprise-Class Cloud Computing", with offerings on Public Cloud and the Private Cloud, plus a new Smart Platform in beta (tutorial). Joyent's Cloud is Based on OpenSolaris and they are the largest OpenSolaris installation in the world.

Joyent and Sun have a long collaboration on Software and Hardware ([1], [2], [3]). One of the containers supported in Joyent's Accelerators is GlassFish; see [4], [5], [6], and the MySQL Appliance, plus the Zeus Accelerator (built using ZXTM's Extensible Traffic Manager) and GlassFish make a very good Java Stack. We had covered Joyent's hosting in earlier posts (@TA, @MtR).

BTW, while checking on this piece, I see that Joyent has Sold Strongspace and BingoDisk to ExpandDrive so they can "... focus on Joyent Accelerators and Joyent Smart".

Wednesday Aug 12, 2009

InnoDB Plugin 1.0.4 Now Available


Ken Jacobs (Dr. DBA) has Announced Plugin 1.0.4. This release has significant performance improvements, including a number of key 3rd Party Contributions. Reactions from the community so far seem very positive ([1], [2]).

Hopefully this is good news for everybody out there reading tea-leaves on how Oracle will treat its not-yet-there new projects.

Sunday Aug 09, 2009

Kai 'Oswald' Joins the WebStack Team


More good news around the WebStack team: Kai 'Oswald' Seidler, of Apache Friends and XAMPP fame, has joined the team - see Kai's post (German, mock-english). XAMPP is one of the (the?) most popular WAMP Distros (see Google Trend), and Kai will now be able to work full-time on it.

I talked with Kai a few months ago and enjoyed our phone chat a lot but, unfortunately, I was away when he visited Santa Clara recently (photo gallery). One of the topics during the trip was how to leverage the WebStack and the XAMPP efforts; stay tuned for news on that.

Welcome to the team, Kai!

Sunday Aug 02, 2009

GlassFish WebStack... Helping With Outage


I see that Kaj mentioned the (GlassFish) WebStack when telling the story of the MySQL.Com Outage.

One of the main benefits of the WebStack is that all the pieces work very well together, so that was one less thing to worry about; the electrical woes were stressful enough...