In mq (open mq) that is bundled with glassfish , topic and queue destinations can be auto created when a client first tries to access this queue/topic.
The properties file : GFHOME/imq/lib/props/broker/default.properties has a property imq.autocreate.queue/imq.autocreate.topic that governs the behavior of MQ broker for autocreation. By default these are true.
Iam not aware of anyway the MDB could programatically subscribe to a topic/queue destination.
[Message sent by forum member 'rampsarathy' (rampsarathy)]
http://forums.java.net/jive/thread.jspa?messageID=210248