|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.jca.servant.AbstractServant
org.apache.cxf.jca.servant.EJBServant
public class EJBServant
This servant is used to dispatch invocations to an EJB.
| Field Summary | |
|---|---|
static java.lang.String |
INITIAL_CONTEXT_PROPS_FILE
Name of the default Initial Context properties file. |
protected java.util.Properties |
props
Properties for Initial Context. |
| Constructor Summary | |
|---|---|
EJBServant(java.lang.String wsdlLoc,
org.apache.cxf.Bus bus,
java.lang.String jndiName)
Constructor for creating an EJBServant. |
|
EJBServant(java.lang.String wsdlLoc,
org.apache.cxf.Bus bus,
java.lang.String jndiName,
java.util.Properties initialContextProps)
Constructor for creating an EJBServant. |
|
| Method Summary | |
|---|---|
protected java.util.Properties |
getContextProperties(java.lang.String jndiName,
java.lang.String defaultPropsName)
Get properties for InitialContext. |
protected javax.ejb.EJBHome |
getEJBHome(javax.naming.Context ejbContext,
java.lang.String jndiName)
Looksup EJBHome in the context based on the JNDI name. |
javax.naming.Context |
getInitialContext(java.util.Properties propers)
Creates a new Initial Context with the specified properties. |
java.lang.Object |
getTargetObject()
Based on the information from properties.xml, locate the remote object reference of the target EJB. |
java.lang.Object |
invoke(java.lang.Object target,
java.lang.reflect.Method method,
java.lang.Object[] args)
Invokes on the operation of the target object with the arguments provided. |
void |
setProperties(java.util.Properties p)
|
| Methods inherited from class org.apache.cxf.jca.servant.AbstractServant |
|---|
getBus, getWSDLLocation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String INITIAL_CONTEXT_PROPS_FILE
protected java.util.Properties props
| Constructor Detail |
|---|
public EJBServant(java.lang.String wsdlLoc,
org.apache.cxf.Bus bus,
java.lang.String jndiName,
java.util.Properties initialContextProps)
wsdlLoc - wsdl location.bus - BusjndiName - JNDI nameinitialContextProps - initial context properties.
public EJBServant(java.lang.String wsdlLoc,
org.apache.cxf.Bus bus,
java.lang.String jndiName)
throws java.lang.Exception
wsdlLoc - wsdl location.bus - Bus.jndiName - JNDI Name.
java.lang.Exception - if there is an error creating servant.| Method Detail |
|---|
public java.lang.Object invoke(java.lang.Object target,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerinvoke in class AbstractServanttarget - Object to be invoked upon.method - Method to be invoked.args - Object[] arguments.
org.apache.cxf.BusException - if there is an errror invoking operation.
java.lang.Throwablepublic void setProperties(java.util.Properties p)
public java.lang.Object getTargetObject()
throws org.apache.cxf.BusException
getTargetObject in class AbstractServantorg.apache.cxf.BusException - if there is an error getting Target EJB Object.
protected final java.util.Properties getContextProperties(java.lang.String jndiName,
java.lang.String defaultPropsName)
throws java.lang.Exception
INITIAL_CONTEXT_PROPS_FILE or
jndi name + INITIAL_CONTEXT_PROPS_FILE names.
jndiName - JNDI NamedefaultPropsName - name of the default properties file.
java.lang.Exception - if there is an error getting properties.
public javax.naming.Context getInitialContext(java.util.Properties propers)
throws javax.naming.NamingException
propers - Properties for initial context.
javax.naming.NamingException - if there is an error getting initial context.
protected javax.ejb.EJBHome getEJBHome(javax.naming.Context ejbContext,
java.lang.String jndiName)
throws javax.naming.NamingException
ejbContext - Context to be used in lookup of EJB.jndiName - JNDI name
javax.naming.NamingException - if there is an error getting EJBHome.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||