How does Sun make any money?

 

Apparently, Sun Microsystems just bought MySQL. This probably won't concern you if you're stuck in 1995 and think static HTML is a good idea.

With Sun open-sourcing virtually all their products -- Java, the Solaris operating system, etc. -- just how does Sun make any money? I can see how Oracle or IBM make money: While the Eclipse toolkit is open source, virtually all WebSphere products that rely on it are closed (and cost lots and lots of money!).

Now Sun seems to be buying open source projects. What, exactly, is on their minds?