org.apache.axis.providers.java
Class EJBProvider

java.lang.Object
  |
  +--org.apache.axis.handlers.BasicHandler
        |
        +--org.apache.axis.providers.BasicProvider
              |
              +--org.apache.axis.providers.java.JavaProvider
                    |
                    +--org.apache.axis.providers.java.RPCProvider
                          |
                          +--org.apache.axis.providers.java.EJBProvider
All Implemented Interfaces:
Handler, java.io.Serializable

public class EJBProvider
extends RPCProvider

A basic EJB Provider

Author:
Carl Woolf (cwoolf@macromedia.com), Tom Jordahl (tomj@macromedia.com)
See Also:
Serialized Form

Field Summary
static javax.naming.InitialContext cached_context
           
static java.lang.Class[] empty_class_array
           
static java.lang.Object[] empty_object_array
           
static java.lang.String jndiContextClass
           
static java.lang.String jndiPassword
           
static java.lang.String jndiURL
           
static java.lang.String jndiUsername
           
 
Fields inherited from class org.apache.axis.providers.java.RPCProvider
log
 
Fields inherited from class org.apache.axis.providers.java.JavaProvider
OPTION_CLASSNAME, OPTION_CLASSPATH, OPTION_IS_STATIC
 
Fields inherited from class org.apache.axis.handlers.BasicHandler
name, options
 
Constructor Summary
EJBProvider()
           
 
Method Summary
protected  java.lang.Object getNewServiceObject(MessageContext msgContext, java.lang.String clsName)
          Return a object which implements the service.
protected  java.lang.Class getServiceClass(MessageContext msgContext, java.lang.String beanJndiName)
          Get the class description for the EJB Remote Interface, which is what we are interested in exposing to the world (i.e.
protected  java.lang.String getServiceClassNameOptionName()
          Return the option in the configuration that contains the service class name.
 
Methods inherited from class org.apache.axis.providers.java.RPCProvider
checkMethodName, getMethod, invokeMethod, processMessage
 
Methods inherited from class org.apache.axis.providers.java.JavaProvider
generateWSDL, getConfiguration, getServiceClassName, getServiceObject, invoke
 
Methods inherited from class org.apache.axis.providers.BasicProvider
addOperation, getOperationName, getOperationNames, getOperationQNames
 
Methods inherited from class org.apache.axis.handlers.BasicHandler
canHandleBlock, cleanup, getDeploymentData, getName, getOption, getOptions, getUnderstoodHeaders, init, initHashtable, onFault, setName, setOption, setOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jndiContextClass

public static final java.lang.String jndiContextClass

jndiURL

public static final java.lang.String jndiURL

jndiUsername

public static final java.lang.String jndiUsername

jndiPassword

public static final java.lang.String jndiPassword

cached_context

public static javax.naming.InitialContext cached_context

empty_class_array

public static final java.lang.Class[] empty_class_array

empty_object_array

public static final java.lang.Object[] empty_object_array
Constructor Detail

EJBProvider

public EJBProvider()
Method Detail

getNewServiceObject

protected java.lang.Object getNewServiceObject(MessageContext msgContext,
                                               java.lang.String clsName)
                                        throws java.lang.Exception
Return a object which implements the service.
Overrides:
getNewServiceObject in class JavaProvider
Parameters:
msgContext - the message context
clsName - The JNDI name of the EJB home class
Returns:
an object that implements the service

getServiceClassNameOptionName

protected java.lang.String getServiceClassNameOptionName()
Return the option in the configuration that contains the service class name. In the EJB case, it is the JNDI name of the bean.
Overrides:
getServiceClassNameOptionName in class JavaProvider

getServiceClass

protected java.lang.Class getServiceClass(MessageContext msgContext,
                                          java.lang.String beanJndiName)
                                   throws java.lang.Exception
Get the class description for the EJB Remote Interface, which is what we are interested in exposing to the world (i.e. in WSDL).
Overrides:
getServiceClass in class JavaProvider
Parameters:
msgContext - the message context
beanJndiName - the JNDI name of the EJB
Returns:
the class info of the EJB remote interface


Copyright © 2001 Apache XML Project. All Rights Reserved.