CXF relies on Spring for much of its functionality, saves a lot of wheel reinventions that way. In some limited cases, however, you can avoid using it with CXF--but it may be needed when you're using JSP, I'm unsure here. GlassFish Metro is Spring-free, but I don't think they have JSP support.
Glen pierre betz wrote: > > Hi everybody, > I'm pretty new to cxf uses, as I was using Axis the years before... > > I was looking at some tutorials explaining me how to use cxf to build web > services, > but every tutorials I found were using spring framework too. > > > I know how to build a service, and run a server like in the apache cxf > tutorial, server launched within a main function. > The problem is when I want to call these services with jsp pages... > > for example : I've an application server with my databases, I've a web > container (number1) with my service. > I want to call these services from another web container (number2), using > jsp pages. > > do I need to have the spring framework within the number1 container to > deploy and make the services work ? > Because in all the tutorials, I found these lines in the web.xml file : > > <?xml version="1.0"?> > <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web > Application 2.3//EN" > "http://java.sun.com/dtd/web-app_2_3.dtd"> > > > <web-app> > <listener> > <listener-class> > org.springframework.web.context.ContextLoaderListener > </listener-class> > </listener> > </web-app> > > > (with the cxf.xml declaration) > > Like explaining that the listener is a spring listener.... > > and in the cxf.xml : > > <beans xmlns="http://www.springframework.org/schema/beans" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:jaxws="http://cxf.apache.org/jaxws" > > xsi:schemaLocation="http://www.springframework.org/schema/beans > > http://www.springframework.org/schema/beans/spring-beans.xsd > > http://cxf.apache.org/jaxws > > http://cxf.apache.org/schemas/jaxws.xsd"> > > <import resource="classpath:META-INF/cxf/cxf.xml" /> > > <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/> > <import resource="classpath:META-INF/cxf/cxf-servlet.xml" /> > <jaxws:endpoint ........./> > </beans> > > > > so, how can I use cxf without spring, and how to explain the endpoint > references, listeners... ? > > > > and, can I call these services wiht jsp pages, just knowing the interfaces > and the wsdls ? > > if you have a good tutorial using jsp pages and not using spring, it could > be very useful for me ! > > > > > thanks a lot, I hope I'll can help others in near future ! > > -- View this message in context: http://www.nabble.com/using-cxf-without-spring---tp21063011p21063677.html Sent from the cxf-user mailing list archive at Nabble.com.
