Yes, you need to set the property of the topic/queue in the glassfish admin console as follows
PhysicalName = <name of queue>
The default JMS provider uses Name = <name of queue>, which you probably already have there.
[Message sent by forum member 'gregorz' (gregorz)]
http://forums.java.net/jive/thread.jspa?messageID=328908