Package org.apache.axis.server
Class JNDIAxisServerFactory
java.lang.Object
org.apache.axis.server.DefaultAxisServerFactory
org.apache.axis.server.JNDIAxisServerFactory
- All Implemented Interfaces:
AxisServerFactory
Helper class for obtaining AxisServers, which hides the complexity
of JNDI accesses, etc.
!!! QUESTION : Does this class need to play any ClassLoader tricks?
- Author:
- Glen Daniels (gdaniels@apache.org)
-
Field Summary
Fields inherited from class org.apache.axis.server.DefaultAxisServerFactory
log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObtain an AxisServer reference, using JNDI if possible, otherwise creating one using the standard Axis configuration pattern.
-
Constructor Details
-
JNDIAxisServerFactory
public JNDIAxisServerFactory()
-
-
Method Details
-
getServer
Obtain an AxisServer reference, using JNDI if possible, otherwise creating one using the standard Axis configuration pattern. If we end up creating one and do have JNDI access, bind it to the passed name so we find it next time. NOTE : REQUIRES SERVLET 2.3 FOR THE GetServletContextName() CALL!- Specified by:
getServer
in interfaceAxisServerFactory
- Overrides:
getServer
in classDefaultAxisServerFactory
- Parameters:
environment
- The following is used, in addition to the keys used by the parent class: AxisEngine.ENV_SERVLET_CONTEXT [required, else default/parent behavior] - Instance of ServletContext- Throws:
AxisFault
-