I've enjoyed your sessions/classes at least in Geneva and Boston!
1. Why are you using eval?
I have a generic XPage which runs URL param passed SSJS. I use this with an ajax call when I want to run SSJS from outside of XPages, for example from forms. I know this could be a huge security risk but I'm blocking sessionAsSigner and the application runs in intranet only with tight ACL..
2. How are you calling it?
eval(param.get("ssjs")); where ssjs URL param is new com.company.Request("therequestid").remove();
3. What are you trying to accomplish?
Delete a request in a standard way for which I have a Java method. Of course I can accomplish this without eval but I think the Java call should work also with eval.
4. Are you calling a managed bean? if so what scope?
No and that's a good idea. Maybe it would work as a managed bean. I've never used managed beans and am not sure if my Java class would qualify as one.