You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Ian McDonagh <ia...@yahoo.co.uk> on 2008/07/29 15:25:08 UTC
Help: POJO + Servlet transport
Hi all
I'd like to have a web service with the following configuration:
Service interface and implementation: POJO (no annotations)
Transport: HTTP Servlet (to be deployed to servlet container, eg. Tomcat)
No dependency on Spring for configuration.
Is this possible?
From what I can tell, you need to subclass CXFNonSpringServlet, but I can't figure out how to publish the service.
Do I have to use XML or can I do it with the API's only?
Any help would be greatly appreciated.
Thanks.
Ian
__________________________________________________________
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
Re: Help: POJO + Servlet transport
Posted by Daniel Kulp <dk...@apache.org>.
In your subclass, you can pretty much do whatever you want. You can
use the JAX-WS Endpoint.create(....) stuff if you want. You can use
the JaxWsServerFactoryBean. Etc.....
Dan
On Jul 29, 2008, at 9:25 AM, Ian McDonagh wrote:
> Hi all
>
> I'd like to have a web service with the following configuration:
>
> Service interface and implementation: POJO (no annotations)
> Transport: HTTP Servlet (to be deployed to servlet container, eg.
> Tomcat)
> No dependency on Spring for configuration.
>
> Is this possible?
>
> From what I can tell, you need to subclass CXFNonSpringServlet, but
> I can't figure out how to publish the service.
>
> Do I have to use XML or can I do it with the API's only?
>
> Any help would be greatly appreciated.
>
> Thanks.
>
> Ian
>
>
>
> __________________________________________________________
> Not happy with your email address?.
> Get the one you really want - millions of new email addresses
> available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
---
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog