it.imolinfo.jbi4ejb.runtime.ejbproxy
Class StatelessEJBProxy

java.lang.Object
  extended by it.imolinfo.jbi4ejb.runtime.ejbproxy.StatelessEJBProxy

public class StatelessEJBProxy
extends java.lang.Object

The Stateless EJBProxy.

Author:
Marco Piraccini

Constructor Summary
StatelessEJBProxy(java.lang.String remoteInterfaceClassName, java.lang.Object remoteBean, java.lang.ClassLoader ejbInvokeClassLoader, org.omg.CORBA.ORB orb)
          To avoid istantiation with no parameters.
 
Method Summary
 java.lang.ClassLoader getEjbInvokeClassLoader()
          Gets the ejb invoke class loader.
 org.omg.CORBA.ORB getOrb()
          Gets the orb.
 java.lang.Class getRemoteInterfaceClass()
          Gets the remote interface class.
 java.lang.String getRemoteInterfaceClassName()
          Gets the remote interface class name.
 java.lang.Object invokeMethod(java.lang.reflect.Method method, java.lang.Object[] params)
          Invoke method on the EJB.
 java.lang.Object invokeMethod(java.lang.String methodName, java.lang.Object[] params)
          Invoke method on the EJB.
 void setRemoteInterfaceClass(java.lang.Class myRemoteInterFace)
          Sets the remote interface class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatelessEJBProxy

public StatelessEJBProxy(java.lang.String remoteInterfaceClassName,
                         java.lang.Object remoteBean,
                         java.lang.ClassLoader ejbInvokeClassLoader,
                         org.omg.CORBA.ORB orb)
To avoid istantiation with no parameters.

Parameters:
remoteInterfaceClassName - The remote interface class name
remoteBean - The remote bean object
ejbInvokeClassLoader - The invocation class loader
orb - The CORBA ORB
Method Detail

invokeMethod

public java.lang.Object invokeMethod(java.lang.String methodName,
                                     java.lang.Object[] params)
                              throws EJBInvokeException,
                                     java.lang.IllegalAccessException,
                                     java.lang.reflect.InvocationTargetException
Invoke method on the EJB.

Parameters:
methodName - The method to invoke
params - The params for the method invocation
Returns:
the object
Throws:
EJBInvokeException - If some problems occurs
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

invokeMethod

public java.lang.Object invokeMethod(java.lang.reflect.Method method,
                                     java.lang.Object[] params)
                              throws EJBInvokeException,
                                     java.lang.IllegalAccessException,
                                     java.lang.reflect.InvocationTargetException
Invoke method on the EJB.

Parameters:
params - The params for the method invocation
method - The method to invoke
Returns:
the object The return object
Throws:
EJBInvokeException - If some problems occurs in EJB invocation
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

getOrb

public org.omg.CORBA.ORB getOrb()
Gets the orb.

Returns:
the orb

setRemoteInterfaceClass

public void setRemoteInterfaceClass(java.lang.Class myRemoteInterFace)
Sets the remote interface class.

Parameters:
myRemoteInterFace - The remote interface
Throws:
java.lang.ClassNotFoundException

getRemoteInterfaceClass

public java.lang.Class getRemoteInterfaceClass()
Gets the remote interface class.

Returns:
the remote object interface
Throws:
java.lang.ClassNotFoundException

getRemoteInterfaceClassName

public java.lang.String getRemoteInterfaceClassName()
Gets the remote interface class name.

Returns:
the remote interface class name

getEjbInvokeClassLoader

public java.lang.ClassLoader getEjbInvokeClassLoader()
Gets the ejb invoke class loader.

Returns:
the ejb invoke class loader


Copyright © 2007-2008 Imola Informatica. All Rights Reserved.