Chef enhancements

a couple misc tidies, including writing a pure java example
Why commented out? I presume that's related to the comment in the line above. Does it default to `mysqld`, so one adds this line if it's `mysql` instead?