org.jboss.net.axis.server
Class EJBHomeProvider

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.net.axis.server.EJBHomeProvider
All Implemented Interfaces:
Handler (src)

public class EJBHomeProvider
extends RPCProvider (src)

A JBoss-compatible Provider that exposes the methods of a beanīs home, such as a stateless session bean or an entity bean. It is working under the presumption that the right classloader has already been set by the invocation chain (@see org.jboss.net.axis.SetClassLoaderHandler).

Change History


To Do


Field Summary
 
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
EJBHomeProvider()
          Creates new EJBProvider
 
Method Summary
protected  java.lang.Object getNewServiceObject(MessageContext (src)  msgContext, java.lang.String clsName)
          Return the object which implements the service.
protected  java.lang.Class getServiceClass(MessageContext (src)  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.jboss.axis.providers.java.RPCProvider (src)
checkMethodName, createRPCInvocation, invokeMethod, invokeTarget, processMessage
 
Methods inherited from class org.jboss.axis.providers.java.JavaProvider (src)
generateWSDL, getServiceClass, getServiceClassName, getServiceObject, initServiceDesc, invoke, makeNewServiceObject, 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
 

Constructor Detail

EJBHomeProvider

public EJBHomeProvider()
Creates new EJBProvider

Method Detail

getNewServiceObject

protected java.lang.Object getNewServiceObject(MessageContext (src)  msgContext,
                                               java.lang.String clsName)
                                        throws java.lang.Exception
Return the object which implements the service. Makes the usual JNDI->lookup call wo the PortableRemoteDaDaDa for the sake of Corba.

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)

getServiceClass

protected java.lang.Class getServiceClass(MessageContext (src)  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).

Parameters:
msgContext - the message context
beanJndiName - the JNDI name of the EJB
Returns:
the class info of the EJB home interface
Throws:
java.lang.Exception