activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmoore4now <...@jkmoore.net>
Subject xml configuration with xbean and Spring
Date Tue, 07 Aug 2007 16:23:07 GMT

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.


Mime
View raw message