org.apache.axis.server
Class JNDIAxisServerFactory

java.lang.Object
  |
  +--org.apache.axis.server.JNDIAxisServerFactory
All Implemented Interfaces:
AxisServerFactory

public class JNDIAxisServerFactory
extends java.lang.Object
implements 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@macromedia.com)

Constructor Summary
JNDIAxisServerFactory()
           
 
Method Summary
 AxisServer getServer(java.util.Map environment)
          Obtain an AxisServer reference, using JNDI if possible, otherwise creating one using the standard Axis configuration pattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JNDIAxisServerFactory

public JNDIAxisServerFactory()
Method Detail

getServer

public AxisServer getServer(java.util.Map environment)
                     throws AxisFault
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 interface AxisServerFactory
Parameters:
name - the JNDI name we're interested in
configProvider - a EngineConfiguration which should be used to configure any engine we end up creating, or null to use the default configuration pattern.


Copyright © 2001 Apache XML Project. All Rights Reserved.