Methods Summary |
---|
public javax.ejb.EJBObject | getEJBObject()
try
{
InitialContext ic = null;
if( jndiEnv != null )
ic = new InitialContext(jndiEnv);
else
ic = new InitialContext();
Proxy proxy = (Proxy) ic.lookup(jndiName);
return (EJBObject) proxy;
}
catch (Throwable t)
{
t.printStackTrace();
throw new RemoteException("Error during getEJBObject", t);
}
|
public java.lang.String | getJNDIName()
return jndiName;
|
private void | readObject(java.io.ObjectInputStream ois)
ObjectInputStream.GetField getField = ois.readFields();
jndiName = (String) getField.get("jndiName", null);
jndiEnv = (Hashtable) getField.get("jndiEnv", null);
|
private void | writeObject(java.io.ObjectOutputStream oos)
ObjectOutputStream.PutField putField = oos.putFields();
putField.put("jndiName", jndiName);
putField.put("jndiEnv", jndiEnv);
oos.writeFields();
|