You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by londonukm <gr...@hotmail.co.uk> on 2012/03/28 13:52:00 UTC

Spring configuration problem using new Blueprint xml file in ActiveMQ

Hi, 

I am in the process of updating my springContext.xml configuration files in
some of my servicemix (4.4.1)  bundles to the Blueprint specification. I am
getting an error and wondered if someone could check it for me. Previously
when i wanted to use properties from a system configuration file i would
use:

/    
    <bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
      <property name="locations">
        <list>
          <value>file:${trh.conf.folder}activemq.properties</value>
        </list>
      </property>
      <property name="properties">
        <props>
          <prop
key="activemq.transportconnector.openwire.host">localhost</prop>
          <prop key="activemq.transportconnector.openwire.port">61619</prop>
        </props>
      </property>
    </bean>/

However, this is now generating an error message:

/14:18:45,415 | ERROR | rint Extender: 2 | BlueprintContainerImpl          
| 10 - org.apache.aries.blueprint - 0.3.1 | Unable to start blueprint
container for bundle activemq.xml
org.osgi.service.blueprint.container.ComponentDefinitionException: Error
setting property: PropertyDescriptor <name: locations, getter: null, setter:
[public void
org.springframework.core.io.support.PropertiesLoaderSupport.setLocations(org.springframework.core.io.Resource[])]
	at
org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:807)[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_19]
	at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_19]
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_19]
	at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)[:1.6.0_19]
	at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)[:1.6.0_19]
	at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_19]
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_19]
	at java.lang.Thread.run(Thread.java:619)[:1.6.0_19]
Caused by: java.lang.Exception: Unable to convert from
[Ljava.lang.Object;@38246607 to org.springframework.core.io.Resource[](error
converting array element)
	at
org.apache.aries.blueprint.container.AggregateConverter.convertToArray(AggregateConverter.java:408)[10:org.apache.aries.blueprint:0.3.1]
	at
org.apache.aries.blueprint.container.AggregateConverter.convert(AggregateConverter.java:164)[10:org.apache.aries.blueprint:0.3.1]
	at
org.apache.aries.blueprint.container.BlueprintRepository.convert(BlueprintRepository.java:373)[10:org.apache.aries.blueprint:0.3.1]
	at
org.apache.aries.blueprint.utils.ReflectionUtils$PropertyDescriptor.convert(ReflectionUtils.java:323)[10:org.apache.aries.blueprint:0.3.1]
	at
org.apache.aries.blueprint.utils.ReflectionUtils$MethodPropertyDescriptor.internalSet(ReflectionUtils.java:476)[10:org.apache.aries.blueprint:0.3.1]
	at
org.apache.aries.blueprint.utils.ReflectionUtils$PropertyDescriptor.set(ReflectionUtils.java:307)[10:org.apache.aries.blueprint:0.3.1]
	at
org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:805)[10:org.apache.aries.blueprint:0.3.1]
	... 17 more
Caused by: java.lang.Exception: Unable to convert value
file:D:\apache-servicemix\dev\apache-servicemix-4.4.1\bin\..\conf\activemq.properties
to type interface org.springframework.core.io.Resource. Type interface
org.springframework.core.io.Resource is an interface or an abstract class
	at
org.apache.aries.blueprint.container.AggregateConverter.createObject(AggregateConverter.java:298)[10:org.apache.aries.blueprint:0.3.1]
	at
org.apache.aries.blueprint.container.AggregateConverter.convertFromString(AggregateConverter.java:292)[10:org.apache.aries.blueprint:0.3.1]
	at
org.apache.aries.blueprint.container.AggregateConverter.convert(AggregateConverter.java:162)[10:org.apache.aries.blueprint:0.3.1]
	at
org.apache.aries.blueprint.container.AggregateConverter.convertToArray(AggregateConverter.java:406)[10:org.apache.aries.blueprint:0.3.1]
	... 23 more&lt;/i>

