Here's a sample of what I've done (below).
I'd like to figure out how to create physical queues on the MQ rather than just the connectors and interfaces.
Maybe the queue objects themselves can't be created from Glassfish since they reside within the Sun Message Queue?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE resources PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Resource Definitions //EN" "
http://www.sun.com/software/appserver/dtds/sun-resources_1_3.dtd">
<resources>
<!--
FILE: dam-prototype/dam-ejb-fab/setup/developer/sun-resources.xml
This files has both the Seattle ADM FAB 01 section
(../acmesd-admlim01/sun-resources.xml)
and
This files has both the New York ADM FAB 01 section
(../acmesg-admlim01/sun-resources.xml)
-->
<!-- ******************** Seattle HUB ******************** -->
<!-- QUEUES AND TOPICS -->
<!-- Unfortunately, it is necessary to create the HUB queues on the
FAB MQ so that resource injection on the FAB EJBs succeeds. -->
<!-- from HUB to all FABs topic -->
<admin-object-resource enabled="true" jndi-name="jms/HubToFabTopic" object-type="user" res-adapter="jmsra" res-type="javax.jms.Topic">
<description>Unused: This queue is on HUB and referenced by FAB EJBs.</description>
<property name="Name" value="HubToFabTopic"/>
</admin-object-resource>
<!-- from HUB to each FAB queue -->
<!-- for SAN 01 -->
<admin-object-resource enabled="true" jndi-name="jms/HubToFabSan01Queue" object-type="user" res-adapter="jmsra" res-type="javax.jms.Queue">
<description>Unused: This queue is on HUB and referenced by FAB EJBs.</description>
<property name="Name" value="HubToFabSan01Queue"/>
</admin-object-resource>
<!-- ******************** Seattle ADM FAB 01 ******************** -->
<!-- QUEUES AND TOPICS -->
<admin-object-resource enabled="true" jndi-name="jms/FabSan01ToHubQueue" object-type="user" res-adapter="jmsra" res-type="javax.jms.Queue">
<description>Seattle ADM FAB 01 records for HUB-BPM</description>
<property name="Name" value="FabSan01ToHubQueue"/>
</admin-object-resource>
<admin-object-resource enabled="true" jndi-name="jms/FabSan01ToPtsQueue" object-type="user" res-adapter="jmsra" res-type="javax.jms.Queue">
<description>Seattle ADM FAB 01 records for PTS</description>
<property name="Name" value="FabSan01ToPtsQueue"/>
</admin-object-resource>
<!-- FACTORIES AND POOLS -->
<!-- local hosts -->
<connector-resource enabled="true" jndi-name="jms/FabSan01Factory" object-type="user" pool-name="jms/FabSan01Pool">
<description>Connection factory used by the FAB SAN 01 senders and publishers</description>
</connector-resource>
<connector-connection-pool
associate-with-thread="false" connection-creation-retry-attempts="0"
connection-creation-retry-interval-in-seconds="10" connection-definition-name="javax.jms.ConnectionFactory"
connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" fail-all-connections="false"
idle-timeout-in-seconds="300" is-connection-validation-required="false" lazy-connection-association="false"
lazy-connection-enlistment="false" match-connections="true" max-connection-usage-count="0" max-pool-size="32"
max-wait-time-in-millis="60000" name="jms/FabSan01Pool" pool-resize-quantity="2" resource-adapter-name="jmsra"
steady-pool-size="8" validate-atmost-once-period-in-seconds="0">
<description>FAB SAN01 connection pool for senders and publishers</description>
</connector-connection-pool>
<!-- remote hosts -->
<connector-resource enabled="true" jndi-name="jms/HubToFabSan01TopicFactory" object-type="user" pool-name="jms/HubToFabSan01TopicPool">
<description>HubToFabTopic factory for Seattle FAB 01</description>
<property name="subscriptionDurability" value="Durable"/>
<property name="clientId" value="FabSan01"/>
<property name="subscriptionName" value="FabSan01"/>
</connector-resource>
<connector-connection-pool
associate-with-thread="false" connection-creation-retry-attempts="0"
connection-creation-retry-interval-in-seconds="10" connection-definition-name="javax.jms.TopicConnectionFactory"
connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" fail-all-connections="false"
idle-timeout-in-seconds="300" is-connection-validation-required="false" lazy-connection-association="false"
lazy-connection-enlistment="false" match-connections="true" max-connection-usage-count="0" max-pool-size="32"
max-wait-time-in-millis="60000" name="jms/HubToFabSan01TopicPool" pool-resize-quantity="2" resource-adapter-name="jmsra"
steady-pool-size="8" validate-atmost-once-period-in-seconds="0">
<description>HubToFabTopic pool for Seattle FAB 01</description>
<property name="AddressList" value="acmesd-hublim01"/>
</connector-connection-pool>
<connector-resource enabled="true" jndi-name="jms/HubToFabSan01Factory" object-type="user" pool-name="jms/HubToFabSan01Pool">
<description>HUB factory for Seattle ADM FAB 01</description>
</connector-resource>
<connector-connection-pool
associate-with-thread="false" connection-creation-retry-attempts="0"
connection-creation-retry-interval-in-seconds="10" connection-definition-name="javax.jms.QueueConnectionFactory"
connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" fail-all-connections="false"
idle-timeout-in-seconds="300" is-connection-validation-required="false" lazy-connection-association="false"
lazy-connection-enlistment="false" match-connections="true" max-connection-usage-count="0" max-pool-size="32"
max-wait-time-in-millis="60000" name="jms/HubToFabSan01Pool" pool-resize-quantity="2" resource-adapter-name="jmsra"
steady-pool-size="8" validate-atmost-once-period-in-seconds="0">
<description>HUB pool for Seattle ADM FAB 01</description>
<property name="AddressList" value="acmesd-hublim01"/>
</connector-connection-pool>
<!-- ******************** New York ADM FAB 01 ******************** -->
<!-- QUEUES AND TOPICS -->
<admin-object-resource enabled="true" jndi-name="jms/FabSgp01ToHubQueue" object-type="user" res-adapter="jmsra" res-type="javax.jms.Queue">
<description>Seattle ADM FAB 01 records for PTS</description>
<property name="Name" value="FabSgp01ToHubQueue"/>
</admin-object-resource>
<admin-object-resource enabled="true" jndi-name="jms/FabSgp01ToPtsQueue" object-type="user" res-adapter="jmsra" res-type="javax.jms.Queue">
<description>New York ADM FAB 01 records for PTS</description>
<property name="Name" value="FabSgp01ToPtsQueue"/>
</admin-object-resource>
<!-- FACTORIES AND POOLS -->
<!-- local hosts -->
<connector-resource enabled="true" jndi-name="jms/FabSgp01Factory" object-type="user" pool-name="jms/FabSgp01Pool">
<description>Connection factory used by the FAB SGP 01 senders and publishers</description>
</connector-resource>
<connector-connection-pool
associate-with-thread="false" connection-creation-retry-attempts="0"
connection-creation-retry-interval-in-seconds="10" connection-definition-name="javax.jms.ConnectionFactory"
connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" fail-all-connections="false"
idle-timeout-in-seconds="300" is-connection-validation-required="false" lazy-connection-association="false"
lazy-connection-enlistment="false" match-connections="true" max-connection-usage-count="0" max-pool-size="32"
max-wait-time-in-millis="60000" name="jms/FabSgp01Pool" pool-resize-quantity="2" resource-adapter-name="jmsra"
steady-pool-size="8" validate-atmost-once-period-in-seconds="0">
<description>FAB SGP 01 connection pool for senders and publishers</description>
</connector-connection-pool>
<!-- remote hosts -->
<connector-resource enabled="true" jndi-name="jms/HubToFabSgp01TopicFactory" object-type="user" pool-name="jms/HubToFabSgp01TopicPool">
<description>HubToFabTopic factory for New York FAB 01</description>
<property name="subscriptionDurability" value="Durable"/>
<property name="clientId" value="FabSgp01"/>
<property name="subscriptionName" value="FabSgp01"/>
</connector-resource>
<connector-connection-pool
associate-with-thread="false" connection-creation-retry-attempts="0"
connection-creation-retry-interval-in-seconds="10" connection-definition-name="javax.jms.TopicConnectionFactory"
connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" fail-all-connections="false"
idle-timeout-in-seconds="300" is-connection-validation-required="false" lazy-connection-association="false"
lazy-connection-enlistment="false" match-connections="true" max-connection-usage-count="0" max-pool-size="32"
max-wait-time-in-millis="60000" name="jms/HubToFabSgp01TopicPool" pool-resize-quantity="2" resource-adapter-name="jmsra"
steady-pool-size="8" validate-atmost-once-period-in-seconds="0">
<description>HubToFabTopic pool for New York FAB 01</description>
<property name="AddressList" value="acmesd-hublim01"/>
</connector-connection-pool>
<connector-resource enabled="true" jndi-name="jms/HubToFabSgp01Factory" object-type="user" pool-name="jms/HubToFabSgp01Pool">
<description>HUB factory for New York ADM FAB 01</description>
</connector-resource>
<connector-connection-pool
associate-with-thread="false" connection-creation-retry-attempts="0"
connection-creation-retry-interval-in-seconds="10" connection-definition-name="javax.jms.QueueConnectionFactory"
connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" fail-all-connections="false"
idle-timeout-in-seconds="300" is-connection-validation-required="false" lazy-connection-association="false"
lazy-connection-enlistment="false" match-connections="true" max-connection-usage-count="0" max-pool-size="32"
max-wait-time-in-millis="60000" name="jms/HubToFabSgp01Pool" pool-resize-quantity="2" resource-adapter-name="jmsra"
steady-pool-size="8" validate-atmost-once-period-in-seconds="0">
<description>HUB pool for New York ADM FAB 01</description>
<property name="AddressList" value="acmesd-hublim01"/>
</connector-connection-pool>
</resources>
[Message sent by forum member 'frenchdrip' (frenchdrip)]
http://forums.java.net/jive/thread.jspa?messageID=245301