You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by kmoore4now <ke...@jkmoore.net> on 2007/08/07 18:23:07 UTC

xml configuration with xbean and Spring

How is the "broker" element associated with the broker class?

I have this in a Spring context file:

<?xml version="1.0" encoding="UTF-8"?>
<beans 
  xmlns="http://www.springframework.org/schema/beans" 
  xmlns:amq="http://activemq.org/config/1.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
  http://activemq.org/config/1.0
http://activemq.apache.org/snapshot-schema/activemq-core-5.0-SNAPSHOT.xsd">

<!--  lets create an embedded ActiveMQ Broker -->
  <amq:broker useJmx="false" persistent="false">
    <amq:transportConnectors>
      <amq:transportConnector uri="tcp://${host.name}:${jms.broker.port}" />
    </amq:transportConnectors>
  </amq:broker>
  
</beans>

I see the broker definition in the xsd:

<!--  element for type: org.apache.activemq.xbean.XBeanBrokerService --> 
- <xs:element name="broker"> etc.....

Is the comment the way the "broker" element is associated with a class?

The xbean site http://geronimo.apache.org/xbean/custom-xml.html suggests
that this mapping happens in a property file, but I can't find such a file
in my installation.



-- 
View this message in context: http://www.nabble.com/xml-configuration-with-xbean-and-Spring-tf4231196s2354.html#a12037572
Sent from the ActiveMQ - User mailing list archive at Nabble.com.