RemoteCacheAttributes rca = new RemoteCacheAttributes();
rca.setRemoteHost( "localhost" );
rca.setRemotePort( 1101 );
RemoteCacheManager mgr = RemoteCacheManager.getInstance( rca, cacheMgr );
AuxiliaryCache cache = mgr.getCache( "testCache" );
int numMes = 100;
for ( int i = 0; i < numMes; i++ )
{
String message = "adsfasasfasfasdasf";
CacheElement ce = new CacheElement( "key" + 1, "data" + i, message );
cache.update( ce );
System.out.println( "put " + ce );
}
// Thread.sleep( 2000 );