1 Reply Latest reply on Oct 7, 2004 8:18 AM by Robert Szalai

    JMS ConnectionFactory Configuration

    null null Newbie

      I have a session bean that writes a message into a Queue (jms/Queue). I have done the following config. settings but getting an exception (name not bound exception) when try to acquire a connection from connectionfactory.
      Pls let me know if i'm doing anything wrong in the way i have configured the connectionfactory - JNDI in my session bean is "jms/QueueConnectionFactory". JBOSS version is 4.0.0.

      in jboss.xml: (not too sure of the <resource-managers> tag)


      <ejb-name>Request</ejb-name>
      <jndi-name>RequestBean</jndi-name>
      <local-jndi-name>RequestLocal</local-jndi-name>

      <resource-ref>
      <res-ref-name>jms/QueueConnectionFactory</res-ref-name>
      <jndi-name>jms/QueueConnectionFactory</jndi-name>
      </resource-ref>
      <pass-by-reference>false</pass-by-reference>
      <is-read-only-bean>false</is-read-only-bean>
      <refresh-period-in-seconds>-1</refresh-period-in-seconds>
      <cmt-timeout-in-seconds>0</cmt-timeout-in-seconds>
      <gen-classes/>


      <resource-managers>
      <res-name>jms/QueueConnectionFactory</res-name>
      <res-jndi-name>jms/QueueConnectionFactory</res-jndi-name>
      </resource-managers>

      *******************************************************

      in ejb-jar.xml:

      <resource-ref>
      <res-ref-name>jms/QueueConnectionFactory</res-ref-name>
      <res-type>javax.jms.QueueConnectionFactory</res-type>
      <res-auth>Container</res-auth>
      <res-sharing-scope>Shareable</res-sharing-scope>
      </resource-ref>

      ********************************************************

      in jms-ds.xml :

      <tx-connection-factory>
      <jndi-name>JmsXA</jndi-name>
      <xa-transaction/>
      <rar-name>jms-ra.rar</rar-name>
      <connection-definition>org.jboss.resource.adapter.jms.JmsConnectionFactory</connection-definition>
      <config-property name="SessionDefaultType" type="java.lang.String">javax.jms.Topic</config-property>
      <config-property name="JmsProviderAdapterJNDI" type="java.lang.String">java:/DefaultJMSProvider</config-property>
      <max-pool-size>20</max-pool-size>
      <security-domain-and-application>JmsXARealm</security-domain-and-application>
      </tx-connection-factory>

      <tx-connection-factory>
      <jndi-name>jms/QueueConnectionFactory</jndi-name>
      <xa-transaction/>
      <rar-name>jms-ra.rar</rar-name>
      <connection-definition>org.jboss.resource.adapter.jms.JmsConnectionFactory</connection-definition>
      <config-property name="SessionDefaultType" type="java.lang.String">javax.jms.Queue</config-property>
      <config-property name="JmsProviderAdapterJNDI" type="java.lang.String">java:/DefaultJMSProvider</config-property>
      </tx-connection-factory>
      </connection-factories>

      ******************************************************
      in jbossmq-destinations-service.xml jms/Queue is set