* @throws RemoteException
*/
public void callByValueInSameJar() throws RemoteException
{
// Call the second deployment instance
CallerSession callee = null;
try
{
cachedHome = lookupHome("ejbcts/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());
}
ReferenceTest test = new ReferenceTest();
callee.validateValueMarshalling(test);
}