org.jboss.axis.providers.java
Class EJBProvider

java.lang.Object
  extended byorg.jboss.axis.handlers.BasicHandler (src) 
      extended byorg.jboss.axis.providers.BasicProvider (src) 
          extended byorg.jboss.axis.providers.java.JavaProvider (src) 
              extended byorg.jboss.axis.providers.java.RPCProvider (src) 
                  extended byorg.jboss.axis.providers.java.EJBProvider
All Implemented Interfaces:
Handler (src)
Direct Known Subclasses:
EJBProvider (src)

public class EJBProvider
extends RPCProvider (src)

A basic EJB Provider


Field Summary
protected static java.lang.Class[] empty_class_array
           
protected 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
           
static java.lang.String OPTION_BEANNAME
           
static java.lang.String OPTION_HOMEINTERFACENAME
           
static java.lang.String OPTION_LOCALHOMEINTERFACENAME
           
static java.lang.String OPTION_LOCALINTERFACENAME
           
static java.lang.String OPTION_REMOTEINTERFACENAME
           
 
Fields inherited from class org.jboss.axis.providers.java.RPCProvider (src)
RPC_INVOCATION
 
Fields inherited from class org.jboss.axis.providers.java.JavaProvider (src)
OPTION_ALLOWEDMETHODS, OPTION_CLASSNAME, OPTION_CLASSPATH, OPTION_IS_STATIC, OPTION_SCOPE, OPTION_WSDL_INPUTSCHEMA, OPTION_WSDL_PORTTYPE, OPTION_WSDL_SERVICEELEMENT, OPTION_WSDL_SERVICEPORT, OPTION_WSDL_TARGETNAMESPACE
 
Fields inherited from class org.jboss.axis.handlers.BasicHandler (src)
makeLockable, name, options
 
Constructor Summary
EJBProvider()
           
 
Method Summary
protected  javax.naming.InitialContext getCachedContext()
           
protected  javax.naming.InitialContext getContext(java.util.Properties properties)
           
protected  java.lang.Object getEJBHome(javax.naming.InitialContext context, java.lang.String beanJndiName)
           
protected  java.lang.Class getServiceClass(java.lang.String beanJndiName, SOAPService (src)  service, MessageContext (src)  msgContext)
          Get the class description for the EJB Remote or Local 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.
protected  java.lang.String getStrOption(java.lang.String optionName, Handler (src)  service)
          Get a String option by looking first in the service options, and then at the Handler's options.
protected  java.lang.Object makeNewServiceObject(MessageContext (src)  msgContext, java.lang.String clsName)
          Return a object which implements the service.
 
Methods inherited from class org.jboss.axis.providers.java.RPCProvider (src)
checkMethodName, createRPCInvocation, invokeMethod, invokeTarget, processMessage
 
Methods inherited from class org.jboss.axis.providers.java.JavaProvider (src)
generateWSDL, getServiceClassName, getServiceObject, initServiceDesc, invoke, processException
 
Methods inherited from class org.jboss.axis.providers.BasicProvider (src)
addOperation, getOperationName, getOperationNames, getOperationQNames
 
Methods inherited from class org.jboss.axis.handlers.BasicHandler (src)
canHandleBlock, cleanup, getDeploymentData, getName, getOption, getOptions, getUnderstoodHeaders, init, initHashtable, onFault, setName, setOption, setOptionDefault, setOptions, setOptionsLockable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPTION_BEANNAME

public static final java.lang.String OPTION_BEANNAME
See Also:
Constant Field Values (src)

OPTION_HOMEINTERFACENAME

public static final java.lang.String OPTION_HOMEINTERFACENAME
See Also:
Constant Field Values (src)

OPTION_REMOTEINTERFACENAME

public static final java.lang.String OPTION_REMOTEINTERFACENAME
See Also:
Constant Field Values (src)

OPTION_LOCALHOMEINTERFACENAME

public static final java.lang.String OPTION_LOCALHOMEINTERFACENAME
See Also:
Constant Field Values (src)

OPTION_LOCALINTERFACENAME

public static final java.lang.String OPTION_LOCALINTERFACENAME
See Also:
Constant Field Values (src)

jndiContextClass

public static final java.lang.String jndiContextClass
See Also:
Constant Field Values (src)

jndiURL

public static final java.lang.String jndiURL
See Also:
Constant Field Values (src)

jndiUsername

public static final java.lang.String jndiUsername
See Also:
Constant Field Values (src)

jndiPassword

public static final java.lang.String jndiPassword
See Also:
Constant Field Values (src)

empty_class_array

protected static final java.lang.Class[] empty_class_array

empty_object_array

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

EJBProvider

public EJBProvider()
Method Detail

makeNewServiceObject

protected java.lang.Object makeNewServiceObject(MessageContext (src)  msgContext,
                                                java.lang.String clsName)
                                         throws java.lang.Exception
Return a object which implements the service.

Overrides:
makeNewServiceObject in class JavaProvider (src)
Parameters:
msgContext - the message context
clsName - The JNDI name of the EJB home class
Returns:
an object that implements the service
Throws:
java.lang.Exception

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 (src)

getStrOption

protected java.lang.String getStrOption(java.lang.String optionName,
                                        Handler (src)  service)
Get a String option by looking first in the service options, and then at the Handler's options. This allows defaults to be specified at the provider level, and then overriden for particular services.

Parameters:
optionName - the option to retrieve
Returns:
String the value of the option or null if not found in either scope

getServiceClass

protected java.lang.Class getServiceClass(java.lang.String beanJndiName,
                                          SOAPService (src)  service,
                                          MessageContext (src)  msgContext)
                                   throws AxisFault (src) 
Get the class description for the EJB Remote or Local Interface, which is what we are interested in exposing to the world (i.e. in WSDL).

Overrides:
getServiceClass in class JavaProvider (src)
Parameters:
msgContext - the message context (can be null)
beanJndiName - the JNDI name of the EJB
Returns:
the class info of the EJB remote or local interface
Throws:
AxisFault (src)

getCachedContext

protected javax.naming.InitialContext getCachedContext()
                                                throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getContext

protected javax.naming.InitialContext getContext(java.util.Properties properties)
                                          throws AxisFault (src) ,
                                                 javax.naming.NamingException
Throws:
AxisFault (src)
javax.naming.NamingException

getEJBHome

protected java.lang.Object getEJBHome(javax.naming.InitialContext context,
                                      java.lang.String beanJndiName)
                               throws AxisFault (src) ,
                                      javax.naming.NamingException
Throws:
AxisFault (src)
javax.naming.NamingException