realityforge/chef-glassfish — pull request #7 by ephess (2013-04-25 21:36:29+00:00)
Title: Added mq_ensure_running resource to replace upstart checks.

Originally the upstart job blocked until the port had opened, this was
to ensure that the broker was online before other resources attempted to
access it. This causes a few issues when the box is running IPv6 due to
differences in the netstat output.

A more robust solution is to actually atempt to connect to the port
using a resource, and spin until it either comes online or times out.
The glassfish_mq_ensure_running resource implements this method.