tweaked glassfish cookbook