Hi,

As I mentioned, the default service address is
http://localhost:8181/cxf${the_address_you_specified}

However, you can change the /cxf to whatever you want, just drop a 
org.apache.cxf.osgi.cfg in $SMX_HOME/etc/ folder, specify a property like
org.apache.cxf.servlet.context=/mycontext
then the service address changed to
http://localhost:8181/mycontext${the_address_you_specified}

This way leverage OSGi configAdmin service to configure properties.
Freeman

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

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042

On 2012-8-18, at 上午12:19, nareshkpotti wrote:

> Hi Freeman,
> 
> Thanks for the reply. I figured it out by debugging using the source code of
> service mix. 
> 
> But I implemented it in different manner as we are not supposed to change
> the url for WS as many of our 3rd party clients and internal clients will
> get effected.
> 
> <bean id="propertyPlaceholderConfigurer"
> 
> class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
>        <property name="locations">
>                <list>
>                     <value>file:${bbb.bbb.bbb}/ccc.properties
>                     </value>
>                </list>
>        </property>
>    </bean>
> 
> from "bbb.bbb.bbb", we will get the location where properties file will be
> located. At this place our sys admins place all the properties file which
> will be shared by all the server instances.
> 
> <cxf:cxfEndpoint id="xyzWSV1" 
>                   address="${proxy.url}/abcAPI/ccc/xyzWSV1Port"
>                   endpointName="s:xyzWSV1Port"
>                   serviceName="s:xyzWSV1Service"
>                   wsdlURL="etc/xyzV1.wsdl" 
>                   xmlns:s="http://www.ccc.com/xyzWS"/> .
> 
> proxy.url will be the domain name or server name with port number. By this
> as our code moves from different stages like dev to QA and from QA to prod,
> proxy.url part will be changed accordingly.
> 
> Thanks,
> Potti
> 
> 
> 
> 
> --
> View this message in context: 
> http://servicemix.396122.n5.nabble.com/Install-WS-as-bundles-and-opening-accessing-WSDL-in-browser-tp5714152p5714167.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to