org.apache.axis.client
Class ServiceFactory

java.lang.Object
  |
  +--org.apache.axis.client.ServiceFactory

public class ServiceFactory
extends java.lang.Object

Helper class for obtaining Services from JNDI. !!! WORK IN PROGRESS

Author:
Glen Daniels (gdaniels@macromedia.com)

Constructor Summary
ServiceFactory()
           
 
Method Summary
static Service getService(java.util.Map environment)
          Obtain an AxisClient 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

ServiceFactory

public ServiceFactory()
Method Detail

getService

public static Service getService(java.util.Map environment)
                          throws JAXRPCException
Obtain an AxisClient 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.
Parameters:
name - the JNDI name we're interested in
configProvider - a ConfigurationProvider 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.