1 Reply Latest reply on Aug 14, 2005 7:19 AM by Sasi Levi

    How do you create a connection factory?

    Patrick Onyeyiri Newbie

      I have been playing around with JBossMQ trying to figure out how to create a connection factory, but have so far been unsuccessful. The last code that I tried is

      <tx-connection-factory>
       <jndi-name>TopicConnectionFactory</jndi-name>
       <xa-transaction/>
       <rar-name>jms-ra.rar</rar-name>
       <adapter-display-name>JMS Adapter</adapter-display-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>
       <security-domain-and-application>JmsXARealm</security-domain-and-application>
       </tx-connection-factory>

      But this shows in JBoss initialisation in the line
      [ConnectionFactoryBindingService] Unbound connection factory for resource adapter for ConnectionManager 'jboss.jca:name=TopicConnectionFactory,service=ConnectionFactoryBinding from JNDI name 'java:TopicConnectionFactory'

      And the connection factory isnt there - so far I have only had success by creating an alias by the name of TopicConnectionFactory that redirects to ConnectionFactory.

      Finally, does the ConnectionFactory implementation handle topics and queue connections properly? if it does then I dont need to create the extra factories.

      Thanks.