Hi

Did you setup blueprint property placeholders? You would need to do
that for it to understand and support ${ }.

You can see some details here
http://camel.apache.org/using-propertyplaceholder.html

And also if you google for blueprint cm or blueprint config admin to
find some links for more details.


On Thu, Sep 19, 2013 at 7:41 PM, cbuxbaum
<cbuxb...@tradestonesoftware.com> wrote:
> Hi all,
>
> I am migrating an application from Spring dsl to blueprint.
>
> This worked previously:
>
>         <bean id="webServiceRequestCreator"
> class="com.tradestonesoftware.aiConverter.service.WebServiceRequestCreator">
>                 <property name="extractall" 
> value="${aiextractor.extractall}"/>
> "/>
>         </bean>
>
> in conjunction with this bean method:
>
>         public void setExtractall(boolean extractall)
>         {
>                 this.extractall = extractall;
>         }
>
> So the value was being converted to a boolean with some built in type
> converter.
>
> With the blueprint version, I get this error when I try to deploy:
>
> org.osgi.service.blueprint.container.ComponentDefinitionException: Error
> setting property: PropertyDescriptor <name: extractall, getter: null,
> setter: [class
> com.tradestonesoftware.aiConverter.service.WebServiceRequestCreator.setExtractall(boolean)]
>         at
> org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:941)
> .
> .
> .
> Caused by: java.lang.RuntimeException: Invalid boolean value:
> ${aiextractor.extractall}
>
> Does this mean that I have to modify my beans to always use Strings and do
> my own Boolean.parseBoolean(String) on the input?  Or is there a way to
> invoke a converter?
>
> Thanks,
>
> Carl
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/cast-of-property-value-for-blueprint-osgi-implementation-tp5739834.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to