Any feedback, advice would be greatly appreciated. Perhaps there is a
different way of handling this type of thing now? My full configuration file
is here as well just in case it helps.

/
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
          
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0"
          
xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"
           xmlns:amq="http://activemq.apache.org/schema/core">

    <manifest>
      Export-Service = javax.jms.ConnectionFactory
    </manifest>
  
    
    <bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
      <property name="locations">
        <list>
          <value>file:${trh.conf.folder}activemq.properties</value>
        </list>
      </property>
      <property name="properties">
        <props>
          <prop
key="activemq.transportconnector.openwire.host">localhost</prop>
          <prop key="activemq.transportconnector.openwire.port">61619</prop>
        </props>
      </property>
    </bean>


    <amq:broker xmlns="http://activemq.apache.org/schema/core" 
        brokerName="activemq" 
        dataDirectory="${karaf.data}/activemq/activemq" 
        useShutdownHook="false" 
        useJmx="true" 
        persistent="false">
              
         
        <amq:managementContext>
            <amq:managementContext createConnector="false"/>
        </amq:managementContext>

        
        <amq:transportConnectors>
            <amq:transportConnector name="openwire"
uri="tcp://${activemq.transportconnector.openwire.host}:${activemq.transportconnector.openwire.port}"/>
            <amq:transportConnector name="vm" uri="vm://localhost"/>
        </amq:transportConnectors>

    </amq:broker>

    <bean id="connectionFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
        <property name="brokerURL" value="vm://localhost" />
    </bean>

    <bean id="jmsPooledVMConnectionFactory"
class="org.apache.activemq.pool.PooledConnectionFactory">
        <property name="connectionFactory" ref="connectionFactory" />
        <property name="maximumActive" value="20000" />
    </bean>

    <bean id="resourceManager"
class="org.apache.activemq.pool.ActiveMQResourceManager"
init-method="recoverResource">
          <property name="connectionFactory" ref="connectionFactory" />
          <property name="resourceName" value="activemq.activemq" />
    </bean>

    <service ref="jmsPooledVMConnectionFactory"
interface="javax.jms.ConnectionFactory">
        <service-properties>
            <entry key="name" value="activemq"/>
        </service-properties>
    </service>

</blueprint>/



--
View this message in context: http://servicemix.396122.n5.nabble.com/Spring-configuration-problem-using-new-Blueprint-xml-file-in-ActiveMQ-tp5600210p5600210.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.

Re: Spring configuration problem using new Blueprint xml file in ActiveMQ

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

The persistent-id actually point to a properties file(with a .cfg  
suffix), for a instance, in the example, the persistent-id is  
org.apache.servicemix.examples, then it will load a  
org.apache.servicemix.examples.cfg properties file from $SMX_HOME/etc  
folder, it just leverage the OSGi configAdmin service under the hood.  
You may take a look at the README.txt with that example to get more  
details.

Btw, this question should be posted to users mailling list,  the dev  
list is used to discussion SMX project development issues

Freeman
On 2012-3-28, at 下午9:45, londonukm wrote:

> Hi Freeman,
>
>
> Freeman-2 wrote
>>
>>
>> You need use blueprint property placeholder way, take a look at  
>> camel-
>> blueprint example shipped with kit which demonstrate how property
>> placeholder works with blueprint.
>>
>>
>
> I had a look at the example you mentioned but it does not provide me  
> with
> enough information. I have had a look at the xsd for blueprint-cm  
> and i have
> created my property placeholder accordingly. However it does seem  
> like the
> persistent-id attribute is expecting the name of an active bundle  
> when i am
> only interested in providing a configuration file. Can you please  
> confirm
> that it is or is not supporting configuration files and if it is  
> will this
> approach be satisfactory:
>
> /    <cm:property-placeholder id="activemq.placeholder"
> persistent-id="file:${trh.conf.folder}activemq.properties">
>
>        <cm:default-properties>
>            <cm:property  
> name="activemq.transportconnector.openwire.host"
> value="localhost"/>
>            <cm:property  
> name="activemq.transportconnector.openwire.port"
> value="61619"/>
>        </cm:default-properties>
>    </cm:property-placeholder>
> /
>
> Many Thanks
>
> Graham
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Spring-configuration-problem-using-new-Blueprint-xml-file-in-ActiveMQ-tp5600210p5600531.html
> Sent from the ServiceMix - Dev mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com










