public class EJBClient
extends java.lang.Object
Constructor and Description |
---|
EJBClient(java.lang.String jndiName) |
EJBClient(java.lang.String jndiName,
java.util.Properties env) |
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() |
public EJBClient(java.lang.String jndiName) throws java.lang.Exception
java.lang.Exception
public EJBClient(java.lang.String jndiName, java.util.Properties env) throws java.lang.Exception
java.lang.Exception
public java.lang.Object invoke(java.lang.String methodName, java.lang.Class[] paramClasses, java.lang.Object[] params) throws java.lang.Exception
methodName
- the method to invoke in the target EJBparamClasses
- the Class[] of method parameters the EJB needsparams
- the Object[] of method parameters the EJB needsjava.lang.Exception
public boolean isValid()