If you get exceptions that are something along the lines of
at com.sun.messaging.jms.ra.DirectConnectionFactory._createConnectionId(DirectConnectionFactory.java:424)
try removing the ${glassfish3}/glassfish/domains/domain1/imq/instances/imqbroker/lock file.