org.apache.cxf.jca.servant
Class CXFConnectEJBServant

java.lang.Object
  extended by org.apache.cxf.jca.servant.AbstractServant
      extended by org.apache.cxf.jca.servant.EJBServant
          extended by org.apache.cxf.jca.servant.CXFConnectEJBServant
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class CXFConnectEJBServant
extends EJBServant


Field Summary
 
Fields inherited from class org.apache.cxf.jca.servant.EJBServant
INITIAL_CONTEXT_PROPS_FILE, props
 
Constructor Summary
CXFConnectEJBServant(JCABusFactory bf, java.lang.String wsdlLoc, java.lang.String jndiName, java.lang.Class sei)
           
 
Method Summary
protected  java.lang.Object doInvoke(java.lang.Object target, java.lang.reflect.Method method, java.lang.Object[] args)
           
 JCABusFactory getBusFactory()
           
 javax.naming.Context getInitialContext(java.util.Properties props)
          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 setInitialContext(javax.naming.InitialContext ic)
           
 
Methods inherited from class org.apache.cxf.jca.servant.EJBServant
getContextProperties, getEJBHome, setProperties
 
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
 

Constructor Detail

CXFConnectEJBServant

public CXFConnectEJBServant(JCABusFactory bf,
                            java.lang.String wsdlLoc,
                            java.lang.String jndiName,
                            java.lang.Class sei)
                     throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getBusFactory

public JCABusFactory getBusFactory()

getInitialContext

public javax.naming.Context getInitialContext(java.util.Properties props)
                                       throws javax.naming.NamingException
Description copied from class: EJBServant
Creates a new Initial Context with the specified properties.

Overrides:
getInitialContext in class EJBServant
Parameters:
props - Properties for initial context.
Returns:
Context initial context for EJB lookup.
Throws:
javax.naming.NamingException - if there is an error getting initial context.

setInitialContext

public void setInitialContext(javax.naming.InitialContext ic)

getTargetObject

public java.lang.Object getTargetObject()
                                 throws org.apache.cxf.BusException
Description copied from class: EJBServant
Based on the information from properties.xml, locate the remote object reference of the target EJB.

Overrides:
getTargetObject in class EJBServant
Returns:
Object EJBObject created by calling create function on EJBHome.
Throws:
org.apache.cxf.BusException - if there is an error getting Target EJB Object.

invoke

public java.lang.Object invoke(java.lang.Object target,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Description copied from class: EJBServant
Invokes on the operation of the target object with the arguments provided.

Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Overrides:
invoke in class EJBServant
Parameters:
target - Object to be invoked upon.
method - Method to be invoked.
args - Object[] arguments.
Returns:
Object the result of dispatching the method. Void.TYPE for void methods.
Throws:
java.lang.Throwable

doInvoke

protected java.lang.Object doInvoke(java.lang.Object target,
                                    java.lang.reflect.Method method,
                                    java.lang.Object[] args)
                             throws java.lang.Throwable
Throws:
java.lang.Throwable


Copyright © 2006 Apache Software Foundation. All Rights Reserved.