<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Sun ONE Application Server 8.0 EJB 2.1//EN" "http://www.sun.com/software/sunone/appserver/dtds/sun-ejb-jar_2_1-0.dtd">
<sun-ejb-jar>
  <enterprise-beans>
    <unique-id>0</unique-id>
    <ejb>
      <ejb-name>GenericRA2</ejb-name>
      <jndi-name>ejb/gra2</jndi-name>
      <resource-ref>
        <res-ref-name>jms/MyQueueConnectionFactory</res-ref-name>
        <jndi-name>jms/MyQueueConnectionFactory</jndi-name>
      </resource-ref>
      <resource-ref>
        <res-ref-name>jms/MyTopicConnectionFactory</res-ref-name>
        <jndi-name>jms/MyTopicConnectionFactory</jndi-name>
      </resource-ref>
      <resource-env-ref>
        <resource-env-ref-name>jms/MDB_QUEUE</resource-env-ref-name>
        <jndi-name>MDB_QUEUE</jndi-name>
      </resource-env-ref>
      <resource-env-ref>
        <resource-env-ref-name>jms/MDB_TOPIC</resource-env-ref-name>
        <jndi-name>MDB_TOPIC</jndi-name>
      </resource-env-ref>
      <resource-env-ref>
        <resource-env-ref-name>jms/MDB_QUEUE_REPLY</resource-env-ref-name>
        <jndi-name>MDB_QUEUE_REPLY</jndi-name>
      </resource-env-ref>
      <pass-by-reference>false</pass-by-reference>
      <ior-security-config>
        <transport-config>
          <integrity>supported</integrity>
          <confidentiality>supported</confidentiality>
          <establish-trust-in-target>supported</establish-trust-in-target>
          <establish-trust-in-client>supported</establish-trust-in-client>
        </transport-config>
        <as-context>
          <auth-method>username_password</auth-method>
          <realm>default</realm>
          <required>false</required>
        </as-context>
        <sas-context>
          <caller-propagation>supported</caller-propagation>
        </sas-context>
      </ior-security-config>
      <is-read-only-bean>false</is-read-only-bean>
      <refresh-period-in-seconds>-1</refresh-period-in-seconds>
      <gen-classes/>
    </ejb>    
    <ejb>
      <ejb-name>MDB_QUEUE</ejb-name>
      <jndi-name>ejb/MDB_QUEUE</jndi-name>
      <resource-ref>
        <res-ref-name>jms/MyQueueConnectionFactory</res-ref-name>
        <jndi-name>jms/MyQueueConnectionFactory</jndi-name>
        <default-resource-principal>
          <name>mqm</name>
          <password>abc123</password>
        </default-resource-principal>
      </resource-ref>
      <resource-env-ref>
        <resource-env-ref-name>jms/MDB_QUEUE_REPLY</resource-env-ref-name>
        <jndi-name>MDB_QUEUE_REPLY</jndi-name>
      </resource-env-ref>
      <pass-by-reference>false</pass-by-reference>
      <jms-max-messages-load>1</jms-max-messages-load>
      <ior-security-config>
        <transport-config>
          <integrity>supported</integrity>
          <confidentiality>supported</confidentiality>
          <establish-trust-in-target>supported</establish-trust-in-target>
          <establish-trust-in-client>supported</establish-trust-in-client>
        </transport-config>
        <as-context>
          <auth-method>username_password</auth-method>
          <realm>default</realm>
          <required>false</required>
        </as-context>
        <sas-context>
          <caller-propagation>supported</caller-propagation>
        </sas-context>
      </ior-security-config>
      <is-read-only-bean>false</is-read-only-bean>
      <refresh-period-in-seconds>-1</refresh-period-in-seconds>
      <gen-classes/>
      <mdb-connection-factory>
          <jndi-name>jms/MyQueueConnectionFactory</jndi-name>
      </mdb-connection-factory>
      <mdb-resource-adapter>
        <resource-adapter-mid>genericra</resource-adapter-mid>
        <activation-config>
        <activation-config-property>
          <activation-config-property-name>DestinationType</activation-config-property-name>
          <activation-config-property-value>javax.jms.Queue</activation-config-property-value>
        </activation-config-property>
        <activation-config-property>
          <activation-config-property-name>ConnectionFactoryJndiName</activation-config-property-name>
          <activation-config-property-value>XAQCF1</activation-config-property-value>
        </activation-config-property>
     <activation-config-property>
    <activation-config-property-name>DestinationJndiName</activation-config-property-name>
          <activation-config-property-value>MDB_QUEUE</activation-config-property-value>
        </activation-config-property>
        <activation-config-property>
          <activation-config-property-name>MaxPoolSize</activation-config-property-name>
          <activation-config-property-value>32</activation-config-property-value>
        </activation-config-property>
                   <activation-config-property>
             <activation-config-property-name>RedeliveryAttempts</activation-config-property-name>
             <activation-config-property-value>0</activation-config-property-value>
           </activation-config-property>
           <activation-config-property>
             <activation-config-property-name>ReconnectAttempts</activation-config-property-name>
             <activation-config-property-value>4</activation-config-property-value>
           </activation-config-property>
           <activation-config-property>
             <activation-config-property-name>ReconnectInterval</activation-config-property-name>
             <activation-config-property-value>10</activation-config-property-value>
           </activation-config-property>
           <activation-config-property>
             <activation-config-property-name>RedeliveryInterval</activation-config-property-name>
             <activation-config-property-value>1</activation-config-property-value>
           </activation-config-property>
        </activation-config>
      </mdb-resource-adapter>
    </ejb>
    <ejb>
      <ejb-name>MDB_TOPIC</ejb-name>
      <jndi-name>ejb/MDB_TOPIC</jndi-name>
      <resource-ref>
        <res-ref-name>jms/MyTopicConnectionFactory</res-ref-name>
        <jndi-name>jms/MyTopicConnectionFactory</jndi-name>
        <default-resource-principal>
          <name>mqm</name>
          <password>abc123</password>
        </default-resource-principal>
      </resource-ref>
      <pass-by-reference>false</pass-by-reference>
      <jms-max-messages-load>1</jms-max-messages-load>
      <ior-security-config>
        <transport-config>
          <integrity>supported</integrity>
          <confidentiality>supported</confidentiality>
          <establish-trust-in-target>supported</establish-trust-in-target>
          <establish-trust-in-client>supported</establish-trust-in-client>
        </transport-config>
        <as-context>
          <auth-method>username_password</auth-method>
          <realm>default</realm>
          <required>false</required>
        </as-context>
        <sas-context>
          <caller-propagation>supported</caller-propagation>
        </sas-context>
      </ior-security-config>
      <is-read-only-bean>false</is-read-only-bean>
      <refresh-period-in-seconds>-1</refresh-period-in-seconds>
      <gen-classes/>
      <mdb-connection-factory>
          <jndi-name>jms/MyTopicConnectionFactory</jndi-name>
      </mdb-connection-factory>
      <mdb-resource-adapter>
        <resource-adapter-mid>genericra</resource-adapter-mid>
        <activation-config>
        <activation-config-property>
          <activation-config-property-name>DestinationType</activation-config-property-name>
          <activation-config-property-value>javax.jms.Topic</activation-config-property-value>
        </activation-config-property>
        <activation-config-property>
          <activation-config-property-name>ConnectionFactoryJndiName</activation-config-property-name>
          <activation-config-property-value>XATCF1</activation-config-property-value>
        </activation-config-property>
     <activation-config-property>
    <activation-config-property-name>DestinationJndiName</activation-config-property-name>
          <activation-config-property-value>MDB_TOPIC</activation-config-property-value>
        </activation-config-property>
        <activation-config-property>
          <activation-config-property-name>MaxPoolSize</activation-config-property-name>
          <activation-config-property-value>32</activation-config-property-value>
        </activation-config-property>
                   <activation-config-property>
             <activation-config-property-name>RedeliveryAttempts</activation-config-property-name>
             <activation-config-property-value>0</activation-config-property-value>
           </activation-config-property>
           <activation-config-property>
             <activation-config-property-name>ReconnectAttempts</activation-config-property-name>
             <activation-config-property-value>4</activation-config-property-value>
           </activation-config-property>
           <activation-config-property>
             <activation-config-property-name>ReconnectInterval</activation-config-property-name>
             <activation-config-property-value>10</activation-config-property-value>
           </activation-config-property>
           <activation-config-property>
             <activation-config-property-name>RedeliveryInterval</activation-config-property-name>
             <activation-config-property-value>1</activation-config-property-value>
           </activation-config-property>
        </activation-config>
      </mdb-resource-adapter>
    </ejb>
  </enterprise-beans>
</sun-ejb-jar>

