Hi again - probably you could give me another tip in this context...

So I have a config file with this:

<osgix:cm-properties id="contentHandlerProps"
persistent-id="integration.content.handler">
        <prop key="content.handler.host">localhost</prop>
        <prop key="content.handler.port">8080</prop>
        <prop key="content.handler.username">admin</prop>
        <prop key="content.handler.pwd">admin</prop>
        <prop key="default.handler.rank">5</prop>
  </osgix:cm-properties>

  <ctx:property-placeholder properties-ref="contentHandlerProps" />
  
  <osgi:service auto-export="all-classes" ref="contentHandler" 
                        
interface="biz.integration.handle.content.ContentHandler"
ranking="${default.handler.rank}">

As soon as I trying to start it in the container I am getting:

Caused by: org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1:
'${default.handler.rank}' is not a valid value for 'integer'.

I wonder if there are a possibility to put attribute from config file?

Thanks.

--
View this message in context: 
http://servicemix.396122.n5.nabble.com/SMX-osgi-louse-coupling-tp4750392p4753782.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to