public class EJBProvider extends RPCProvider
Modifier and Type | Field and Description |
---|---|
protected static java.lang.Class[] |
empty_class_array |
protected static java.lang.Object[] |
empty_object_array |
protected static org.apache.commons.logging.Log |
entLog |
static java.lang.String |
jndiContextClass |
static java.lang.String |
jndiPassword |
static java.lang.String |
jndiURL |
static java.lang.String |
jndiUsername |
protected static org.apache.commons.logging.Log |
log |
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 |
OPTION_ALLOWEDMETHODS, OPTION_CLASSNAME, OPTION_SCOPE
OPTION_EXTRACLASSES, OPTION_WSDL_INPUTSCHEMA, OPTION_WSDL_PORTTYPE, OPTION_WSDL_SERVICEELEMENT, OPTION_WSDL_SERVICEPORT, OPTION_WSDL_SOAPACTION_MODE, OPTION_WSDL_TARGETNAMESPACE
makeLockable, name, options
Constructor and Description |
---|
EJBProvider() |
Modifier and Type | Method and Description |
---|---|
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 service,
MessageContext 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 service)
Get a String option by looking first in the service options,
and then at the Handler's options.
|
protected java.lang.Object |
invokeMethod(MessageContext msgContext,
java.lang.reflect.Method method,
java.lang.Object obj,
java.lang.Object[] argValues)
Override the default implementation such that we can include
special handling for
ServerException . |
protected java.lang.Object |
makeNewServiceObject(MessageContext msgContext,
java.lang.String clsName)
Return a object which implements the service.
|
checkMethodName, createResponseBody, getBody, getOperationDesc, processMessage
getServiceClassName, getServiceObject, initServiceDesc, invoke
addOperation, generateWSDL, getOperationName, getOperationNames, getOperationQNames
canHandleBlock, cleanup, getDeploymentData, getName, getOption, getOptions, getUnderstoodHeaders, init, initHashtable, onFault, setName, setOption, setOptionDefault, setOptions, setOptionsLockable
protected static org.apache.commons.logging.Log log
protected static org.apache.commons.logging.Log entLog
public static final java.lang.String OPTION_BEANNAME
public static final java.lang.String OPTION_HOMEINTERFACENAME
public static final java.lang.String OPTION_REMOTEINTERFACENAME
public static final java.lang.String OPTION_LOCALHOMEINTERFACENAME
public static final java.lang.String OPTION_LOCALINTERFACENAME
public static final java.lang.String jndiContextClass
public static final java.lang.String jndiURL
public static final java.lang.String jndiUsername
public static final java.lang.String jndiPassword
protected static final java.lang.Class[] empty_class_array
protected static final java.lang.Object[] empty_object_array
protected java.lang.Object makeNewServiceObject(MessageContext msgContext, java.lang.String clsName) throws java.lang.Exception
makeNewServiceObject
in class JavaProvider
msgContext
- the message contextclsName
- The JNDI name of the EJB home classjava.lang.Exception
protected java.lang.String getServiceClassNameOptionName()
getServiceClassNameOptionName
in class JavaProvider
protected java.lang.String getStrOption(java.lang.String optionName, Handler service)
optionName
- the option to retrieveprotected java.lang.Class getServiceClass(java.lang.String beanJndiName, SOAPService service, MessageContext msgContext) throws AxisFault
getServiceClass
in class JavaProvider
msgContext
- the message context (can be null)beanJndiName
- the JNDI name of the EJBAxisFault
protected javax.naming.InitialContext getCachedContext() throws javax.naming.NamingException
javax.naming.NamingException
protected javax.naming.InitialContext getContext(java.util.Properties properties) throws AxisFault, javax.naming.NamingException
AxisFault
javax.naming.NamingException
protected java.lang.Object getEJBHome(javax.naming.InitialContext context, java.lang.String beanJndiName) throws AxisFault, javax.naming.NamingException
AxisFault
javax.naming.NamingException
protected java.lang.Object invokeMethod(MessageContext msgContext, java.lang.reflect.Method method, java.lang.Object obj, java.lang.Object[] argValues) throws java.lang.Exception
ServerException
.
Converts ServerException
exceptions to
InvocationTargetException
exceptions with the same cause.
This allows the axis framework to create a SOAP fault.
invokeMethod
in class RPCProvider
msgContext
- MessageContextmethod
- the target method.obj
- the target objectargValues
- the method argumentsjava.lang.Exception
RPCProvider.invokeMethod(org.apache.axis.MessageContext, java.lang.reflect.Method, java.lang.Object, java.lang.Object[])
Copyright ? 2005 Apache Web Services Project. All Rights Reserved.