Hi,

Is it possible to import activemq xml tags from other xml files ? I try to
use XI:include but activemq generates the following error 
 
ERROR: java.lang.Exception:
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.apache.activemq.xbean.XBeanBrokerService#0' define
d in class path resource [activemq.xml]: Error setting property values;
nested exception is org.springframework.beans.NotWritablePropertyException:
Invalid property 'incl
ude' of bean class [org.apache.activemq.xbean.XBeanBrokerService]: Bean
property 'include' is not writable or has an invalid setter method. Does the
parameter type of the
 setter match the return type of the getter?
java.lang.Exception:
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in cl
ass path resource [activemq.xml]: Error setting property values; nested
exception is org.springframework.beans.NotWritablePropertyException: Invalid
property 'include' of
 bean class [org.apache.activemq.xbean.XBeanBrokerService]: Bean property
'include' is not writable or has an invalid setter method. Does the
parameter type of the setter
 match the return type of the getter?
        at
org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:99)

<beans
  xmlns="http://www.springframework.org/schema/beans";
  xmlns:amq="http://activemq.apache.org/schema/core";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xmlns:xi="http://www.w3.org/2001/XInclude";
  xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
  http://activemq.apache.org/schema/core
http://activemq.apache.org/schema/core/activemq-core.xsd";>

    <!-- 
        The <broker> element is used to configure the ActiveMQ broker. 
    -->
    <broker xmlns="http://activemq.apache.org/schema/core";>
     ...
         <xi:include href="destinations.xml" />


-----
Charles Moulliard
SOA Architect

My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  
-- 
View this message in context: 
http://old.nabble.com/activemq.conf---import-xml-tags-using-XInclude-tp28980321p28980321.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to