org.springframework.remoting.jaxws
@Deprecated public abstract class ServletEndpointSupport extends Object implements ServiceLifecycle
The Web Service servlet needs to run in the same web application as the Spring context to allow for access to Spring's facilities. In case of Axis, copy the AxisServlet definition into your web.xml, and set up the endpoint in "server-config.wsdd" (or use the deploy tool).
This class does not extend
WebApplicationObjectSupport
to not expose any public setters. For some reason, Axis tries to
resolve public setters in a special way...
JAX-RPC service endpoints are usually required to implement an RMI port interface. However, many JAX-RPC implementations accept plain service endpoint classes too, avoiding the need to maintain an RMI port interface in addition to an existing non-RMI business interface. Therefore, implementing the business interface will usually be sufficient.
init(java.lang.Object)
,
getWebApplicationContext()
Constructor and Description |
---|
ServletEndpointSupport()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Deprecated.
This implementation of destroy is empty.
|
protected ApplicationContext |
getApplicationContext()
Deprecated.
Return the current Spring ApplicationContext.
|
protected MessageSourceAccessor |
getMessageSourceAccessor()
Deprecated.
Return a MessageSourceAccessor for the application context
used by this object, for easy message access.
|
protected ServletContext |
getServletContext()
Deprecated.
Return the current ServletContext.
|
protected ServletEndpointContext |
getServletEndpointContext()
Deprecated.
Return the current JAX-RPC ServletEndpointContext.
|
protected File |
getTempDir()
Deprecated.
Return the temporary directory for the current web application,
as provided by the servlet container.
|
protected WebApplicationContext |
getWebApplicationContext()
Deprecated.
Return the current Spring WebApplicationContext.
|
void |
init(Object context)
Deprecated.
Initialize this JAX-RPC servlet endpoint.
|
protected void |
onInit()
Deprecated.
Callback for custom initialization after the context has been set up.
|
protected final Log logger
public final void init(Object context) throws ServiceException
init
in interface ServiceLifecycle
context
- ServletEndpointContextServiceException
- if the context is not a ServletEndpointContextonInit()
protected final ServletEndpointContext getServletEndpointContext()
protected final ApplicationContext getApplicationContext()
protected final WebApplicationContext getWebApplicationContext()
protected final MessageSourceAccessor getMessageSourceAccessor()
protected final ServletContext getServletContext()
protected final File getTempDir()
protected void onInit() throws ServiceException
ServiceException
- if initialization failedpublic void destroy()
destroy
in interface ServiceLifecycle