Hi John,

I suggets you to read http://cxf.apache.org/distributed-osgi.html

Regards Angelo


2011/8/8 Angelo zerr <[email protected]>

> Hi John,
>
> I think this post
> http://cxf.547215.n5.nabble.com/CXF-amp-Osgi-bundle-problem-td556037.htmlcould
>  interest you.
>
> To publish/unpublish your webservice, I wll do modify the sample like this
> :
> -------------------------------------------------
>
> import javax.xml.ws.Endpoint;
>
> import org.*osgi*.framework.BundleActivator;
> import org.*osgi*.framework.BundleContext;
>
> public class Activator implements BundleActivator {
>
>         private Endpoint endpoint;
>         public void start(BundleContext arg0) throws Exception {
>                 HelloWorldImpl hwi = new HelloWorldImpl();
>                 endpoint = Endpoint.publish("
> http://localhost:9000/HelloWorld";, hwi);
>         }
>
>         public void stop(BundleContext arg0) throws Exception {
>            if (endpoint !=null) {
>               endpoint.stop();
>            }
>         }
> }
> ---------------------
>
> I have never done that or tested that, it's just an idea.
>
> Regards Angelo
>
> 2011/8/7 <[email protected]>
>
>
>> I'm operating in an OSGI execution environment and I need to be able to
>> deploy and undeploy individual services without disrupting the other
>> services.
>>
>> -John
>>
>>
>> Quoting Willem Jiang <[email protected]>:
>>
>>  Not sure what's your meaning of server.
>>> But I think the server which is create from JaxWsServerFactoryBean can
>>> be start and stop with java code as you want.
>>>
>>> On 8/6/11 9:29 PM, [email protected] wrote:
>>>
>>>>
>>>> I need to be able to unpublish the service without restarting the
>>>> server.
>>>>
>>>> Quoting Willem Jiang <[email protected]>:
>>>>
>>>>  Yes, it is possible.
>>>>>
>>>>> You can using JaxWsServerFactoryBean to publish the service or stop the
>>>>> server as you want.
>>>>>
>>>>> You can find more information here[1]
>>>>>
>>>>> [1]http://cxf.apache.org/docs/**a-simple-jax-ws-service.html<http://cxf.apache.org/docs/a-simple-jax-ws-service.html>
>>>>>
>>>>> On 8/6/11 9:04 AM, [email protected] wrote:
>>>>>
>>>>>> I'd like to embed CXF in a way similar to the way it could be done in
>>>>>> XFire, 
>>>>>> http://xfire.codehaus.org/**Embedding+XFire<http://xfire.codehaus.org/Embedding+XFire>
>>>>>>
>>>>>> I need to be able to programmatically register and unregister services
>>>>>> and I need to be able to construct the service with an instance of my
>>>>>> service class so that I can inject dependencies.
>>>>>>
>>>>>> I don't want to use spring.
>>>>>>
>>>>>> Is this possible?
>>>>>> -John
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> Willem
>>>>> ------------------------------**----
>>>>> FuseSource
>>>>> Web: http://www.fusesource.com
>>>>> Blog: 
>>>>> http://willemjiang.blogspot.**com<http://willemjiang.blogspot.com>(English)
>>>>> http://jnn.javaeye.com (Chinese)
>>>>> Twitter: willemjiang
>>>>> Weibo: willemjiang
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>> --
>>> Willem
>>> ------------------------------**----
>>> FuseSource
>>> Web: http://www.fusesource.com
>>> Blog:    
>>> http://willemjiang.blogspot.**com<http://willemjiang.blogspot.com>(English)
>>>         http://jnn.javaeye.com (Chinese)
>>> Twitter: willemjiang
>>> Weibo: willemjiang
>>>
>>
>>
>>
>>
>

Reply via email to