org.objectweb.jonas.ws.axis
Class JOnASEJBProvider

java.lang.Object
  extended byorg.apache.axis.handlers.BasicHandler
      extended byorg.apache.axis.providers.BasicProvider
          extended byorg.apache.axis.providers.java.JavaProvider
              extended byorg.apache.axis.providers.java.RPCProvider
                  extended byorg.objectweb.jonas.ws.axis.JOnASEJBProvider
All Implemented Interfaces:
org.apache.axis.Handler, java.io.Serializable

public class JOnASEJBProvider
extends org.apache.axis.providers.java.RPCProvider

Author:
Guillaume Sauthier
See Also:
Serialized Form

Field Summary
static java.lang.String OPTION_SEINTERFACENAME
          parameter service-endpoint class name
static java.lang.String OPTION_SEJNDINAME
          parameter service-endpoint JNDI name
 
Fields inherited from class org.apache.axis.providers.java.RPCProvider
log
 
Fields inherited from class org.apache.axis.providers.java.JavaProvider
entLog, OPTION_ALLOWEDMETHODS, OPTION_CLASSNAME, OPTION_SCOPE
 
Fields inherited from class org.apache.axis.providers.BasicProvider
OPTION_WSDL_INPUTSCHEMA, OPTION_WSDL_PORTTYPE, OPTION_WSDL_SERVICEELEMENT, OPTION_WSDL_SERVICEPORT, OPTION_WSDL_TARGETNAMESPACE
 
Fields inherited from class org.apache.axis.handlers.BasicHandler
makeLockable, name, options
 
Constructor Summary
JOnASEJBProvider()
          Create a new JOnASEJBProvider
 
Method Summary
protected  javax.naming.InitialContext getCachedContext()
           
protected  java.lang.String getServiceClassNameOptionName()
           
protected  java.lang.String getStrOption(java.lang.String optionName, org.apache.axis.Handler service)
          Get a String option by looking first in the service options, and then at the Handler's options.
protected  java.lang.Object makeNewServiceObject(org.apache.axis.MessageContext msgContext, java.lang.String seiName)
          Return a object which implements the service.
 
Methods inherited from class org.apache.axis.providers.java.RPCProvider
checkMethodName, invokeMethod, processMessage
 
Methods inherited from class org.apache.axis.providers.java.JavaProvider
getServiceClass, getServiceClassName, getServiceObject, initServiceDesc, invoke
 
Methods inherited from class org.apache.axis.providers.BasicProvider
addOperation, generateWSDL, getOperationName, getOperationNames, getOperationQNames
 
Methods inherited from class org.apache.axis.handlers.BasicHandler
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_SEINTERFACENAME

public static final java.lang.String OPTION_SEINTERFACENAME
parameter service-endpoint class name

See Also:
Constant Field Values

OPTION_SEJNDINAME

public static final java.lang.String OPTION_SEJNDINAME
parameter service-endpoint JNDI name

See Also:
Constant Field Values
Constructor Detail

JOnASEJBProvider

public JOnASEJBProvider()
Create a new JOnASEJBProvider

Method Detail

makeNewServiceObject

protected java.lang.Object makeNewServiceObject(org.apache.axis.MessageContext msgContext,
                                                java.lang.String seiName)
                                         throws java.lang.Exception
Return a object which implements the service.

Parameters:
msgContext - the message context
seiName - The Service Endpoint Interface classname
Returns:
an object that implements the service
Throws:
java.lang.Exception - when trying to create a Serviceobject without serviceendpoint name aprameter

getServiceClassNameOptionName

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

getStrOption

protected java.lang.String getStrOption(java.lang.String optionName,
                                        org.apache.axis.Handler 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
service - Option holder
Returns:
String the value of the option or null if not found in either scope

getCachedContext

protected javax.naming.InitialContext getCachedContext()
                                                throws javax.naming.NamingException
Returns:
Returns the cached InitialContext (or created a new one)
Throws:
javax.naming.NamingException - when InitialContext creation fails