[jboss-user] [Installation, Configuration & DEPLOYMENT] - Jboss talking to ActiveMQ

dtaylor do-not-reply at jboss.com
Tue Mar 10 10:51:01 EDT 2009


We had a TomCat server listening to ActiveMQ messages by putting various RESOURCE tags in the tomcat/conf/context.xml file.  For example:

  | 	<Resource name="jms/flex/TopicConnectionFactory"        
  | 		type="org.apache.activemq.ActiveMQConnectionFactory"        
  | 		description="JMS Connection Factory"        
  | 		factory="org.apache.activemq.jndi.JNDIReferenceFactory"        
  | 		brokerURL="tcp://localhost:61616"        
  | 		brokerName="myBroker"/>

However Jboss doesn't seem to allow this.  If I create a context.xml file in the jboss/server/default/conf folder (the closest approximation of TomCat's "/server/conf" folder) and run my App that used to work fine on TomCat, it complains (it happens to be a Flex client) that the destination doesn't exist.

If I try adding the "resource" tags to either the web.xml or the jboss-web.xml file it complains that "Resource is not found as a child of jboss-web", or some variation.

I'm sure the application logic is fine, as it works just dandy in TomCat.  We just can't seem to port it to JBoss.  Where do those "resource" tags get defined in the JBoss world?



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

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



More information about the jboss-user mailing list