You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by peppinolusuraio <ua...@libero.it> on 2009/01/27 14:31:46 UTC

programmatically add jax.ws.Hander on the server side

hi,

there is a way to add programmatically handlers on the server side
programmatically withour relying upon @HandlerChain annotation???


-- 
View this message in context: http://www.nabble.com/programmatically-add-jax.ws.Hander-on-the-server-side-tp21685348p21685348.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: programmatically add jax.ws.Hander on the server side

Posted by Arul Dhesiaseelan <ar...@fluxcorp.com>.
Are you looking something like this?

    HelloWorldImpl helloworldImpl = new HelloWorldImpl();
    JaxWsServerFactoryBean svrFactory = new JaxWsServerFactoryBean();
    svrFactory.setServiceClass(HelloWorld.class);
    svrFactory.setAddress("http://localhost:9000/Hello");
    svrFactory.setServiceBean(helloworldImpl);
    List<Handler> handlers = new ArrayList<Handler>();
    handlers.add(new LoggingHandler());
    svrFactory.addHandlers(handlers);
    svrFactory.create();

-Arul

peppinolusuraio wrote:
> Hi Dan,
>
> I meant programmatically using Java Code, without relying upon Spring.
> There is a way?
>
>
> dkulp wrote:
>   
>> On Tuesday 27 January 2009 8:31:46 am peppinolusuraio wrote:
>>     
>>> hi,
>>>
>>> there is a way to add programmatically handlers on the server side
>>> programmatically withour relying upon @HandlerChain annotation???
>>>       
>> Do you mean via spring config type thing or actually via some sort of java 
>> code?    With 2.1.3, there is a <handlers> element on jaxws:endpoint which 
>> would be a list of handlers to add.    That's probably the easiest way to
>> go.
>>
>>
>> -- 
>> Daniel Kulp
>> dkulp@apache.org
>> http://dankulp.com/blog
>>
>>
>>     
>
>   



Re: programmatically add jax.ws.Hander on the server side

Posted by peppinolusuraio <ua...@libero.it>.
Hi Dan,

I meant programmatically using Java Code, without relying upon Spring.
There is a way?


dkulp wrote:
> 
> On Tuesday 27 January 2009 8:31:46 am peppinolusuraio wrote:
>> hi,
>>
>> there is a way to add programmatically handlers on the server side
>> programmatically withour relying upon @HandlerChain annotation???
> 
> Do you mean via spring config type thing or actually via some sort of java 
> code?    With 2.1.3, there is a <handlers> element on jaxws:endpoint which 
> would be a list of handlers to add.    That's probably the easiest way to
> go.
> 
> 
> -- 
> Daniel Kulp
> dkulp@apache.org
> http://dankulp.com/blog
> 
> 

-- 
View this message in context: http://www.nabble.com/programmatically-add-jax.ws.Hander-on-the-server-side-tp21685348p21702156.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: programmatically add jax.ws.Hander on the server side

Posted by Daniel Kulp <dk...@apache.org>.
On Tuesday 27 January 2009 8:31:46 am peppinolusuraio wrote:
> hi,
>
> there is a way to add programmatically handlers on the server side
> programmatically withour relying upon @HandlerChain annotation???

Do you mean via spring config type thing or actually via some sort of java 
code?    With 2.1.3, there is a <handlers> element on jaxws:endpoint which 
would be a list of handlers to add.    That's probably the easiest way to go.


-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog