|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.imolinfo.jbi4ejb.runtime.ejbproxy.EJBProxyUtils
public final class EJBProxyUtils
EJBProxy helper methods.
| Method Summary | |
|---|---|
static EJBClasses |
createEJBClasses(java.io.File wsdlFile,
java.util.Properties classesId,
java.io.File tempDir,
java.util.List<java.lang.String> jarFilesName,
java.lang.String remoteInterfaceName,
java.lang.String portTypeName)
Creates the EJB classes. |
static java.lang.String |
createEJBClasses(java.lang.String wsdlPath,
java.lang.String remoteInterfaceClassName,
java.lang.String portTypeName,
java.util.Properties classesId,
java.util.List<java.lang.String> jarFilesName)
Creates the EJB classes, creating an external temp dir (for testing pourpouse). |
static java.lang.Object |
createStatelessEJBFromCorbaName(java.lang.String corbaname,
java.lang.String remoteInterfaceName,
java.lang.ClassLoader ejbClassLoader,
org.omg.CORBA.ORB orb)
Creates the stateless EJB and the stub. |
static java.lang.Object |
createStatelessEJBFromJNDI(java.lang.String jndiName,
java.util.Properties jndiParams,
java.lang.String remoteInterfaceName,
java.lang.ClassLoader ejbClassLoader)
Creates the stateless EJB, using JNDI to lookup the home object. |
static java.lang.Object |
createStatelessEJBUsingRMIClassLoader(java.lang.String corbaname,
java.lang.String remoteInterfaceName,
java.lang.Class myRemoteInterfaceClass,
org.omg.CORBA.ORB orb)
Creates the stateless EJB and try to get a reference using the RMIClassLoader and trying to dinamically load the stub and
the paramete/return classes. |
static org.omg.CORBA.portable.ObjectImpl |
createStatelessHomeFromJNDI(java.lang.String jndiName,
java.util.Properties jndiParams,
java.lang.String remoteInterfaceName,
java.lang.ClassLoader ejbClassLoader)
Creates the stateless EJB, using JNDI to lookup the home object. |
static java.lang.String |
findRemoteInterfaceCompleteClassName(java.lang.String sourcesDir,
java.lang.String className)
Retrieve the remote interface class name from the class name (without package). |
static java.lang.Object |
getEJBFromCorbaHomeObject(org.omg.CORBA.Object home,
org.omg.CORBA.ORB orb,
java.lang.String remoteInterfaceName,
java.lang.ClassLoader ejbClassLoader)
Gets the EJB from corba home object. |
static java.lang.Class |
getInterfaceClass(java.lang.String remoteInterfaceClassName,
java.lang.String wsdlPath,
java.util.List<java.lang.String> jarFilesName)
Creates the Class interface (to narrow in the dynamic case). |
static java.lang.String |
getInterfaceId(java.lang.String completeClassName)
Gets the interface id. |
static java.lang.String |
getInterfaceName(java.lang.String completeClassName)
Gets the interface name. |
static java.lang.reflect.Method |
getMethodFromName(java.lang.Object remoteBean,
java.lang.String methodName,
java.lang.Object[] params)
Gets the Method from the name. |
static java.lang.Object |
invokeMethod(java.lang.Object remoteBean,
java.lang.reflect.Method method,
java.lang.Object[] params,
java.lang.ClassLoader ejbClassLoader,
org.omg.CORBA.ORB orb)
Invoke method on the object (the proxied EJB). |
static java.lang.Object |
invokeMethod(java.lang.Object remoteBean,
java.lang.String methodName,
java.lang.Object[] params,
java.lang.ClassLoader ejbClassLoader,
org.omg.CORBA.ORB orb)
Invoke method on the EJB. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static EJBClasses createEJBClasses(java.io.File wsdlFile,
java.util.Properties classesId,
java.io.File tempDir,
java.util.List<java.lang.String> jarFilesName,
java.lang.String remoteInterfaceName,
java.lang.String portTypeName)
throws EJBDeployException
classesId - The Hashtable with the classes uidsjarFilesName - the jar list to compile the sources The jar list to compile
the generated sourceswsdlFile - the wsdl FiletempDir - the temporary directory to useremoteInterfaceName - the remote interface class name if null, retrives-it using the portTypeNameportTypeName - the poert-tpye name used to get the remote interface name (if not specified).
EJBDeployException - If some problem occurs
public static java.lang.String createEJBClasses(java.lang.String wsdlPath,
java.lang.String remoteInterfaceClassName,
java.lang.String portTypeName,
java.util.Properties classesId,
java.util.List<java.lang.String> jarFilesName)
throws EJBDeployException
wsdlPath - The complete path to the wsdlclassesId - The Hashtable with the classes uidsjarFilesName - the jar list to compile the sources The jar list to compile
the generated sourcesportTypeName - The port type name (to identify the remote interface)remoteInterfaceClassName - The remote interface class name
EJBDeployException - If some problem occurs
public static java.lang.Object createStatelessEJBFromCorbaName(java.lang.String corbaname,
java.lang.String remoteInterfaceName,
java.lang.ClassLoader ejbClassLoader,
org.omg.CORBA.ORB orb)
throws EJBDeployException
corbaname - The corbaname to locate the EJBHomeremoteInterfaceName - The remote interface class nameejbClassLoader - The classloader to useorb - The ORB
EJBDeployException - If some problem occurs
public static java.lang.Object createStatelessEJBFromJNDI(java.lang.String jndiName,
java.util.Properties jndiParams,
java.lang.String remoteInterfaceName,
java.lang.ClassLoader ejbClassLoader)
throws EJBDeployException
remoteInterfaceName - The remote interface class namejndiName - The Jndi namejndiParams - The Jndi paramsejbClassLoader - The ejb class loader
EJBDeployException - If some problem occurs
public static org.omg.CORBA.portable.ObjectImpl createStatelessHomeFromJNDI(java.lang.String jndiName,
java.util.Properties jndiParams,
java.lang.String remoteInterfaceName,
java.lang.ClassLoader ejbClassLoader)
throws EJBDeployException
remoteInterfaceName - The remote interface class namejndiName - The jndi namejndiParams - The jndi paramsejbClassLoader - The classloader to use
EJBDeployException - If some problem occurs
public static java.lang.Object getEJBFromCorbaHomeObject(org.omg.CORBA.Object home,
org.omg.CORBA.ORB orb,
java.lang.String remoteInterfaceName,
java.lang.ClassLoader ejbClassLoader)
throws EJBDeployException
home - The CORBA home remote objectorb - The ORBremoteInterfaceName - The remote interface nameejbClassLoader - The classloader to use to get the remomte interface class
EJBDeployException - if some problem occurs
public static java.lang.Class getInterfaceClass(java.lang.String remoteInterfaceClassName,
java.lang.String wsdlPath,
java.util.List<java.lang.String> jarFilesName)
throws EJBDeployException
wsdlPath - The complete path to the wsdljarFilesName - the jar list to compile the sources The jar list to compile
the generated sourcesremoteInterfaceClassName - the remote interface class name
EJBDeployException - If some problem occurs
public static java.lang.Object createStatelessEJBUsingRMIClassLoader(java.lang.String corbaname,
java.lang.String remoteInterfaceName,
java.lang.Class myRemoteInterfaceClass,
org.omg.CORBA.ORB orb)
throws EJBDeployException
RMIClassLoader and trying to dinamically load the stub and
the paramete/return classes.
corbaname - The corbaname to locate the EJBHomeremoteInterfaceName - The remote interface class namemyRemoteInterfaceClass - The remote interface classorb - The ORB
EJBDeployException - If some problem occurspublic static java.lang.String getInterfaceId(java.lang.String completeClassName)
completeClassName - The class name
public static java.lang.String getInterfaceName(java.lang.String completeClassName)
completeClassName - The class name
public static java.lang.Object invokeMethod(java.lang.Object remoteBean,
java.lang.reflect.Method method,
java.lang.Object[] params,
java.lang.ClassLoader ejbClassLoader,
org.omg.CORBA.ORB orb)
throws EJBInvokeException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
remoteBean - The ejb remoteobjectmethod - The method to callparams - The method paramsejbClassLoader - The classloader to useorb - The orb
EJBInvokeException - if some problem in the EJB invocation occurs
java.lang.reflect.InvocationTargetException - If an exception is thrown in the invokation
java.lang.IllegalAccessException - If there are access problems
public static java.lang.Object invokeMethod(java.lang.Object remoteBean,
java.lang.String methodName,
java.lang.Object[] params,
java.lang.ClassLoader ejbClassLoader,
org.omg.CORBA.ORB orb)
throws EJBInvokeException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
methodName - The method to invokeparams - The params for the method invocationremoteBean - The remote bean objectejbClassLoader - The classloader to useorb - The orb
EJBInvokeException - If some problems occurs in method invocation
java.lang.reflect.InvocationTargetException - If the call throws an exception
java.lang.IllegalAccessException - Problem in accesing object
public static java.lang.reflect.Method getMethodFromName(java.lang.Object remoteBean,
java.lang.String methodName,
java.lang.Object[] params)
throws EJBInvokeException
Method from the name.
remoteBean - The object that defines the methodmethodName - The method nameparams - The method params
EJBInvokeException - If some problem occurs in getting the method name
public static java.lang.String findRemoteInterfaceCompleteClassName(java.lang.String sourcesDir,
java.lang.String className)
throws EJBDeployException
sourcesDir - Directory where to look for the class nameclassName - The class name
EJBDeployException - If some proble occurs in classes search
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||