[jboss-user] [JBoss Messaging] - Re: JBoss Messaging / Spring JMS compatibility?

stefa975 do-not-reply at jboss.com
Fri Sep 14 06:15:26 EDT 2007


I added this to jms-ds.xml to get a pool for my Connection
 <!-- The SIS JMS provider loader -->
  |  <mbean code="org.jboss.jms.jndi.JMSProviderLoader"
  |         name="jboss.mq:service=JMSProviderLoader,name=SISJMSProvider">
  |    <attribute name="ProviderName">DefaultSISJMSProvider</attribute>
  |    <attribute name="ProviderAdapterClass">
  |      org.jboss.jms.jndi.JNDIProviderAdapter
  |    </attribute>
  |    <!-- The combined connection factory -->
  |    <attribute name="FactoryRef">java:/ClusteredConnectionFactory</attribute>
  |    <!-- The queue connection factory -->
  |    <attribute name="QueueFactoryRef">java:/ClusteredConnectionFactory</attribute>
  |    <!-- The topic factory -->
  |    <attribute name="TopicFactoryRef">java:/ClusteredConnectionFactory</attribute>
  |    <!-- Uncomment to use HAJNDI to access JMS
  |    <attribute name="Properties">
  |       java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
  |       java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
  |       java.naming.provider.url=localhost:1100
  |    </attribute>
  |    -->
  |  </mbean>
  | 
  | <tx-connection-factory>
  |    <jndi-name>SISJmsXA</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:/DefaultSISJMSProvider</config-property
  | >
  |    <max-pool-size>20</max-pool-size>
  |  <!--  <security-domain-and-application>JmsXARealm</security-domain-and-application> -->
  |  </tx-connection-factory>
  | 

Don't forget to remove the security-domain tag. That don't work in JBM. You will only get user: null.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084368#4084368

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084368



More information about the jboss-user mailing list