Hi,

Ensure your cxf bc provider is using OSGi packaging.
And you need put a chubb.properties.cfg file in $SMX_HOME/etc folder which have
WSURL=http://localhost:8080/orderapp/ProducerInfo

That said, the properties file name should be ${persistent-id}.cfg, then it can leverage OSGi ConfigAdmin service to read property place holder for spring-dm.

Freeman
On 2011-8-23, at 下午10:45, pchakinala wrote:

Hi,
We are using Servicemix 4.3 and my usecase is like below

http client ---> http consumer --> cxf provider ---> call outside webservice

<cxfbc:provider wsdl="classpath:ProducerRetrievalPRD2X3.wsdl"
       locationURI="${WSURL}"
                  service="tns2:ProducerRetrievalPRD2X3HttpService"
       endpoint="ProducerRetrievalPRD2X3HttpServicePort"
                useJBIWrapper="false"
                useSOAPEnvelope="false" >

i wanted to read the WSURL from properties files from outside. With
camel-osgi example it reads input from beans.xml file.

 <ctx:property-placeholder properties-ref="preProps" />
         <osgix:cm-properties id="preProps" persistent-id="chubb.properties">
    <prop
key="WSURL">http://localhost:8080/orderapp/ProducerRetrievalPRD2X3</ prop>
   </osgix:cm-properties>
        

chubb.prop
WSURL=http://localhost:8080/orderapp/ProducerInfo


Please suggest me how can i read it from property file

Regards,
Praveen Chakinala

--
View this message in context: 
http://servicemix.396122.n5.nabble.com/OSGI-Bundle-Context-Property-reader-tp4727020p4727020.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

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

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com









Reply via email to