Re: Spring configuration problem using new Blueprint xml file in ActiveMQ

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

The persistent-id actually point to a properties file(with a .cfg  
suffix), for a instance, in the example, the persistent-id is  
org.apache.servicemix.examples, then it will load a  
org.apache.servicemix.examples.cfg properties file from $SMX_HOME/etc  
folder, it just leverage the OSGi configAdmin service under the hood.  
You may take a look at the README.txt with that example to get more  
details.

Btw, this question should be posted to users mailling list,  the dev  
list is used to discussion SMX project development issues

Freeman
On 2012-3-28, at 下午9:45, londonukm wrote:

> Hi Freeman,
>
>
> Freeman-2 wrote
>>
>>
>> You need use blueprint property placeholder way, take a look at  
>> camel-
>> blueprint example shipped with kit which demonstrate how property
>> placeholder works with blueprint.
>>
>>
>
> I had a look at the example you mentioned but it does not provide me  
> with
> enough information. I have had a look at the xsd for blueprint-cm  
> and i have
> created my property placeholder accordingly. However it does seem  
> like the
> persistent-id attribute is expecting the name of an active bundle  
> when i am
> only interested in providing a configuration file. Can you please  
> confirm
> that it is or is not supporting configuration files and if it is  
> will this
> approach be satisfactory:
>
> /    <cm:property-placeholder id="activemq.placeholder"
> persistent-id="file:${trh.conf.folder}activemq.properties">
>
>        <cm:default-properties>
>            <cm:property  
> name="activemq.transportconnector.openwire.host"
> value="localhost"/>
>            <cm:property  
> name="activemq.transportconnector.openwire.port"
> value="61619"/>
>        </cm:default-properties>
>    </cm:property-placeholder>
> /
>
> Many Thanks
>
> Graham
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Spring-configuration-problem-using-new-Blueprint-xml-file-in-ActiveMQ-tp5600210p5600531.html
> Sent from the ServiceMix - Dev mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com










Re: Spring configuration problem using new Blueprint xml file in ActiveMQ

Posted by londonukm <gr...@hotmail.co.uk>.
Hi Freeman, 


Freeman-2 wrote
> 
> 
> You need use blueprint property placeholder way, take a look at camel- 
> blueprint example shipped with kit which demonstrate how property  
> placeholder works with blueprint.
> 
> 

I had a look at the example you mentioned but it does not provide me with
enough information. I have had a look at the xsd for blueprint-cm and i have
created my property placeholder accordingly. However it does seem like the
persistent-id attribute is expecting the name of an active bundle when i am
only interested in providing a configuration file. Can you please confirm
that it is or is not supporting configuration files and if it is will this
approach be satisfactory:

/    <cm:property-placeholder id="activemq.placeholder"
persistent-id="file:${trh.conf.folder}activemq.properties">
        
        <cm:default-properties>
            <cm:property name="activemq.transportconnector.openwire.host"
value="localhost"/>
            <cm:property name="activemq.transportconnector.openwire.port"
value="61619"/>
        </cm:default-properties>
    </cm:property-placeholder>
/

Many Thanks

Graham

--
View this message in context: http://servicemix.396122.n5.nabble.com/Spring-configuration-problem-using-new-Blueprint-xml-file-in-ActiveMQ-tp5600210p5600531.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.

Re: Spring configuration problem using new Blueprint xml file in ActiveMQ

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

You need use blueprint property placeholder way, take a look at camel- 
blueprint example shipped with kit which demonstrate how property  
placeholder works with blueprint.

