This example only works with ObjectSpace Voyager(tm).
Visit the Voyager homepage for more information.
try
{
// connect to persistent map in server 8000
VHashMap map = (VHashMap)VObject.forObjectAt("localhost:8000/JGL4");
query( map, "Spider-Man" );
query( map, "Mr. Fantastic" );
map.dieNow(); // kill map, remove from database
}
catch ( VoyagerException ex )
{
System.err.println( "caught: " + ex );
}
Voyager.shutdown();