return (javax.ejb.EJBObject) hanlder.createEJBObjectProxy();
}
public Object getBusinessObject(ProxyInfo info) {
CallContext call = CallContext.getCallContext();
DeploymentInfo deployment = info.getDeploymentInfo();
int idCode = -1;
Object securityIdentity = null;
try {
securityIdentity = call.getEJBRequest().getClientIdentity();
} catch (Exception e) {
e.printStackTrace();
}
ClientMetaData cMetaData = new ClientMetaData(securityIdentity);
EJBMetaDataImpl eMetaData = new EJBMetaDataImpl(null, null,
deployment.getPrimaryKeyClass(),
deployment.getComponentType().toString(),
deployment.getDeploymentID().toString(),
idCode, info.getInterfaces());
Object primKey = info.getPrimaryKey();
EJBObjectHandler hanlder = EJBObjectHandler.createEJBObjectHandler(eMetaData, getServerMetaData(), cMetaData, primKey);