JMS Provider
The jms provider specifies how to access the jms server. It is mainly jndi configuration with items that identify the jms connection factory bindings
inside that jndi context.
Attributes
It has two identities, the first the jmx name of the mbean deployment, e.g.
<mbean code="org.jboss.jms.jndi.JMSProviderLoader" name="jboss.mq:service=JMSProviderLoader,name=MyJMSProvider">
the second is a binding into which is referenced by the MDB and jms resource adapter deployment. e.g.
<attribute name="ProviderName">MyJMSProvider</attribute>
Note: This actually binds it to
java:/MyJMSProvider
Configurable attributes
ProviderName
- the jndi binding of the provider, it actually binds tojava:/ProviderName
ProviderAdapterClass
- the class that implements the jndi lookup, must implement the interfaceorg.jboss.jms.jndi.JMSProviderAdapter
Properties
- optional properties to configure the jndi contextFactoryRef
- the jndi binding of thejavax.jms.ConnectionFactory
within the jndi context (jboss4/jms1.1 only)
QueueFactoryRef
- the jndi binding of thejavax.jms.QueueConnectionFactory
within the jndi context
TopicFactoryRef
- the jndi binding of thejavax.jms.TopicConnectionFactory
within the jndi context
Example
<!-- The JMS provider loader --> <mbean code="org.jboss.jms.jndi.JMSProviderLoader" name="jboss.mq:service=JMSProviderLoader,name=HAJNDIJMSProvider"> <attribute name="ProviderName">HAJNDIJMSProvider</attribute> <attribute name="ProviderAdapterClass"> org.jboss.jms.jndi.JNDIProviderAdapter </attribute> <!-- The combined connection factory --> <attribute name="FactoryRef">XAConnectionFactory</attribute> <!-- The queue connection factory --> <attribute name="QueueFactoryRef">XAConnectionFactory</attribute> <!-- The topic factory --> <attribute name="TopicFactoryRef">XAConnectionFactory</attribute> <!-- Access JMS via HAJNDI --> <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>
Comments