Configuration of UIL2 Connection Factory
cboyan Dec 4, 2003 11:55 PMI am using JBoss 3.2.1 with very few changes out of the box. I am trying to connect to a JMS service from a client application so that I can listen for messages that are posted by server side components. The only JMS entry I can see in the JNDI View in the management console is for java:JmsXA - this is not visible outside of the server JVM (right?).
The jbossmq-service.xml file has a number of mbeans configured for various invocation layers
The default/deploy/jms/jms-ds.xml file has a connection-factory element that declares the JmsXA ConnectionFactory entry (mapped to java:/XAConnectionFactory) so I guess I need to add another entry for one of the other invocation layers.
I have scoured the JBoss Admin and Development book but I can't find any mention of the jms-ds.xml config file. Can anyone tell me how to configure a ConnectionFactory (and anything else I need) to connect to the message service from a separate client app?
Also ... all of the example code I have seen does a lookup for "ConnectionFactory" but I don't find this defined anywhere and can't see it in the JNDI view. Is this from an earlier version of JBoss or am I missing something else?
Here is the jms-ds.xml file that defines the JmsXA ConnectionFactory.
<?xml version="1.0" encoding="UTF-8"?>
<connection-factories>
<!-- ==================================================================== -->
<!-- JMS Stuff -->
<!-- ==================================================================== -->
<!-- The JMS provider loader -->
DefaultJMSProvider
org.jboss.jms.jndi.JBossMQProvider
java:/XAConnectionFactory
java:/XAConnectionFactory
<!-- The server session pool for Message Driven Beans -->
<depends optional-attribute-name="XidFactory">jboss:service=XidFactory
StdJMSPool
org.jboss.jms.asf.StdServerSessionPoolFactory
<!-- JMS XA Resource adapter, use this to get transacted JMS in beans -->
<tx-connection-factory>
<jndi-name>JmsXA</jndi-name>
<xa-transaction/>
<adapter-display-name>JMS Adapter</adapter-display-name>
<config-property name="SessionDefaultType" type="java.lang.String">javax.jms.Topic</config-property>
<security-domain>JmsXARealm</security-domain>
</tx-connection-factory>
</connection-factories>
Thanks Colin
ps. I couldn't see any error messages in the boot or server logs either.