You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by metatech <me...@gmail.com> on 2012/01/24 15:02:11 UTC
How to specify an "id" attribute in the activemq-broker.xml in
Blueprint format ?
Hello,
I use ServiceMix 4.4, which includes ActiveMQ 5.5.1.
When I try to specify an attribute "id" to the broker XML element, I have a
Blueprint error at deployment (see below).
Example :
<broker xmlns="http://activemq.apache.org/schema/core"
brokerName="broker1" id="myBroker">
This tag is defined with the XBean syntax.
Is it possible to reference this bean from another bean defined with the
Blueprint syntax ?
14:52:33,551 | ERROR | rint Extender: 2 | BlueprintContainerImpl |
10 - org.apache.aries.blueprint - 0.3.1 | Unable to start blueprint
container for bundle activemq-broker.xml
org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to
find property descriptor id on class
org.apache.activemq.xbean.XBeanBrokerService
at
org.apache.aries.blueprint.container.BeanRecipe.getPropertyDescriptor(BeanRecipe.java:820)[10:org.apache.aries.blueprint:0.3.1]
at
org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:802)[10:org.apache.aries.blueprint:0.3.1]
at
org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:773)[10:org.apache.aries.blueprint:0.3.1]
at
org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:754)[10:org.apache.aries.blueprint:0.3.1]
at
org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:720)[10:org.apache.aries.blueprint:0.3.1]
at
org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[10:org.apache.aries.blueprint:0.3.1]
at
org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219)[10:org.apache.aries.blueprint:0.3.1]
at
org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:147)[10:org.apache.aries.blueprint:0.3.1]
at
org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:640)[10:org.apache.aries.blueprint:0.3.1]
at
org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:331)[10:org.apache.aries.blueprint:0.3.1]
at
org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:227)[10:org.apache.aries.blueprint:0.3.1]
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_25]
at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_25]
at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_25]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)[:1.6.0_25]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)[:1.6.0_25]
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_25]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_25]
at java.lang.Thread.run(Thread.java:662)[:1.6.0_25]
Thanks in advance,
metatech
--
View this message in context: http://activemq.2283324.n4.nabble.com/How-to-specify-an-id-attribute-in-the-activemq-broker-xml-in-Blueprint-format-tp4323804p4323804.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: How to specify an "id" attribute in the activemq-broker.xml in
Blueprint format ?
Posted by metatech <me...@gmail.com>.
Hello,
Here is more information.
It looks like beans defined in XBeans are not created the same as beans
defined in Blueprint.
Here is the BeanRecipe for a XBean-defined bean :
name : .component-3
properties {id=myID}
Here is the BeanRecipe for a Blueprint-defined bean :
name : myID
properties {}
Maybe the XBean-defined bean is considered as an inner bean (where the "id"
is not allowed) ?
metatech
metatech wrote
>
> When I try to specify an attribute "id" to the broker XML element, I have
> a Blueprint error at deployment This tag is defined with the XBean syntax.
> Is it possible to reference this bean from another bean defined with the
> Blueprint syntax ?
>
--
View this message in context: http://activemq.2283324.n4.nabble.com/How-to-specify-an-id-attribute-in-the-activemq-broker-xml-in-Blueprint-format-tp4323804p4333816.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.