public class CRMBase
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
CRMBase()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
dispatch(java.lang.String ejbName,
java.lang.String functionName,
java.lang.Object[] paramValues)
Dispatches a function based on an EJB name and parameter values.
|
CRMSession |
getCRMSession()
Retrieves the user's session, an object that contains all the user's session information.
|
com.crm.beans.CRMSessionHandle |
getCRMSessionHandle()
Retrieves the session handle.
|
javax.ejb.EJBHome |
getEJBHomeInterface(java.lang.String jndiName)
Retrieves the EJB's home interface instance.
|
javax.naming.InitialContext |
getInitialContext()
Returns the initial context.
|
javax.ejb.SessionContext |
getSessionContext()
Retrieves the EJB's session context.
|
java.lang.Object |
invoke(java.lang.String jndi,
java.lang.String methodName,
java.lang.Object[] paramValues,
com.crm.beans.CRMSessionHandle ejbSessionHandle)
Invokes a method using Reflection.
|
void |
setCRMSessionHandle(com.crm.beans.CRMSessionHandle handle)
Sets the session handle.
|
void |
setInitialContext(javax.naming.InitialContext context)
Sets the initial context.
|
void |
setSessionContext(javax.ejb.SessionContext ctx)
Sets the EJB's session context to the specified.
|
public javax.ejb.SessionContext getSessionContext()
public void setSessionContext(javax.ejb.SessionContext ctx)
ctx
- - the session contextpublic javax.naming.InitialContext getInitialContext()
public void setInitialContext(javax.naming.InitialContext context)
context
- - the initial context to setpublic CRMSession getCRMSession() throws java.lang.Exception
java.lang.Exception
public javax.ejb.EJBHome getEJBHomeInterface(java.lang.String jndiName)
jndiName
- - the JNDI name of the EJBpublic com.crm.beans.CRMSessionHandle getCRMSessionHandle()
public void setCRMSessionHandle(com.crm.beans.CRMSessionHandle handle)
handle
- the session handle objectpublic java.lang.Object dispatch(java.lang.String ejbName, java.lang.String functionName, java.lang.Object[] paramValues) throws java.lang.Exception
ejbName
- - the EJB namefunctionName
- - the function nameparamValues
- - a list of parameter valuesjava.lang.Exception
public java.lang.Object invoke(java.lang.String jndi, java.lang.String methodName, java.lang.Object[] paramValues, com.crm.beans.CRMSessionHandle ejbSessionHandle) throws java.lang.Exception
jndi
- - the JNDI name of the classmethodName
- - the name of the methodparamValues
- - the parameters of the methodejbSessionHandle
- - the session handlejava.lang.Exception