You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by j0llyr0g3r <ti...@wincor-nixdorf.com> on 2007/10/15 17:33:17 UTC
5.0-Snapshot: changes in xml-scheme not reflected in sample
configs?
Hey ho,
when i start an activemq-broker with the provided example configuration file
i get an
Initialization of bean failed; nested exception is
org.springframework.beans.InvalidPropertyException: Invalid property
'memoryUsage' of bean class [org.apache.activemq.xbean.XBeanBrokerService]:
No property 'memoryUsage' found
The error is caused by the following configuration item in the example
configuration:
<memoryManager>
<usageManager id="memory-manager" limit="20 MB"/>
</memoryManager>
So i figured: Ok, obviously they changed the xml-scheme and this change is
not reflected in the example configs.
So i looked at the used xml-scheme for the 5.0-snapshot under:
http://activemq.apache.org/config/1.0/core/activemq-core-5.0-SNAPSHOT.xsd
In this scheme i see the following declaration:
<xs:element name="memoryUsage">
...........
...........
<xs:attribute name="limit" type="xs:long">
−
<xs:annotation>
−
<xs:documentation>
Sets the memory limit in bytes. Setting the limit in bytes will
set the
usagePortion to 0 since the UsageManager is not going to be portion based
off the parent. When set using XBean, you can use values such as: "20
mb", "1024 kb", or "1 gb"
</xs:documentation>
</xs:annotation>
</xs:element>
Based on the declaration above, i figured that something like
<memoryUsage id="memory-manager" limit="200" />
would do the trick, but unfortunately it doesn't, scince i am getting the
following error:
No property 'memoryUsage' found
So, 2 questions arise:
1. What would be the correct definition?
2. If some developer reads: Could you please fix in your CVS-repository (or
whereever)?
Thx for every help guys....
--
View this message in context: http://www.nabble.com/5.0-Snapshot%3A-changes-in-xml-scheme-not-reflected-in-sample-configs--tf4628026s2354.html#a13214349
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: 5.0-Snapshot: changes in xml-scheme not reflected in sample
configs?
Posted by j0llyr0g3r <ti...@wincor-nixdorf.com>.
Ok folks,
i didn't see the solution because this xml-scheme is HUGE.
If i get it right, instead of declaring something like
<memoryManager>
<usageManager id="memory-manager" limit="20 MB"/>
</memoryManager>
within the <broker> -scope you have to declare something like
<memoryUsage limit="200" />
outside the scope of <broker>
Could please some of the developer tell wether i am right and possibly fix
this?
j0llyr0g3r wrote:
>
> Hey ho,
>
> when i start an activemq-broker with the provided example configuration
> file i get an
>
> Initialization of bean failed; nested exception is
> org.springframework.beans.InvalidPropertyException: Invalid property
> 'memoryUsage' of bean class
> [org.apache.activemq.xbean.XBeanBrokerService]: No property 'memoryUsage'
> found
>
> The error is caused by the following configuration item in the example
> configuration:
>
> <memoryManager>
> <usageManager id="memory-manager" limit="20 MB"/>
> </memoryManager>
>
> So i figured: Ok, obviously they changed the xml-scheme and this change is
> not reflected in the example configs.
>
> So i looked at the used xml-scheme for the 5.0-snapshot under:
> http://activemq.apache.org/config/1.0/core/activemq-core-5.0-SNAPSHOT.xsd
>
> In this scheme i see the following declaration:
>
> <xs:element name="memoryUsage">
> ...........
> ...........
> <xs:attribute name="limit" type="xs:long">
> −
> <xs:annotation>
> −
> <xs:documentation>
>
> Sets the memory limit in bytes. Setting the limit in bytes
> will set the
> usagePortion to 0 since the UsageManager is not going to be portion based
> off the parent. When set using XBean, you can use values such as: "20
> mb", "1024 kb", or "1 gb"
>
> </xs:documentation>
> </xs:annotation>
> </xs:element>
>
> Based on the declaration above, i figured that something like
>
> <memoryUsage id="memory-manager" limit="200" />
>
> would do the trick, but unfortunately it doesn't, scince i am getting the
> following error:
>
> No property 'memoryUsage' found
>
> So, 2 questions arise:
>
> 1. What would be the correct definition?
>
> 2. If some developer reads: Could you please fix in your CVS-repository
> (or whereever)?
>
> Thx for every help guys....
>
>
--
View this message in context: http://www.nabble.com/5.0-Snapshot%3A-changes-in-xml-scheme-not-reflected-in-sample-configs--tf4628026s2354.html#a13214834
Sent from the ActiveMQ - User mailing list archive at Nabble.com.