// Can happen due to no permissions to get TCL
log.debug("displayClassInfo failure", e);
}
// If this is the callee just return
if( isCaller == false )
return new CalleeData();
// Call the second deployment instance
CallerSession callee = null;
try
{
cachedHome = lookupHome("ejbcts2/CalleeSessionHome");
callee = cachedHome.create();
}
catch(NamingException e)
{
throw new ServerException("Failed to lookup CalleeHome", e);
}
catch(CreateException e)
{
throw new ServerException("Failed to create Callee", e);
}
catch(Throwable e)
{
log.error("Unexpected error", e);
throw new ServerException("Unexpected error"+e.getMessage());
}
CalleeData data = callee.simpleCall2(false);
return data;
}