Add this entry to the uil2-service.xml file present in %JBOSS_HOME%\server\default\deploy\jms folder:
<mbean code="org.jboss.naming.LinkRefPairService" name="jboss.jms:alias=UserConnectionFactory"> <attribute name="JndiName">UserTopicConnectionFactory</attribute> <attribute name="RemoteJndiName">UserConnectionFactory</attribute> <attribute name="LocalJndiName">java:/UserJmsXA</attribute> <depends>jboss:service=Naming</depends> </mbean>
This will create the connection factory for you. But i havent done this before. I just tried it now and i was able to see the new entry in the jmx-console
Thanks! But how do I tie the ConnectionFactory to my Queue or Topic?
If you refer to the link I sent, it is slightly different and there's a mapping between the Queue/Topic and Connection Factory
You would need to set up your own JNDIProviderAdapter and referenced the ConnectionFactory and your EJB deployments also referenced. Take a look the jms-ds.xml file in the deploy/jms directory for an example.