public class EJBProvider extends RPCProvider
| Modifier and Type | Field and Description |
|---|---|
protected static Class[] |
empty_class_array |
protected static Object[] |
empty_object_array |
protected static org.apache.commons.logging.Log |
entLog |
static String |
jndiContextClass |
static String |
jndiPassword |
static String |
jndiURL |
static String |
jndiUsername |
protected static org.apache.commons.logging.Log |
log |
static String |
OPTION_BEANNAME |
static String |
OPTION_HOMEINTERFACENAME |
static String |
OPTION_LOCALHOMEINTERFACENAME |
static String |
OPTION_LOCALINTERFACENAME |
static String |
OPTION_REMOTEINTERFACENAME |
OPTION_ALLOWEDMETHODS, OPTION_CLASSNAME, OPTION_SCOPEOPTION_EXTRACLASSES, OPTION_WSDL_INPUTSCHEMA, OPTION_WSDL_PORTTYPE, OPTION_WSDL_SERVICEELEMENT, OPTION_WSDL_SERVICEPORT, OPTION_WSDL_SOAPACTION_MODE, OPTION_WSDL_TARGETNAMESPACEmakeLockable, name, options| Constructor and Description |
|---|
EJBProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected InitialContext |
getCachedContext() |
protected InitialContext |
getContext(Properties properties) |
protected Object |
getEJBHome(InitialContext context,
String beanJndiName) |
protected Class |
getServiceClass(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. in WSDL).
|
protected String |
getServiceClassNameOptionName()
Return the option in the configuration that contains the service class
name.
|
protected String |
getStrOption(String optionName,
Handler service)
Get a String option by looking first in the service options,
and then at the Handler's options.
|
protected Object |
invokeMethod(MessageContext msgContext,
Method method,
Object obj,
Object[] argValues)
Override the default implementation such that we can include
special handling for
ServerException. |
protected Object |
makeNewServiceObject(MessageContext msgContext,
String clsName)
Return a object which implements the service.
|
checkMethodName, createResponseBody, getBody, getOperationDesc, processMessagegetServiceClassName, getServiceObject, initServiceDesc, invokeaddOperation, generateWSDL, getOperationName, getOperationNames, getOperationQNamescanHandleBlock, cleanup, getDeploymentData, getName, getOption, getOptions, getUnderstoodHeaders, init, initHashtable, onFault, setName, setOption, setOptionDefault, setOptions, setOptionsLockableprotected static org.apache.commons.logging.Log log
protected static org.apache.commons.logging.Log entLog
public static final String OPTION_BEANNAME
public static final String OPTION_HOMEINTERFACENAME
public static final String OPTION_REMOTEINTERFACENAME
public static final String OPTION_LOCALHOMEINTERFACENAME
public static final String OPTION_LOCALINTERFACENAME
public static final String jndiContextClass
public static final String jndiURL
public static final String jndiUsername
public static final String jndiPassword
protected static final Class[] empty_class_array
protected static final Object[] empty_object_array
protected Object makeNewServiceObject(MessageContext msgContext, String clsName) throws Exception
makeNewServiceObject in class JavaProvidermsgContext - the message contextclsName - The JNDI name of the EJB home classExceptionprotected String getServiceClassNameOptionName()
getServiceClassNameOptionName in class JavaProviderprotected String getStrOption(String optionName, Handler service)
optionName - the option to retrieveprotected Class getServiceClass(String beanJndiName, SOAPService service, MessageContext msgContext) throws AxisFault
getServiceClass in class JavaProvidermsgContext - the message context (can be null)beanJndiName - the JNDI name of the EJBAxisFaultprotected InitialContext getCachedContext() throws NamingException
NamingExceptionprotected InitialContext getContext(Properties properties) throws AxisFault, NamingException
AxisFaultNamingExceptionprotected Object getEJBHome(InitialContext context, String beanJndiName) throws AxisFault, NamingException
AxisFaultNamingExceptionprotected Object invokeMethod(MessageContext msgContext, Method method, Object obj, Object[] argValues) throws 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 RPCProvidermsgContext - MessageContextmethod - the target method.obj - the target objectargValues - the method argumentsExceptionRPCProvider.invokeMethod(org.apache.axis.MessageContext, java.lang.reflect.Method, java.lang.Object, java.lang.Object[])Copyright © The Apache Software Foundation. All Rights Reserved.