}
public void testClusteredRemoting() throws Exception
{
MBeanServerConnection server = getServer();
POJO pojo = (POJO)server.invoke(testerName, "testClusteredRemoting", noparams, nosig);
try
{
String rtn = pojo.remoteTest(); // invokes remotely
if (!rtn.equals("hello"))
throw new Exception("DID NOT GET EXPECTED REMOTE VALUE");
pojo.remoteTest();//just make sure we can invoke twice...
}
finally
{
unregisterTarget(server, pojo);
}