You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Zhemzhitsky Sergey <Se...@troika.ru> on 2011/05/19 14:05:40 UTC

How to change cxf context path

Hi there,

I'm using apache-servicemix-4.3.1-fuse-01-09 and its bundled cxf. To access my services I have to use the following url: http://localhost:8080/cxf/serviceName.
Is it possible to change context path of the cxf services to something else, so I could access them using http://localhost:8080/mycontext/serviceName?


Best Regards,
Sergey Zhemzhitsky


_______________________________________________________

The information contained in this message may be privileged and conf idential and protected from disclosure. If you are not the original intended recipient, you are hereby notified that any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information is prohibited. If you have received this communication in error, please notify the sender immediately by replying to this message and delete it from your computer. Thank you for your cooperation. Troika Dialog, Russia. 
If you need assistance please contact our Contact Center  (+7495) 258 0500 or go to www.troika.ru/eng/Contacts/system.wbp  


RE: How to change cxf context path

Posted by Zhemzhitsky Sergey <Se...@troika.ru>.
Hello Freeman,

Thanks a lot. It  works like a charm.

Best Regards,
Sergey Zhemzhitsky


-----Original Message-----
From: Freeman Fang [mailto:freeman.fang@gmail.com] 
Sent: Thursday, May 19, 2011 4:40 PM
To: users@servicemix.apache.org
Subject: Re: How to change cxf context path

Hi,

Yeah, the context is configured from spring-dm property placeholder through OSGi configAdmin service, the default value is /cxf, but you can easily change it.
Add org.apache.cxf.osgi.cfg  file into $FUSE _ESB/etc/ folder, add an entry org.apache.cxf.servlet.context=/mycontext

Freeman
On 2011-5-19, at 下午8:05, Zhemzhitsky Sergey wrote:

> Hi there,
>
> I'm using apache-servicemix-4.3.1-fuse-01-09 and its bundled cxf. To 
> access my services I have to use the following url: 
> http://localhost:8080/cxf/serviceName
> .
> Is it possible to change context path of the cxf services to something 
> else, so I could access them using http://localhost:8080/mycontext/serviceName?
>
>
> Best Regards,
> Sergey Zhemzhitsky
>
>
> _______________________________________________________
>
> The information contained in this message may be privileged and conf 
> idential and protected from disclosure. If you are not the original 
> intended recipient, you are hereby notified that any review, 
> retransmission, dissemination, or other use of, or taking of any 
> action in reliance upon, this information is prohibited. If you have 
> received this communication in error, please notify the sender 
> immediately by replying to this message and delete it from your 
> computer. Thank you for your cooperation. Troika Dialog, Russia.
> If you need assistance please contact our Contact Center  (+7495)
> 258 0500 or go to www.troika.ru/eng/Contacts/system.wbp
>

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

FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Connect at CamelOne May 24-26
The Open Source Integration Conference









_______________________________________________________

The information contained in this message may be privileged and conf idential and protected from disclosure. If you are not the original intended recipient, you are hereby notified that any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information is prohibited. If you have received this communication in error, please notify the sender immediately by replying to this message and delete it from your computer. Thank you for your cooperation. Troika Dialog, Russia. 
If you need assistance please contact our Contact Center  (+7495) 258 0500 or go to www.troika.ru/eng/Contacts/system.wbp  


Re: How to change cxf context path

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

Yeah, the context is configured from spring-dm property placeholder  
through OSGi configAdmin service, the default value is /cxf, but you  
can easily change it.
Add org.apache.cxf.osgi.cfg  file into $FUSE _ESB/etc/ folder, add an  
entry
org.apache.cxf.servlet.context=/mycontext

Freeman
On 2011-5-19, at 下午8:05, Zhemzhitsky Sergey wrote:

> Hi there,
>
> I'm using apache-servicemix-4.3.1-fuse-01-09 and its bundled cxf. To  
> access my services I have to use the following url: http://localhost:8080/cxf/serviceName 
> .
> Is it possible to change context path of the cxf services to  
> something else, so I could access them using http://localhost:8080/mycontext/serviceName?
>
>
> Best Regards,
> Sergey Zhemzhitsky
>
>
> _______________________________________________________
>
> The information contained in this message may be privileged and conf  
> idential and protected from disclosure. If you are not the original  
> intended recipient, you are hereby notified that any review,  
> retransmission, dissemination, or other use of, or taking of any  
> action in reliance upon, this information is prohibited. If you have  
> received this communication in error, please notify the sender  
> immediately by replying to this message and delete it from your  
> computer. Thank you for your cooperation. Troika Dialog, Russia.
> If you need assistance please contact our Contact Center  (+7495)  
> 258 0500 or go to www.troika.ru/eng/Contacts/system.wbp
>

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

FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Connect at CamelOne May 24-26
The Open Source Integration Conference