JBoss5.1でJMS

(JBossAS5.1(および内蔵しているJBossMessaging1.4.6)を使用する場合)

とにかく以下が必要。
http://www.redhat.com/docs/enUS/JBoss_Enterprise_Application_Platform/5.0.0/pdf/JBoss_Messaging_1.4.6/JBoss_Messaging_User_Guide.pdf

特にmbean定義の例は以下のサンプルを見ないと。
http://www.redhat.com/docs/en-US/JBoss_Enterprise_Application_Platform/5.0.0/jboss-messaging-examples.zip

とりあえずQueue,Topicを動かすには:

deployの下にmessagingディレクトリがあるのが前提。

それに加えて、messaging destnationのmbeanをdeploy。

jboss-messaging-examples.zipを解凍した中にある、以下のファイルをdeploy/以下に置く。

Queue
jboss-messaging-examples/queue/etc/queue-destinations-service.xml
Topic
jboss-messaging-examples/topic/etc/topic-destinations-service.xml

これでJNDIに/queue/testQueue、/topic/testTopicとして登録されます。