Hi Freeman, Thanks for the reply. Its working fine after copying it into etc folder.
Regards, Praveen Chakinala From: Freeman-2 [via ServiceMix] [mailto:[email protected]] Sent: Wednesday, August 24, 2011 6:59 AM To: pchakinala Subject: Re: OSGI Bundle Context Property reader 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:[hidden email] Web: fusesource.com Twitter: freemanfang Blog: http://freemanfang.blogspot.com _____ If you reply to this email, your message will be added to the discussion below: http://servicemix.396122.n5.nabble.com/OSGI-Bundle-Context-Property-reader-tp4727020p4728855.html To unsubscribe from OSGI Bundle Context Property reader, click here <http://servicemix.396122.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4727020&code=cHJhdmVlbi5jaGFraW5hbGFAcGxhbmV0c29mdC5jb218NDcyNzAyMHwtMjAwNDE3OTQwNg==> . -- View this message in context: http://servicemix.396122.n5.nabble.com/OSGI-Bundle-Context-Property-reader-tp4727020p4730586.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
