Yes the eval trick will also work. In fact, when I first developed ns_java, the first thing that I implemented was the eval command and then I used it fake a db interface to aolserver from the java side. Eventually, I created ns_db and ns_set equivalent classes and got rid of the eval hack, but it seemed to work okay.