I dont think the connection creation is causing a problem, if the connection was not established you would see a different error message in the log file.
When you started the broker on standalone mode, were you able to create a connection to it from a standalone client program ? Are imq admin commands working ?
Please try with 32 bit VM, that might take us forward.
Also, could you provide the jstack of glassfish when the hang occurs.
[Message sent by forum member 'rampsarathy' (rampsarathy)]
http://forums.java.net/jive/thread.jspa?messageID=324202