psdi.iface.util

Class EJBClient

  • java.lang.Object
    • psdi.iface.util.EJBClient


  • public class EJBClient
    extends java.lang.Object
    This is a generic client for calling an EJB .
    • Constructor Summary

      Constructors 
      Constructor and Description
      EJBClient(java.lang.String jndiName) 
      EJBClient(java.lang.String jndiName, java.util.Properties env) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Object invoke(java.lang.String methodName, java.lang.Class[] paramClasses, java.lang.Object[] params)
      invoke the EJB method with proper params values.
      boolean isValid() 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EJBClient

        public EJBClient(java.lang.String jndiName)
                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • EJBClient

        public EJBClient(java.lang.String jndiName,
                         java.util.Properties env)
                  throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • invoke

        public java.lang.Object invoke(java.lang.String methodName,
                                       java.lang.Class[] paramClasses,
                                       java.lang.Object[] params)
                                throws java.lang.Exception
        invoke the EJB method with proper params values.
        Parameters:
        methodName - the method to invoke in the target EJB
        paramClasses - the Class[] of method parameters the EJB needs
        params - the Object[] of method parameters the EJB needs
        Throws:
        java.lang.Exception
      • isValid

        public boolean isValid()