Tom wrote: > I have copied the code from the CXF manual to get access to the > ServletContext of either the SOAP or REST call and it works ok. However, > I naturally have more that one Service to implement, so I wanted to move > this code to an abstract parent class. When the code is there, only the > SOAP resource is injected, the REST variable is NULL.
Or if you don't mind coupling your classes to Spring you can sidestep all of this by just having your abstract parent class implement ServletContextAware, then Spring will inject the context for you without any of the CXF infrastructure needing to be involved. Ian -- Ian Roberts | Department of Computer Science [email protected] | University of Sheffield, UK