Freeman
On 2012-3-28, at 下午7:52, londonukm wrote:

> Hi,
>
> I am in the process of updating my springContext.xml configuration  
> files in
> some of my servicemix (4.4.1)  bundles to the Blueprint  
> specification. I am
> getting an error and wondered if someone could check it for me.  
> Previously
> when i wanted to use properties from a system configuration file i  
> would
> use:
>
> /
>    <bean id="propertyConfigurer"
> class 
> = 
> "org 
> .springframework.beans.factory.config.PropertyPlaceholderConfigurer">
>      <property name="locations">
>        <list>
>          <value>file:${trh.conf.folder}activemq.properties</value>
>        </list>
>      </property>
>      <property name="properties">
>        <props>
>          <prop
> key="activemq.transportconnector.openwire.host">localhost</prop>
>          <prop  
> key="activemq.transportconnector.openwire.port">61619</prop>
>        </props>
>      </property>
>    </bean>/
>
> However, this is now generating an error message:
>
> /14:18:45,415 | ERROR | rint Extender: 2 | BlueprintContainerImpl
> | 10 - org.apache.aries.blueprint - 0.3.1 | Unable to start blueprint
> container for bundle activemq.xml
> org.osgi.service.blueprint.container.ComponentDefinitionException:  
> Error
> setting property: PropertyDescriptor <name: locations, getter: null,  
> setter:
> [public void
> org 
> .springframework 
> .core 
> .io 
> .support 
> .PropertiesLoaderSupport 
> .setLocations(org.springframework.core.io.Resource[])]
> 	at
> org 
> .apache 
> .aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java: 
> 807)[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_19]
> 	at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[: 
> 1.6.0_19]
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:138)[: 
> 1.6.0_19]
> 	at
> java.util.concurrent.ScheduledThreadPoolExecutor 
> $ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) 
> [:1.6.0_19]
> 	at
> java.util.concurrent.ScheduledThreadPoolExecutor 
> $ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)[: 
> 1.6.0_19]
> 	at
> java.util.concurrent.ThreadPoolExecutor 
> $Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_19]
> 	at
> java.util.concurrent.ThreadPoolExecutor 
> $Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_19]
> 	at java.lang.Thread.run(Thread.java:619)[:1.6.0_19]
> Caused by: java.lang.Exception: Unable to convert from
> [Ljava.lang.Object;@38246607 to  
> org.springframework.core.io.Resource[](error
> converting array element)
> 	at
> org 
> .apache 
> .aries 
> .blueprint 
> .container.AggregateConverter.convertToArray(AggregateConverter.java: 
> 408)[10:org.apache.aries.blueprint:0.3.1]
> 	at
> org 
> .apache 
> .aries 
> .blueprint 
> .container.AggregateConverter.convert(AggregateConverter.java:164) 
> [10:org.apache.aries.blueprint:0.3.1]
> 	at
> org 
> .apache 
> .aries 
> .blueprint 
> .container.BlueprintRepository.convert(BlueprintRepository.java:373) 
> [10:org.apache.aries.blueprint:0.3.1]
> 	at
> org.apache.aries.blueprint.utils.ReflectionUtils 
> $PropertyDescriptor.convert(ReflectionUtils.java:323) 
> [10:org.apache.aries.blueprint:0.3.1]
> 	at
> org.apache.aries.blueprint.utils.ReflectionUtils 
> $MethodPropertyDescriptor.internalSet(ReflectionUtils.java:476) 
> [10:org.apache.aries.blueprint:0.3.1]
> 	at
> org.apache.aries.blueprint.utils.ReflectionUtils 
> $PropertyDescriptor.set(ReflectionUtils.java:307) 
> [10:org.apache.aries.blueprint:0.3.1]
> 	at
> org 
> .apache 
> .aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java: 
> 805)[10:org.apache.aries.blueprint:0.3.1]
> 	... 17 more
> Caused by: java.lang.Exception: Unable to convert value
> file:D:\apache-servicemix\dev\apache-servicemix-4.4.1\bin\..\conf 
> \activemq.properties
> to type interface org.springframework.core.io.Resource. Type interface
> org.springframework.core.io.Resource is an interface or an abstract  
> class
> 	at
> org 
> .apache 
> .aries 
> .blueprint 
> .container.AggregateConverter.createObject(AggregateConverter.java: 
> 298)[10:org.apache.aries.blueprint:0.3.1]
> 	at
> org 
> .apache 
> .aries 
> .blueprint 
> .container 
> .AggregateConverter.convertFromString(AggregateConverter.java:292) 
> [10:org.apache.aries.blueprint:0.3.1]
> 	at
> org 
> .apache 
> .aries 
> .blueprint 
> .container.AggregateConverter.convert(AggregateConverter.java:162) 
> [10:org.apache.aries.blueprint:0.3.1]
> 	at
> org 
> .apache 
> .aries 
> .blueprint 
> .container.AggregateConverter.convertToArray(AggregateConverter.java: 
> 406)[10:org.apache.aries.blueprint:0.3.1]
> 	... 23 more&lt;/i>
>
> Any feedback, advice would be greatly appreciated. Perhaps there is a
> different way of handling this type of thing now? My full  
> configuration file
> is here as well just in case it helps.
>
> /
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
>
> xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0"
>
> xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0 
> "
>           xmlns:amq="http://activemq.apache.org/schema/core">
>
>    <manifest>
>      Export-Service = javax.jms.ConnectionFactory
>    </manifest>
>
>
>    <bean id="propertyConfigurer"
> class 
> = 
> "org 
> .springframework.beans.factory.config.PropertyPlaceholderConfigurer">
>      <property name="locations">
>        <list>
>          <value>file:${trh.conf.folder}activemq.properties</value>
>        </list>
>      </property>
>      <property name="properties">
>        <props>
>          <prop
> key="activemq.transportconnector.openwire.host">localhost</prop>
>          <prop  
> key="activemq.transportconnector.openwire.port">61619</prop>
>        </props>
>      </property>
>    </bean>
>
>
>    <amq:broker xmlns="http://activemq.apache.org/schema/core"
>        brokerName="activemq"
>        dataDirectory="${karaf.data}/activemq/activemq"
>        useShutdownHook="false"
>        useJmx="true"
>        persistent="false">
>
>
>        <amq:managementContext>
>            <amq:managementContext createConnector="false"/>
>        </amq:managementContext>
>
>
>        <amq:transportConnectors>
>            <amq:transportConnector name="openwire"
> uri="tcp://${activemq.transportconnector.openwire.host}:$ 
> {activemq.transportconnector.openwire.port}"/>
>            <amq:transportConnector name="vm" uri="vm://localhost"/>
>        </amq:transportConnectors>
>
>    </amq:broker>
>
>    <bean id="connectionFactory"
> class="org.apache.activemq.ActiveMQConnectionFactory">
>        <property name="brokerURL" value="vm://localhost" />
>    </bean>
>
>    <bean id="jmsPooledVMConnectionFactory"
> class="org.apache.activemq.pool.PooledConnectionFactory">
>        <property name="connectionFactory" ref="connectionFactory" />
>        <property name="maximumActive" value="20000" />
>    </bean>
>
>    <bean id="resourceManager"
> class="org.apache.activemq.pool.ActiveMQResourceManager"
> init-method="recoverResource">
>          <property name="connectionFactory" ref="connectionFactory" />
>          <property name="resourceName" value="activemq.activemq" />
>    </bean>
>
>    <service ref="jmsPooledVMConnectionFactory"
> interface="javax.jms.ConnectionFactory">
>        <service-properties>
>            <entry key="name" value="activemq"/>
>        </service-properties>
>    </service>
>
> </blueprint>/
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Spring-configuration-problem-using-new-Blueprint-xml-file-in-ActiveMQ-tp5600210p5600210.html
> Sent from the ServiceMix - Dev mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com